[TypeScript] Stronger overall typing #36
Labels
✨ Feature
New addition to the codebase (feature, utility, component, etc.)
🧑💻 Help wanted
Extra attention is needed
🧐 Question
Further information is requested
I have a user case where I want to keep a
enum
of the supportedSocialNetworks
in my app.I want to be able to assert that, when I initialize
Socialite
with a collection of networks (or add a new network viaaddNetwork()
),Socialite
knows exactly which networks exist.Something like:
Alternatively, if there is a way for Socialite to do this internally - without needing to pass a
Generic
- that would be incredible!The text was updated successfully, but these errors were encountered: