-
Notifications
You must be signed in to change notification settings - Fork 59
Typescript definition file #7
Comments
I am sorry I do not know enough about Typescript. Does this mean that you cannot use this library without types definition? |
You can use it, but the compiler will complain (or won't even compile depending on your settings). The ideal would be to embed a With this, the TypeScript compiler should be happy. |
I will think about it. On one hand I want to provide what's needed for this library, on the other hand I cannot spread efforts to please everyone using a JavaScript like language with specific files to add and mostly to maintain. What's the worst? Compiler with warning, or compiler with error because the |
I completely understand, take your time. I think it would be a great help for TS developers who will have to find this file, but I understand your reluctance to maintain it. |
I am kind of stuck in the same boat - I need the typings so that I can use it in my current project. I have not found a work around 3 days into working with the library. it would be wonderful to have it but I would understand if its not a priority. |
I see. Could it work for you guys with https://github.com/DefinitelyTyped/DefinitelyTyped ? |
Yes that would work - the ideal would be what @cexbrayat mentioned but yes if we could get something in DT then that would go a long way. I work for a major airline and we are in the process of adopting libraries for our core boiler plate project which will serve as a starter project for all new UI projects. I can help out if need be to maintain the definitions |
That's so sad this issue is in "open" state... I am starting a new project, and I really need typings for this library. Any solutions right now? |
I could take a PR but I am afraid I could not maintain the file when the Le 8 août 2016 21:43, "sinedsem" notifications@github.com a écrit :
|
I am a newbie in frontend, that's why I need this out of the box. I don't understand yet how this works, so I completely agree: we need somebody in charge. |
Typings for |
First of all, thank you very much for the energy you're putting in the project.
I am, as a lot of Angular 2 developers, working more and more with TypeScript.
And, as you may know, TypeScript needs typings for external librairies. So it would be great if you could add the typings to the DefinitelyTyped repository, or better, within the NPM module (as recent TypeScript compilers can pick it up automatically).
This is not a new issue, as you can see on the original repo jmesnil/stomp-websocket#61
I'm not a TypeScript expert, but I slightly modified one of the propositions to have the bare minimum for my case (I don't know enough the library to make something more exhaustive).
The text was updated successfully, but these errors were encountered: