File size: 411 Bytes
c2b7eb3
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Schema, SchemaDraft, ValidationResult } from './types.js';
export declare class Validator {
  private readonly schema;
  private readonly draft;
  private readonly shortCircuit;
  private readonly lookup;
  constructor(
    schema: Schema | boolean,
    draft?: SchemaDraft,
    shortCircuit?: boolean
  );
  validate(instance: any): ValidationResult;
  addSchema(schema: Schema, id?: string): void;
}