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

Support typescript definitions #1196

Open
starwed opened this issue Nov 17, 2018 · 0 comments
Open

Support typescript definitions #1196

starwed opened this issue Nov 17, 2018 · 0 comments

Comments

@starwed
Copy link
Member

starwed commented Nov 17, 2018

AFAIK typecript now has enough support for things like mixins that it would be reasonable to use with Crafty, if we actually provided type definitions.

It might be possible to generate basic typing information along with our documentation generator.
(Although we'd probably need to manually craft some fancy definitions for things like Crafty.c, since that actually defines a component.) We might have to default to any in a lot of places, but it's least worth a try. (And would provide another incentive to actually standardize and clean up the type information in our docs!)

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

No branches or pull requests

1 participant