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

13
test/static/ref.ts Normal file
View File

@@ -0,0 +1,13 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
{
const T = Type.String({ $id: 'T' })
const R = Type.Ref('T')
type T = Static<typeof T>
type R = Static<typeof R>
Expect(T).ToStatic<string>()
Expect(R).ToStatic<unknown>()
}