MCPcopy
hub / github.com/marktext/marktext / once

Method once

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

Source from the content-addressed store, hash-verified

36 listener: (event: unknown, ...args: IpcMainEventChannels[K]) => void
37 ): () => void
38 once<K extends keyof IpcMainEventChannels>(
39 channel: K,
40 listener: (event: unknown, ...args: IpcMainEventChannels[K]) => void
41 ): () => void

Callers 9

onceMethod · 0.65
index.tsFile · 0.65
createWindowMethod · 0.65
createWindowMethod · 0.65
reloadMethod · 0.65
AppClass · 0.65
cleanupAtSenderDestroyFunction · 0.65
snap.svg-min.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected