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

Basic typescript of event handler. #2130

Merged
merged 1 commit into from Feb 14, 2019
Merged

Basic typescript of event handler. #2130

merged 1 commit into from Feb 14, 2019

Conversation

itsjamie
Copy link
Collaborator

This PR will...

This adds simple type definitions to the event handler base class. This makes it so all classes that expand upon this base class can be typed before having to go through and type all the event data.

Why is this Pull Request needed?

npm run type-check fails without as this.hls is undefined for any classes that extend.

Are there any points in the code the reviewer needs to double check?

Don't worry too much about the any types here. These will be piece-mealed out for better definitions as the events class becomes incrementally more typed.

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@itsjamie itsjamie merged commit 29ad34d into video-dev:master Feb 14, 2019
@itsjamie itsjamie deleted the event-handler-ts branch February 14, 2019 19:02
@johnBartos johnBartos added this to the 0.13.0 milestone Aug 13, 2019
@johnBartos johnBartos added this to In progress in Typescript Integration via automation Aug 13, 2019
@itsjamie itsjamie moved this from In progress to Reviewer approved in Typescript Integration Aug 28, 2019
@itsjamie itsjamie moved this from Reviewer approved to Done in Typescript Integration Aug 28, 2019
@robwalch robwalch added this to Done in 0.13.0 Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
0.13.0
  
Done
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants