-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Typescript support #117
Comments
I started writing type definitions which include socketcluster-client; see SocketCluster/socketcluster#431 |
Thanks @DanielRose for https://www.npmjs.com/package/@types/socketcluster |
The types are broken again due to major version change to v15. @DanielRose is having a look DefinitelyTyped/DefinitelyTyped#41893 I have a feeling it's going to be a bit of a job and there was some discussion about it on Gitter. Are the Socketcluster main contributors also going to look at typescript and maybe help out? |
I think right now it makes sense for developers to define the TS interfaces themselves in their projects but we can start thinking about updating DefinitelyTyped definitions. One thing to be aware of is that the type names are currently prefixed with the letters I'm still unsure whether we should stick to that Alternatively, we could stick to |
Got a PR: DefinitelyTyped/DefinitelyTyped#42068 Due to a lot of internal changes, and obsoleting of several packages, it was a bit more difficult than expected. |
Typing an existing package is a big job. Thank you @DanielRose for the quick work! |
@jondubois I think it would make sense to keep the AG prefix now that v15 is released and with all the internal changes it's a quick way to distinguish between major versions. |
I would recommend considering it for v16. AG typically implies Angular is involved, conventionally speaking. Many angular plugins and libraries will prefix with "ag-". IMO, if further discussion is warranted, though, it should be in its own issue. |
I thought Angular was |
Point. I think I'm misremembering. |
@DanielRose Wow nice work :) |
Hi,
I am trying to use this library in the ionic 4 app and its based on typescript. Can you tell how to import the socket cluster inside angular 2 component?
What I tried
import {socketCluster} from 'socketcluster-client'
ERROR
The text was updated successfully, but these errors were encountered: