UNPKG

@apizr-io/class-utils

Version:

Package containing all class-validator function with all custom apizr class validation functions

10 lines (9 loc) 400 B
import { ClassConstructor } from 'class-transformer'; type BaseType = 'string' | 'number' | 'boolean' | 'undefined' | 'null' | 'object'; type AdvancedType = { type: AllowedType | AllowedType[]; array?: boolean; }; export type AllowedType = ClassConstructor<object> | BaseType | AdvancedType; export declare const isOneOfTypes: (types: AllowedType[], obj: any) => Promise<boolean>; export {};