Defines a type that describes another type's shape.
It is accepted by type matching functions like
mismatch(), conforms(), duckMismatch(), exactlyConforms()
.
This type is a meta-type, as it describes limitations over other types.
Defines a type that is described by the given TTypeDescr
type description.
Generated using TypeDoc
Makes an alias for the type that maps properties of
TTargetObject
toTypeDescription
'sUse it like so:
import * as Vts from 'vee-type-safe'; export interface Human { name: string; age: number; } export const HumanTD: Vts.TypeDescrObject<Human> = { name: 'string', age: Vts.isPositiveInteger // you will get better intellisense here };