Publish
This commit is contained in:
13
test/static/ref.ts
Normal file
13
test/static/ref.ts
Normal 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>()
|
||||
}
|
||||
Reference in New Issue
Block a user