UNPKG

json-schema-typescript-generator

Version:
28 lines (27 loc) 921 B
export type AbsoluteSchemaRef = { authority: string; folder: string; name: string; }; export type AbsoluteFragmentSchemaRef = { authority: string; folder: string; name: string; fragment: string; }; export type RelativeSchemaRef = { folder: string; name: string; }; export type RelativeFragmentSchemaRef = { folder: string; name: string; fragment: string; }; export type LocalSchemaRef = { fragment: string; }; export type SchemaRef = AbsoluteSchemaRef | AbsoluteFragmentSchemaRef | RelativeSchemaRef | RelativeFragmentSchemaRef | LocalSchemaRef; export declare const isAbsolute: (schemaRef: SchemaRef) => schemaRef is AbsoluteSchemaRef | AbsoluteFragmentSchemaRef; export declare const isRelative: (schemaRef: SchemaRef) => schemaRef is RelativeSchemaRef | RelativeFragmentSchemaRef; export declare const isLocal: (schemaRef: SchemaRef) => schemaRef is LocalSchemaRef;