-
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
No npm ? #30
Comments
agree 100%, I am just waiting for Typescript 2.0 because UMD Module Loaders will make it more easy to publish a package as a module or in the global namespace (without manually writing definition files). |
Typescript 2.0 just came out. See: https://blogs.msdn.microsoft.com/typescript/2016/09/22/announcing-typescript-2-0/ Will RiotTS be published as a npm package in the near future? |
@pcssi See riot-typescript. /cc @howesteve |
@sandrokeil Thank you! |
@pcssi You're welcome. Have you used the npm version? I've some problems see #36 I'm not sure how to use it correclty. Have you tried the Timer example or can you give me a hint? |
I'm trying to make a |
@nippur72 Thanks for the info and your work! 👍 |
I've migrated the whole package to npm and TypeScript 2.0, please check the documentation again as there are some small breaking changes. I did my best to make it work in both scenarios (global and module) but I'm not sure of the result. Suggestions are welcome. |
@nippur72 Thank you very much for your work. 👍 Hope I can try it soon. Is it possible to avoid the |
@sandrokeil what do you mean with avoiding the |
@nippur72 If you use
|
@sandrokeil that's quite correct, you are telling typescript that you don't allow implicit constructor(opts) { } you have to make it explicit, e.g.: constructor(opts: any) { } or better: interface HelloTagOpts {
greet: string;
}
class HelloTag extends Riot.Tag {
constructor(opts: HelloTagOpts) { }
} |
btw, forgot to tell I've updated also the helloworld examples, you might want to check |
update: I've fixed some |
Hello,
I wonder why this nice package isn't published on npm ? It surely is more standard then bower nowadays. Anyway, it wouldn't hurt.
Thanks,
Howe
The text was updated successfully, but these errors were encountered: