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

Separate CSSDeclaration from lib.dom.d.ts into a new file lib.css.d.ts #211

Open
danmarshall opened this issue Mar 4, 2017 · 1 comment

Comments

@danmarshall
Copy link

This isn't an issue but an idea I wanted to ask about.
I have a project where I want to use only the CSSStyleDeclaration type but not DOM types. I understand that I can just copy-paste into my own .d.ts file, but wanted to ask if there is value in doing this for TypeScript lib itself. One potential value add is that people may refer to a specific CSS implementation, like CSS2 or CSS3.

@mhegazy
Copy link
Contributor

mhegazy commented Mar 7, 2017

We would like to limit the maintenance cost of the library. currently we generate the CSS declaration the same way we do the rest of the DOM APIs; splitting them into a different file would make the update process harder.

I would recommend copying the parts you need.

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

No branches or pull requests

2 participants