PolymerElements / app-media

Elements for accessing data from media input devices and visualizing that data for users
61 stars 12 forks source link

Add TypeScript declarations to app-media. #48

Closed TimvdLippe closed 5 years ago

TimvdLippe commented 6 years ago

This PR adds TypeScript declarations generated by https://github.com/Polymer/gen-typescript-declarations/

These declarations can be re-generated by running npm run update-types.

Tracker: https://github.com/Polymer/gen-typescript-declarations/issues/79

TimvdLippe commented 6 years ago

Per https://github.com/Microsoft/TSJS-lib-generator#when-should-a-dom-api-be-included-here DefintelyTyped was the location, where I found https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1882fc533c95e710336c4f6236ea8caf8c6a28a4/types/w3c-image-capture/index.d.ts

However, we can't just include these types, as we first have to address https://github.com/Polymer/gen-typescript-declarations/issues/104

TimvdLippe commented 5 years ago

I am closing this PR. We can autogenerate a new one later once the above issues are resolved.