You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README has the following example for setContext:
logdna.addContext({// Add any custom metadata such as:version: 'v1.0.2',sessionReplay: 'http://mySessionReplayTool/',user: {email: '[email protected]',},});
user throws an error as the ContextT object is typed as { [key: string]: string }. Should it be { [key: string]: string | { [key: string]: string } or does it not allow some amount of recursion here on objects?
The text was updated successfully, but these errors were encountered:
MasterOdin
changed the title
ContextT type does not allow README example
ContextT TS type does not allow README example
Jan 27, 2022
The README has the following example for
setContext
:user
throws an error as theContextT
object is typed as{ [key: string]: string }
. Should it be{ [key: string]: string | { [key: string]: string }
or does it not allow some amount of recursion here on objects?The text was updated successfully, but these errors were encountered: