-
Notifications
You must be signed in to change notification settings - Fork 28
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
TypeScript definitions #30
Comments
What's the preferred way to ship typescript definitions? Should they be in the package source code somehow? How can I test that they are correct? Also, does this allow for mixins? |
There is a Github Repository: DefinitelyTyped where willing people upload definitions if they are missing. I believe definitions need to be maintained manually. Here they write a bit about requirements and Tests for uploaded definitions. |
If you like, you can upload your definition there. Since I don't use typescript myself, I'd need someone who actually uses it frequently to maintain the definition. |
I'm going to close this issue since there isn't really an actionable resolution. |
I've added @DmitryEfimenko's typings to a repository here: https://github.com/twastvedt/typed-meteor-validated-method. I'm planning to add to them while I use this in a project, and then link to the registry when it's more complete. Pull requests are welcome, though, to speed up the process! |
Also, since I had to figure this out, thought it was worth adding here:
|
@twastvedt to make it easier for people to find in the future, would you mind sending a PR to the README to add directions for typescript? |
I didn't see any TypeScript definitions so I cooked this quickly. Hopefully this can be developed further and added to docs:
The text was updated successfully, but these errors were encountered: