Add Standardized Zod Validation to WebAPI
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
parent
05a6f0e927
commit
fca742b37b
2 changed files with 260 additions and 242 deletions
File diff suppressed because it is too large
Load diff
|
@ -12,7 +12,7 @@ import type {
|
|||
} from 'type-fest';
|
||||
import type { SafeParseReturnType, ZodError, ZodType, ZodTypeDef } from 'zod';
|
||||
|
||||
type Schema<Input, Output> = ZodType<Output, ZodTypeDef, Input>;
|
||||
export type Schema<Input, Output> = ZodType<Output, ZodTypeDef, Input>;
|
||||
type SafeResult<Output> = SafeParseReturnType<unknown, Output>;
|
||||
|
||||
type LooseInput<T> =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue