Publish
This commit is contained in:
10
test/static/tuple.ts
Normal file
10
test/static/tuple.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
|
||||
{
|
||||
const T = Type.Tuple([Type.Number(), Type.String(), Type.Boolean()])
|
||||
|
||||
type T = Static<typeof T>
|
||||
|
||||
Expect(T).ToStatic<[number, string, boolean]>()
|
||||
}
|
||||
Reference in New Issue
Block a user