TypeScript Validator Function: Type Definition and Implementation
i need some help with a type definition for a validator function
I want to be able to tag the sentry error with the name of the class schema used for validation like this:
what would be the proper type definition for
I want to be able to tag the sentry error with the name of the class schema used for validation like this:
S.decodeUnknownSync is supposed to accept classes (it works) but when trying to access schema.name I get TS2339: Property name does not exist on type Schema<T, T, never>what would be the proper type definition for
schema so I can safely access name?