UNPKG

prong-editor

Version:

Prong (PRojectional jsON Gui) is an editor framework for creating bespoke in-browser editors for JSON-based domain-specific languages (such as [Vega](https://vega.github.io/vega/), [Vega-Lite](https://vega.github.io/vega-lite/), [Tracery](https://tracery.

31 lines (30 loc) 982 B
import { JSONSchema } from "../JSONSchemaTypes"; declare type SchemaDependencies = Set<string>; export declare function resolveSchemaContent(schemaToResolve: JSONSchema, schemaURL: string, dependencies: SchemaDependencies): Promise<ResolvedSchema>; export interface ISchemaHandle { /** * The schema id */ uri: string; /** * The schema from the file, with potential $ref references */ getUnresolvedSchema(): Promise<UnresolvedSchema>; /** * The schema from the file, with references resolved */ getResolvedSchema(): Promise<ResolvedSchema>; } export declare class UnresolvedSchema { schema: JSONSchema; errors: string[]; constructor(schema: JSONSchema, errors?: string[]); } export declare class ResolvedSchema { schema: JSONSchema; errors: string[]; constructor(schema: JSONSchema, errors?: string[]); getSection(path: string[]): JSONSchema | undefined; private getSectionRecursive; } export {};