You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a nice suggestion, I remember many people trying to maintain their own enums of gate names, and standardizing a way to do that would be nice. We've added this to our backlog
Issue
If I fat-finger a gate ID when calling
useGate()
, I want my typescript type checker to identify this.Suggestion
Make the
gateName
variable be aGateName
type. This type is by defaultstring
, but can be overridden by the consuming project with something likeWhenever I start using a new gate, the first step is to add it to this type, and when I remove a type I remove it from this type definition.
The text was updated successfully, but these errors were encountered: