UNPKG

@scalar/api-client

Version:

the open source API testing client

15 lines 686 B
import * as monaco from 'monaco-editor'; /** * Enables clickable JSON Pointer links in Monaco JSON editor. * * - Scans for "#/" inside JSON string values, but only within properly quoted, unescaped strings. * - When a valid JSON Pointer is found, highlights it (excluding quotes) as a clickable link. * - Clicking the link invokes the provided `navigate` function with the decoded pointer. * * @param navigate Callback to execute on pointer link click. */ export declare const ensureJsonPointerLinkSupport: (navigate: (pointer: string) => Promise<void> | void) => { linkOpener: monaco.IDisposable; dispose: () => void; }; //# sourceMappingURL=json-pointer-links.d.ts.map