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