UNPKG

487 BTypeScriptView Raw
1import * as ts from 'typescript';
2import { JsonSchemaDraft04 } from './jsonSchemaDraft04';
3import { JsonSchemaObject } from './type';
4import SimpleTypes = JsonSchemaDraft04.Schema.Definitions.SimpleTypes;
5export declare function toTSType(type: string, debugSource?: JsonSchemaObject): ts.KeywordTypeSyntaxKind | ts.SyntaxKind.NullKeyword | undefined;
6export declare function reduceTypes(types: SimpleTypes[]): SimpleTypes[];
7export declare function mergeSchema(a: any, b: any): boolean;