SubscribeEventParams<Source, EventName>
Parameters for subscribeEvent.
Import:
import type { SubscribeEventParams } from 'obsidian-dev-utils/obsidian/events';Signature:
export interface SubscribeEventParams<Source extends Events, EventName extends EventNameOf<Source>>Properties
| Property | Type | Description |
|---|---|---|
| callback | EventCallbackOf<Source, EventName> | The event callback. Its argument types are inferred from SubscribeEventParams.name. |
| events | Source | The event source to subscribe on. |
| name | EventName | The event name to subscribe to. |
| thisArg? | unknown | The context passed as this to the callback. |
Links to this page: