-
Notifications
You must be signed in to change notification settings - Fork 8
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 boilerplate #7
base: master
Are you sure you want to change the base?
Conversation
Don't know if the OP is still keen on this 3 years later ... but I've gotten @types/max-api published now, through the DefinitelyTyped project. Quite similar to the declaration file that's in your boilerplate: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/max-api. |
There is a pending PR to update the type definitions to the recent version, which also fixes some of the parameter signature issues and exports |
Thank you guys for publishing/updating the type definitions. By the way, can I have the URL for the pending PR, @fde31 ? |
@yuichkun There is a very basic TS example in n4m-examples but if u have the motivation and time to update your boilerplate I'm that would be appreciated by others and provide a great help for people to get started as well. |
@fde31 I noticed something about @types/[email protected] after I approved it ... it is not possible to import selected parts of the namespace, as in |
Just a thought: I've been think that a May or may not related to the PR, but it could be hosted in this repo at least. |
I have created a PR request for this: |
Now that
node.script
accepts command line parameters, I've come to my mind that I could pass ints-node/register
to use TypeScript with minimal effort and here's a working example!By the way, do you guys have the definition file (
@types/max-api.d.ts
kind of thing) of Max API published somewhere? If not, I would really appreciate it if you do!