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