UNPKG

@n1k1t/mock-server

Version:

The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations

12 lines 601 B
import { TObject, TSchema } from '@n1k1t/typebox'; import { ValueError } from '@n1k1t/typebox/value'; import type { Constructable } from '../../../types'; interface IValidationMetaContext { schema: TObject; properties: Set<string | Symbol>; } export declare const extractValidationMetaContext: (Definition: Constructable<object> | Function) => IValidationMetaContext | null; export declare const validate: (instance: object, references?: TSchema[]) => ValueError[]; export declare const UseValidation: (schema: TSchema) => PropertyDecorator; export {}; //# sourceMappingURL=validation.d.ts.map