json-schema-typescript-generator
Version:
Generate typescript types from json schemas
13 lines (12 loc) • 421 B
TypeScript
export type AbsoluteSchemaId = {
authority: string;
folder: string;
name: string;
};
export type RelativeSchemaId = {
folder: string;
name: string;
};
export type SchemaId = AbsoluteSchemaId | RelativeSchemaId;
export declare const isAbsoluteSchemaId: (schemaId: SchemaId) => schemaId is AbsoluteSchemaId;
export declare const isRelativeSchemaId: (schemaId: SchemaId) => schemaId is RelativeSchemaId;