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
Getting the types in place would be straightforward using the exactEquals util from @arktype/util.
The more important part will be adding logic to the type-checking phase to store data from an extra generic arg for is like:
// okattest("foo").type.is<string>();// this needs to throw at runtime and have a type error,// likely by requiring an extra parameter on is with an ErrorMessageattest("foo").type.is<any>();
The text was updated successfully, but these errors were encountered:
Inspired by a suggestion from @colinhacks implemented in typejest.
Getting the types in place would be straightforward using the
exactEquals
util from@arktype/util
.The more important part will be adding logic to the type-checking phase to store data from an extra generic arg for
is
like:The text was updated successfully, but these errors were encountered: