Interface TJSPositionWritable
interface TJSPositionWritable {
set(
this: void,
value: TJSPositionDataRelative,
options?: OptionsSet,
): TJSPosition;
subscribe(
this: void,
run: Subscriber<TJSPositionDataRelative>,
invalidate?: Invalidator<TJSPositionDataRelative>,
): Unsubscriber;
update(this: void, updater: Updater<TJSPositionDataRelative>): void;
}
set(
this: void,
value: TJSPositionDataRelative,
options?: OptionsSet,
): TJSPosition;
subscribe(
this: void,
run: Subscriber<TJSPositionDataRelative>,
invalidate?: Invalidator<TJSPositionDataRelative>,
): Unsubscriber;
update(this: void, updater: Updater<TJSPositionDataRelative>): void;
}
Implemented by
Hierarchy
- Writable<TJSPositionDataRelative>
- TJSPositionWritable (View Summary)
Methods
set
- set(
this: void,
value: TJSPositionDataRelative,
options?: OptionsSet,
): TJSPosition Set value and inform subscribers.
Parameters
- this: void
- value: TJSPositionDataRelative
to set
Optional
options: OptionsSet
Returns TJSPosition
subscribe
- subscribe(
this: void,
run: Subscriber<TJSPositionDataRelative>,
invalidate?: Invalidator<TJSPositionDataRelative>,
): Unsubscriber Subscribe on value changes.
Parameters
- this: void
- run: Subscriber<TJSPositionDataRelative>
subscription callback
Optional
invalidate: Invalidator<TJSPositionDataRelative>cleanup callback
Returns Unsubscriber
update
- update(this: void, updater: Updater<TJSPositionDataRelative>): void
Update value using callback and inform subscribers.
Parameters
- this: void
- updater: Updater<TJSPositionDataRelative>
callback
Returns void
Provides an overloaded Writable store interface for TJSPosition.set.