mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-29 09:23:08 +00:00
Revision 0.32.6 (#724)
* Export TTemplateLiteralSyntax Infrastructure * Export TDecodeType, TDecodeRest and TDecodeProperties * Normalize Mapped Types, Drop TCompositeResolve * Export KeyOf Infrastructure * Export Awaited, Exclude, Extract, Pick, Omit and Mapped ReturnType
This commit is contained in:
@@ -7,7 +7,7 @@ import { Expect } from './assert'
|
||||
}
|
||||
{
|
||||
const T = Type.Extract(Type.String(), Type.Number())
|
||||
Expect(T).ToStatic<string>()
|
||||
Expect(T).ToStaticNever()
|
||||
}
|
||||
{
|
||||
const T = Type.Extract(Type.Union([Type.Number(), Type.String(), Type.Boolean()]), Type.Number())
|
||||
|
||||
Reference in New Issue
Block a user