UNPKG

ngx-json-schema-viewer

Version:
23 lines (22 loc) 1.22 kB
import { OnInit } from '@angular/core'; import { SchemaResolutionService } from './services/schema-resolver'; import type { JSONSchema } from './types'; import type { IResolveOpts } from "@stoplight/json-ref-resolver/types"; import * as i0 from "@angular/core"; type StatusType = "LOADING" | "ERROR" | "DONE"; export declare class NgxJsonSchemaViewerComponent implements OnInit { private schemaResolutionService; schema: unknown; resolverOptions?: IResolveOpts; expanded: boolean; resolvedSchema: import("@angular/core").WritableSignal<JSONSchema | undefined>; error: import("@angular/core").WritableSignal<Error | undefined>; status: import("@angular/core").Signal<StatusType>; constructor(schemaResolutionService: SchemaResolutionService); ngOnInit(): void; private schemaResolution; get getSchemaTitle(): string; static ɵfac: i0.ɵɵFactoryDeclaration<NgxJsonSchemaViewerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxJsonSchemaViewerComponent, "ngx-json-schema-viewer", never, { "schema": { "alias": "schema"; "required": true; }; "resolverOptions": { "alias": "resolverOptions"; "required": false; }; }, {}, never, never, true, never>; } export {};