ui: frontend api (#470) [skip-cache]

This commit is contained in:
undefined authored and GitHub committed 2022-12-12 00:53:44 +08:00
1 parent 6d69e88739
commit 96fa6cc7b9
116 files changed
+599 -629

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
/* eslint-disable no-await-in-loop */
import type * as monaco from 'monaco-editor';
// eslint-disable-next-line @typescript-eslint/naming-convention
const _hooks: Record<keyof any, Array<(...args: any[]) => any>> = {};
@@ -11,7 +12,7 @@ export type Disposable = () => void;
export type VoidReturn = Promise<any> | any;
export interface EventMap extends Record<string, any> {
'scratchpadEditorCreate': (editor, monaco) => any;
'scratchpadEditorCreate': (editor: monaco.editor.IStandaloneCodeEditor, monaco: typeof import('monaco-editor')) => any;
}
function getHooks<K extends keyof EventMap>(name: K) {