UNPKG

701 BTypeScriptView Raw
1import * as spec from '@jsii/spec';
2import * as ts from 'typescript';
3import { Emitter } from './emitter';
4import { JsiiDiagnostic } from './jsii-diagnostic';
5import { ProjectInfo } from './project-info';
6export declare class Validator implements Emitter {
7 readonly projectInfo: ProjectInfo;
8 readonly assembly: spec.Assembly;
9 static VALIDATIONS: ValidationFunction[];
10 constructor(projectInfo: ProjectInfo, assembly: spec.Assembly);
11 emit(): ts.EmitResult;
12}
13export type DiagnosticEmitter = (diag: JsiiDiagnostic) => void;
14export type ValidationFunction = (validator: Validator, assembly: spec.Assembly, diagnostic: DiagnosticEmitter) => void;
15//# sourceMappingURL=validator.d.ts.map
\No newline at end of file