SocketCluster / SocketCluster/socketcluster-client
Typescript support
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 300
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
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
Could not find a declaration file for module 'socketcluster-client'. '.../node_modules/socketcluster-client/index.js' implicitly has an 'any' type.
Trynpm install @types/socketcluster-clientif it exists or add a new declaration (.d.ts) file containingdeclare module 'socketcluster-client';
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the socketcluster-client package entry point, index.js, and how TypeScript resolves the package in an Ionic or Angular application. Determine the declaration surface needed for the client import and verify that a TypeScript consumer no longer receives the missing-declaration error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100