Migrate to zod

This commit is contained in:
Morten Olsen
2025-07-31 10:42:09 +02:00
parent 85d043aec3
commit 34bba171ef
11 changed files with 79 additions and 1523 deletions

View File

@@ -1,9 +0,0 @@
import type { Static, TSchema } from '@sinclair/typebox';
import { TypeCompiler } from '@sinclair/typebox/compiler';
const isSchemaValid = <T extends TSchema>(schema: T, data: unknown): data is Static<T> => {
const compiler = TypeCompiler.Compile(schema);
return compiler.Check(data);
};
export { isSchemaValid };