groupme-js / groupme-js/node-groupme
Asynchronous client construction
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Some properties on the `Client` object (`Client.user`) rely on asynchronous operations (fetching `/users/me`).
Perhaps making the constructor private and providing an async function that returns a new Client object would be a better idea?
This way, all properties on the `Client` object can be definitely assigned in the constructor. (no more unnecessary `?` types)
Contributor guide
Assessment
This issue has not been assessed yet.