UNPKG

create-validator-ts

Version:

Create JSON Schema validator from TypeScript.

15 lines 787 B
import { TsJsonSchemaGeneratorOptions } from "./create-validator-ts.js"; export type { GenerateValidatorCodeOptions, CodeGenerator } from "./default-code-generator.js"; export declare function dynamicImport(targetPath: string): Promise<any>; export type CreateTSValidatorOptions = { cwd: string; verbose: boolean; tsconfigFilePath: string; codeGeneratorScript: string; targetGlobs: string[]; noCache?: boolean; } & TsJsonSchemaGeneratorOptions; export declare function watchValidator(options: CreateTSValidatorOptions): Promise<void>; export declare function testGeneratedValidator(options: CreateTSValidatorOptions): Promise<void[]>; export declare function createValidator(options: CreateTSValidatorOptions): Promise<void[]>; //# sourceMappingURL=index.d.ts.map