mirror of
https://github.com/zoriya/typebox.git
synced 2026-06-03 11:16:30 +00:00
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:
@@ -44,7 +44,6 @@ import './regexp'
|
||||
import './required'
|
||||
import './rest'
|
||||
import './return-type'
|
||||
import './strict'
|
||||
import './string'
|
||||
import './symbol'
|
||||
import './template-literal'
|
||||
|
||||
@@ -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
|
||||
}>()
|
||||
}
|
||||
Reference in New Issue
Block a user