-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: better support for event sender analytics paths #259
chore: better support for event sender analytics paths #259
Conversation
@@ -16,7 +17,12 @@ export class LDClient extends LDClientImpl { | |||
constructor(clientSideID: string, platformInfo: Info, options: LDOptions) { | |||
const em = new EventEmitter(); | |||
const platform = new EdgePlatform(platformInfo); | |||
super(clientSideID, platform, createOptions(options), createCallbacks(em)); | |||
const internalOptions: internal.LDInternalOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like this much better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier auto fixes this
/** Valid paths are: | ||
* /bulk | ||
* /events/bulk/envId | ||
* /mobile | ||
*/ | ||
public readonly analyticsEventPath: string; | ||
|
||
/** Valid paths are: | ||
* /diagnostic | ||
* /events/diagnostic/envId | ||
* /mobile/events/diagnostic | ||
*/ | ||
public readonly diagnosticEventPath: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can be more pedantic and make these literal types instead of freeform strings. Any opinions?
1908227
into
yus/sc-214758/send-events-to-environment-endpoint-for-edge
No description provided.