Skip to main content

system

const

Declare listeners on host event sources. Source and event ids come from the host, not from a fixed list in the SDK. Discover them with `ctx.system.listSources()` and `ctx.system.describeSource(source)`.

const system: Readonly<{ on<TPayload = unknown>(input: SystemListenerInput<TPayload>): SystemListener<TPayload>; }>

Import

import { system } from '@modular/sdk';