We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This gem doesn't appear to allow ES6 import/export syntax. Is there a way to do this with the asset pipeline?
The text was updated successfully, but these errors were encountered:
I'm using the typescript-rails gem and Rails 4.
Here's what I did to export a module.
//myMod.ts module myMod { export myFunction (){ } export myClass (){ } }
Then, in another file you can import using the following: /// <reference path="./myMod.ts" />
/// <reference path="./myMod.ts" />
You can call myMod.myFunction(); inside any other file.
myMod.myFunction();
Sorry, something went wrong.
No branches or pull requests
This gem doesn't appear to allow ES6 import/export syntax. Is there a way to do this with the asset pipeline?
The text was updated successfully, but these errors were encountered: