Modifiers$validator$validator Callable$validator<T>(node: T, options?: Partial<ValidatorOptions>): TEnable the generation of validator code to this schema. Example$validator( $object({ foo: $string, }))Type parametersT: NodeParametersnode: TThe schema to enable the validator for.options: Partial<ValidatorOptions> = {}The validator options.Returns T
Enable the generation of validator code to this schema.
Example