UNPKG

@difizen/mana-core

Version:

25 lines 817 B
import type { Event } from '@difizen/mana-common'; import type { IJSONSchema } from './jsonSchema'; export declare const Extensions: { JSONContribution: string; }; export interface ISchemaContributions { schemas: Record<string, IJSONSchema>; } export interface IJSONContributionRegistry { readonly onDidChangeSchema: Event<string>; /** * Register a schema to the registry. */ registerSchema: (uri: string, unresolvedSchemaContent: IJSONSchema) => void; /** * Notifies all listeners that the content of the given schema has changed. * @param uri The id of the schema */ notifySchemaChanged: (uri: string) => void; /** * Get all schemas */ getSchemaContributions: () => ISchemaContributions; } //# sourceMappingURL=jsonContributionRegistry.d.ts.map