MCPcopy
hub / github.com/marktext/marktext / on

Method on

packages/desktop/src/types/global.d.ts:34–34  ·  view source on GitHub ↗
(
      channel: K,
      listener: (event: unknown, ...args: IpcMainEventChannels[K]) => void
    )

Source from the content-addressed store, hash-verified

32 ...args: IpcInvokeChannels[K]['args']
33 ): Promise<IpcInvokeChannels[K]['ret']>
34 on<K extends keyof IpcMainEventChannels>(
35 channel: K,
36 listener: (event: unknown, ...args: IpcMainEventChannels[K]) => void
37 ): () => void

Callers 15

onMethod · 0.65
listenMethod · 0.65
listenMethod · 0.65
listenMethod · 0.65
listenMethod · 0.65
listenMethod · 0.65
_listenMethod · 0.65
focusBlur.spec.tsFile · 0.65
bindEditorEventsFunction · 0.65
helpers.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected