Interface: LNavEventBusTopicPublisher<T>
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:7
A publisher of an LNAV event bus topic.
Type Parameters
Type Parameter |
---|
T extends keyof BaseLNavEvents |
Properties
topic
readonly
topic:T
|`${T}_${number}`
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:9
The topic name to which this publisher publishes.
value
readonly
value:BaseLNavEvents
[T
]
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:12
The value of this publisher's topic data.
Methods
publish()
publish(
value?
):void
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:19
Publishes a value to this publisher's topic. The value will be published if and only if it is not equal to this publisher's existing value or if a republish is requested.
Parameters
Parameter | Type | Description |
---|---|---|
value? | BaseLNavEvents [T ] | The value to publish to the topic. If not defined, then the current value will be republished. |
Returns
void