Revision 0.33.8 (#983)

* Prevent Intersect Transform Encode callback from being called twice

* Make strict the Encode and Decode return type

* Support default annotation being assigned Functions for lazy value initialization on Create

*  Enable Mapping types to override user defined options from source type

* Support Constraint Copy for Pick, Omit (inline with Partial / Required) (Trialing Implementation)

* Flag Strict For Deprecation
This commit is contained in:
sinclairzx81
2024-09-03 04:28:33 +09:00
committed by GitHub
parent 1aee5c0863
commit ed4c89a9ab
36 changed files with 307 additions and 257 deletions
-1
View File
@@ -44,7 +44,6 @@ import './regexp'
import './required'
import './rest'
import './return-type'
import './strict'
import './string'
import './symbol'
import './template-literal'
-20
View File
@@ -1,20 +0,0 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
{
const T = Type.Strict(
Type.Object({
A: Type.String(),
B: Type.String(),
C: Type.String(),
}),
)
type T = Static<typeof T>
Expect(T).ToStatic<{
A: string
B: string
C: string
}>()
}