版本:NextMethods
- getSchema<T>(ClzType: T): ObjectSchema<any>
Type parameters
- T: new (...args: any[]) => any
- validate<T>(ClzType: T, value: any, options?: { errorStatus?: number; locale?: string; validationOptions?: ValidationOptions }): ValidationResult<T>
Type parameters
- T: new (...args: any[]) => any
- validateWithSchema<T>(schema: AnySchema<T>, value: any, options?: { errorStatus?: number; locale?: string; validationOptions?: ValidationOptions }): ValidationResult<T>