We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6309b3e + b7664b2 commit 1ee0e41Copy full SHA for 1ee0e41
src/schema.ts
@@ -709,7 +709,7 @@ export const getSchemaValidator = <T extends TSchema | string | undefined>(
709
validators?: InputSchema['body'][]
710
sanitize?: () => ExactMirrorInstruction['sanitize']
711
} = {}
712
-): T extends TSchema ? ElysiaTypeCheck<TSchema> : undefined => {
+): T extends TSchema ? ElysiaTypeCheck<T> : undefined => {
713
validators = validators?.filter((x) => x)
714
715
if (!s) {
0 commit comments