Skip to content

electron-reactive-event / API / Callback

Callback

Types for callback functions, their arguments, and their return values.

Namespaces

NamespaceDescription
ArgumentArguments for callback functions provided to electron-reactive-event.
RegisterFunctionFunctions that are responsible for registering callbacks.
ReturnTypeThe values used to construct a "!ReturnType:type".

Type Aliases

Type AliasDescription
AwaitedReturnType-
CallbackA function that is given to electron-reactive-event via one of the register functions or hooks.
EventRecordA record of callbacks, such that the keys are Channels, and the values are callbacks for event declarations given by their respective keys
MainMainCallbacks live under main, i.e., they receive renderer events.
RendererRendererCallbacks live under the renderer, i.e., they receive main events.
ReturnTypeThis is the type that a Callback function must return.