Skip to main content

SystemListenerInput

interface

Fields accepted by `system.on(...)`.

interface SystemListenerInput<TPayload = unknown>

Import

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

Members5

event
SystemSourceEventName

Which of that source's events to listen for.

handle
SystemListenerHandler<TPayload>

Runs on every occurrence.

id
SystemSourceListenerId

Identifier, unique within the mod.

source
SystemSourceId

Which host source to listen to, for example `'system.power'`.

title
string

Label shown where the host lists active subscriptions.