Add Standardized Zod Validation to WebAPI

Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
yash-signal 2025-05-16 11:11:09 -05:00 committed by GitHub
commit fca742b37b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 260 additions and 242 deletions

File diff suppressed because it is too large Load diff

View file

@ -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> =