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

Add TypeScript declarations to iron-collapse. #82

Merged
merged 4 commits into from
Feb 17, 2018

Conversation

aomarks
Copy link
Contributor

@aomarks aomarks commented Feb 2, 2018

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

*/
noAnimation: boolean|null|undefined;
hostAttributes: object|null;
dimension: object|null;
Copy link
Member

Choose a reason for hiding this comment

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

Dimension it's read-only (only getter available), and it can be only a string - not sure how this got interpreted as object|null - I'd have guessed it would have been interpreted as any

https://github.com/PolymerElements/iron-collapse/blob/master/iron-collapse.html#L155

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think probably Analyzer does not understand getters on elements. Will need to investigate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now fixed, see latest commit.

@aomarks aomarks requested a review from dfreedm as a code owner February 7, 2018 00:22
@aomarks aomarks merged commit 52b1ca3 into master Feb 17, 2018
@e111077
Copy link
Member

e111077 commented Feb 17, 2018

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants