Skip to content

Commit 456cef4

Browse files
committed
Fixed internal type on typebox adapter
1 parent 7ab5b0e commit 456cef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/adapters/typebox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function validate<T extends TSchema>(
2929
const { TypeCompiler, FormatRegistry } = await fetchModule();
3030

3131
if (!compiled.has(schema)) {
32-
compiled.set(schema, TypeCompiler.Compile(schema));
32+
compiled.set(schema, TypeCompiler.Compile<TSchema>(schema));
3333
}
3434

3535
if (!FormatRegistry.Has('email')) {

0 commit comments

Comments
 (0)