This commit is contained in:
sinclair
2025-12-24 15:44:34 +09:00
commit 13d553220c
1047 changed files with 80931 additions and 0 deletions

8
test/static/literal.ts Normal file
View File

@@ -0,0 +1,8 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
Expect(Type.Literal('hello')).ToStatic<'hello'>()
Expect(Type.Literal(true)).ToStatic<true>()
Expect(Type.Literal(42)).ToStatic<42>()