Skip to content
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

Update type definitions #2414

Merged
merged 1 commit into from Feb 14, 2018

Conversation

aj-r
Copy link
Contributor

@aj-r aj-r commented Feb 8, 2018

No description provided.

@@ -70,7 +71,7 @@ declare namespace dashjs {
on(type: StreamInitializedEvent['type'], listener: (e: StreamInitializedEvent) => void, scope?: object): void;
on(type: TextTracksAddedEvent['type'], listener: (e: TextTracksAddedEvent) => void, scope?: object): void;
on(type: string, listener: (e: Event) => void, scope?: object): void;
off(type: string, listener: (e: Event) => void, scope?: object): void;
off(type: string, listener: (e: any) => void, scope?: object): void;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e: Event causes compile compile errors when typescript's strictFunctionTypes compiler option is enabled. So unfortunately we must use e: any.

@epiclabsDASH epiclabsDASH added this to the v2.6.7 milestone Feb 8, 2018
@epiclabsDASH epiclabsDASH merged commit 52d32e3 into Dash-Industry-Forum:development Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants