-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add TypeScript definition files #186
Comments
Some basic issues I am seeing currently which I hope this would solve:
Issue #1: Can't import
Issue #2: Can't cast the return value of
Type 'DialogElement' does not satisfy the constraint 'Element'. Issue #3: Can't cast the event target type to
would be awesome if |
This should also work
Also see Polymer/polymer#4556 (comment) |
There seems to be some problems with For instance,
/**
|
Having |
The TS generator reads JSDoc and not what the class really extends it seems, so having
generates
which means so you need to add
to get
which is still wrong since This might also somehow be related to unclear errors output by
for a lot of imports |
Is there any potential that type declarations may be vended prior to typescript code migration? |
I have done a research on what would it take to generate typings after Example for How to run it locally:
The generated TS definition files (with all the comments removed) are below:
|
Tested also with See the commit: vaadin/vaadin-combo-box@5b35538
|
Note: The steps 7 and 8 described at #186 (comment) are now done by |
The versions that have TypeScript definitions are listed below: Core components
Pro components
mixins
|
Closing as done. |
No description provided.
The text was updated successfully, but these errors were encountered: