mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
c464e05728
Co-authored-by: Opender Singh <opender.singh@konghq.com>
25 lines
792 B
TypeScript
25 lines
792 B
TypeScript
import 'codemirror';
|
|
import { HandleGetRenderContext, HandleRender } from './common/render';
|
|
|
|
type LinkClickCallback = (url: string) => void;
|
|
|
|
interface InsomniaExtensions {
|
|
closeHintDropdown: () => void;
|
|
enableNunjucksTags: (
|
|
handleRender: HandleRender,
|
|
handleGetRenderContext?: HandleGetRenderContext,
|
|
isVariableUncovered?: boolean,
|
|
) => void;
|
|
isHintDropdownActive: () => boolean;
|
|
makeLinksClickable: (handleClick: LinkClickCallback) => void;
|
|
}
|
|
|
|
declare module 'codemirror' {
|
|
type CodeMirrorLinkClickCallback = LinkClickCallback;
|
|
|
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
interface Editor extends InsomniaExtensions {}
|
|
interface EditorFromTextEditor extends InsomniaExtensions {}
|
|
/* eslint-enable @typescript-eslint/no-empty-interface */
|
|
}
|