vtils

Home > vae > VaeSchema

VaeSchema class

Signature:

export declare abstract class VaeSchema<T0 extends any = any, T extends NonNullable<T0> = NonNullable<T0>> 

Constructors

Constructor Modifiers Description
(constructor)(options)   Constructs a new instance of the VaeSchema class

Properties

Property Modifiers Type Description
_options protected RequiredBy<VaeSchemaOptions<T, any>, ‘processors’>  
options readonly RequiredBy<VaeSchemaOptions<T, any>, “processors”>  

Methods

Method Modifiers Description
cast(data, options)    
check(payload)    
clone()    
custom(fn, messageOrOptions)    
default(value)    
enum(value, message)    
label(label)    
meta(metadata)    
optional()    
parse(data, options)    
parseOrThrow(data, options)    
reach(paths, ctx, curPath)    
reach(path, ctx, curPath)    
required(message)    
runtime(fn)    
transform(payload)