groupme-js / groupme-js/node-groupme

Asynchronous client construction

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.