## API Report File for "@tldraw/tlvalidate" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts // @public const any: Validator; // @public const array: Validator; // @public function arrayOf(itemValidator: Validator): ArrayOfValidator; // @public (undocumented) class ArrayOfValidator extends Validator { constructor(itemValidator: Validator); // (undocumented) readonly itemValidator: Validator; // (undocumented) lengthGreaterThan1(): Validator; // (undocumented) nonEmpty(): Validator; } // @public const bigint: Validator; // @public const boolean: Validator; // @public (undocumented) const boxModel: ObjectValidator<{ x: number; y: number; w: number; h: number; }>; // @public function dict(keyValidator: Validator, valueValidator: Validator): DictValidator; // @public (undocumented) class DictValidator extends Validator> { constructor(keyValidator: Validator, valueValidator: Validator); // (undocumented) readonly keyValidator: Validator; // (undocumented) readonly valueValidator: Validator; } // @public const integer: Validator; // @public function literal(expectedValue: T): Validator; // @public function model(name: string, validator: Validator): Validator; // @public const nonZeroInteger: Validator; // @public const nonZeroNumber: Validator; // @public const number: Validator; // @public function object(config: { readonly [K in keyof Shape]: Validator; }): ObjectValidator; // @public (undocumented) class ObjectValidator extends Validator { constructor(config: { readonly [K in keyof Shape]: Validator; }, shouldAllowUnknownProperties?: boolean); // (undocumented) allowUnknownProperties(): ObjectValidator; // (undocumented) readonly config: { readonly [K in keyof Shape]: Validator; }; extend>(extension: { readonly [K in keyof Extension]: Validator; }): ObjectValidator; } // @public (undocumented) const point: ObjectValidator<{ x: number; y: number; z: number | undefined; }>; // @public const positiveInteger: Validator; // @public const positiveNumber: Validator; // @public (undocumented) function setEnum(values: ReadonlySet): Validator; // @public const string: Validator; declare namespace T { export { literal, arrayOf, object, dict, union, model, setEnum, ValidatorFn, ValidationError, TypeOf, Validator, ArrayOfValidator, ObjectValidator, UnionValidator, DictValidator, unknown, any, string, number, positiveNumber, nonZeroNumber, integer, positiveInteger, nonZeroInteger, boolean, bigint, array, unknownObject, point, boxModel } } export { T } // @public (undocumented) type TypeOf> = V extends Validator ? T : never; // @public function union>(key: Key, config: Config): UnionValidator; // @public (undocumented) class UnionValidator, UnknownValue = never> extends Validator | UnknownValue> { constructor(key: Key, config: Config, unknownValueValidation: (value: object, variant: string) => UnknownValue); // (undocumented) validateUnknownVariants(unknownValueValidation: (value: object, variant: string) => Unknown): UnionValidator; } // @public const unknown: Validator; // @public (undocumented) const unknownObject: Validator>; // @public (undocumented) class ValidationError extends Error { constructor(rawMessage: string, path?: ReadonlyArray); // (undocumented) name: string; // (undocumented) readonly path: ReadonlyArray; // (undocumented) readonly rawMessage: string; } // @public (undocumented) class Validator { constructor(validationFn: ValidatorFn); check(name: string, checkFn: (value: T) => void): Validator; // (undocumented) check(checkFn: (value: T) => void): Validator; nullable(): Validator; optional(): Validator; refine(otherValidationFn: (value: T) => U): Validator; validate(value: unknown): T; // (undocumented) readonly validationFn: ValidatorFn; } // @public (undocumented) type ValidatorFn = (value: unknown) => T; // (No @packageDocumentation comment for this package) ```