How can I create a type definition for a function (global scope) named as a reserved keyword such as “module” (qunit, http://api.qunitjs.com/module/)?
Is there a prefix char or something I can use? A char that simply gets removed on compile.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe there is a way to do this currently – there is nothing like CoffeeScripts back-tick syntax.
One work-around would be to create a function in your JavaScript to alias the module function:
JavaScript
TypeScript