b64EncoderFromSchema
Callable
Type parameters
- T = unknown
Parameters
schema: ZodType<T, ZodTypeDef, T>
Returns { decode: (input: string) => T; encode: (input: any) => string }
decode: (input: string) => T
Parameters
input: string
Returns T
encode: (input: any) => string
Parameters
input: any
Returns string