-
Notifications
You must be signed in to change notification settings - Fork 237
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
[BUG] ICustomProperties does not support setting values #1191
Comments
Hi, A TelemetryInitializer is passed an object that conforms to the IEnvelope interface... var telemetryInitializer = (envelope) => { Cheers Nev |
I think I have a possible solution for this, but as the issue is really just with the type safety (and perhaps strict) a workaround you could apply is to create a local variable for data and "cast" (in typescript terms) to any or some other type you want to enforce. |
Fixed deployed as NPM and next CDN channels |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
According to the docs we should be able to assign custom values like this:
However in the typescript definition, 'envelope.data' is an empty interface, which does not allow any extension.
The text was updated successfully, but these errors were encountered: