Functions
Validate
0.0.46 provide
Validate( ) : ( target: any , propertyKey: DecoratorKey , descriptor: PropertyDescriptor ) => void
Returns ( target: any , propertyKey: DecoratorKey , descriptor: PropertyDescriptor ) => void
( target: any , propertyKey: DecoratorKey , descriptor: PropertyDescriptor ) : void
Parameters
target: any
descriptor: PropertyDescriptor
Returns void
ValidateAndTransformComponentProps
0.0.46 provide
ValidateAndTransformComponentProps<T>( dto: {} ) : <P>( constructor: P ) => { prototype: any } & P
Type parameters
Parameters
Returns <P>( constructor: P ) => { prototype: any } & P
<P>( constructor: P ) : { prototype: any } & P
Type parameters
P: new ( ... args: any [] ) => {}
Parameters
Returns { prototype: any } & P
validateComponentPropsHoc
0.0.46 provide
validateComponentPropsHoc<T>( dto: T ) : <F>( FcComponent: F ) => F
Type parameters
Parameters
Returns <F>( FcComponent: F ) => F
Type parameters
Parameters
Returns F
validateInterfaceData
0.0.46 provide
validateInterfaceData<T>( dto: {} ) : ( value: Pick < FilterDtoFunction < T > , { [ K in string | number | symbol ] : FilterDtoFunction < T > [ K ] extends never ? never : K } [ keyof T ] > ) => T
Type parameters
Parameters
Returns ( value: Pick < FilterDtoFunction < T > , { [ K in string | number | symbol ] : FilterDtoFunction < T > [ K ] extends never ? never : K } [ keyof T ] > ) => T
( value: Pick < FilterDtoFunction < T > , { [ K in string | number | symbol ] : FilterDtoFunction < T > [ K ] extends never ? never : K } [ keyof T ] > ) : T
Parameters
value: Pick < FilterDtoFunction < T > , { [ K in string | number | symbol ] : FilterDtoFunction < T > [ K ] extends never ? never : K } [ keyof T ] >
Returns T
Legend
Namespace
Variable
Function
Function with type parameter
Type alias
Type alias with type parameter
类方法检验
基础实例