-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 Definition #33
Comments
Is this what you are after? @arunoda you can maybe add it? Or do you want a PR?
|
You also need to extend your definition of webpack.config.js to following. @arunoda, resolving jsx should be supported by default in my opinion.
|
Hmm, resolving does not seem to work .. not sure why .. the jsx files are not resolved ;( |
@tomitrescak I am not good with TS, yes send me a PR. BTW, how TS and .jsx extentions are related? |
tsx are compiled into jsx in some configurations (e.g. mine). I am not using typescript loaders or typescript compiler in Meteor, but am compiling TS files into JS. This is faster and more controllable. |
Okay. got it. |
BTW: could you work on the TS definition file. Not sure where to add it. |
Thanks guys! The best place for typescript definition is on the definitelytyped site. it's a catalogue for typescript definition. |
@Gi972 I submitted a pull request, yet they need to include a test file with it as well. And I have noo idea what to put in those tests. Have you done a PR there before? I also have a full d.t.s definition for Mantra ready, which I'm using personally and I can share it .. yet again .. no idea what tests should be there. |
Another problem is that storybook does not have a npmjs page, therefore it is not recognised by the DT CI workflow. |
We have a NPM page. |
Yea, I know, but the silly CI scrip only check for high level npmjs addresses such as https://www.npmjs.com/package/storybook/ |
hello Tomitrescak , I never make PR before, I don't know how it works. It's right, I never saw the npm module name like @username/module-npm-Name I think it's not very conventional. |
@Gi972 yes it not. That's something NPM introduce recently. This is very important because of the recent NPM related issues. If that user have used a scoped package, there may not such an issue. |
Definitely Typed is deprecated in favour of https://github.com/typings/typings. It's much easier to add to. |
Great catch! I'll add it as soon as I'll have a bit of time. |
@tomitrescak You mean, use typescript? |
No, making the typescript definition as a part of the package and including it in package.json:
and in package.json
More info ... http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html Do you want a PR for this? |
@tomitrescak Why not. Send me a PR. |
@tomitrescak This is merged and released with |
All you need to do is enjoy the smiles of Typescript developers that will love you for this;) and occasionally update the typing when API changes. If you'll need help, just ping me. Thanks! |
And you can close this now. Thanks! |
Thanks @tomitrescak. |
@tomitrescak @arunoda ;-) |
When some url params are already present ui is displayed in the default way
…-story-flow Implement "How to write your Story" flow
Hello,
Good Tool, can you add a TypeScript Definition for use with *.tsx files.
Thanks
Gi
The text was updated successfully, but these errors were encountered: