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 full)
Methods
set
- set(this, value, options?): TJSPosition
Set value and inform subscribers.
Parameters
- this: void
- value: TJSPositionDataRelative
to set
Optional
options: OptionsSet
Returns TJSPosition
subscribe
- subscribe(this, run, invalidate?): Unsubscriber
Subscribe on value changes.
Parameters
- this: void
- run: Subscriber<TJSPositionDataRelative>
subscription callback
Optional
invalidate: Invalidator<TJSPositionDataRelative>cleanup callback
Returns Unsubscriber
update
- update(this, updater): 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.