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
I am trying to upgrade an existing project to Typescript. I have the following lines...
In legacy .coffee
@refreshAfter = after -> @thing.refresh(); @updateBefore = before -> @thing.update(); @refreshAndUpdate = @updateBefore @refreshAfter @updateThings = @refreshAndUpdate (opts) -> doSomething(); // ...
Just to make sure I understand what this is doing when updateThings() is called it runs
updateThings()
Then in my TS file I have
window['_'] = require("underscore"); require("YouAreDaChef"); // Also tried // window['chef'] = require("YouAreDaChef");
When I run I get
ReferenceError: after is not defined
Is there something special I have to do with the module loader? Pass window to it or something?
window
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to upgrade an existing project to Typescript. I have the following lines...
In legacy .coffee
Just to make sure I understand what this is doing when
updateThings()
is called it runsThen in my TS file I have
When I run I get
Is there something special I have to do with the module loader? Pass
window
to it or something?The text was updated successfully, but these errors were encountered: