Fix a bunch of eslint warnings

This commit is contained in:
Aria Minaei 2022-02-23 22:53:39 +01:00
parent 078fa7a849
commit aec6b2a251
17 changed files with 49 additions and 53 deletions

View file

@ -49,7 +49,7 @@ export default class Emitter<V> {
/**
* Emit a value.
*
* @param payload The value to be emitted.
* @param payload - The value to be emitted.
*/
emit(payload: V) {
this._tappers.forEach((cb) => {
@ -69,13 +69,13 @@ export default class Emitter<V> {
*
* @callback Emitter~numberOfTappersChangeHandler
*
* @param {number} n The current number of tappers (subscribers).
* @param {number} n - The current number of tappers (subscribers).
*/
/**
* Calls callback when the number of tappers (subscribers) changes.
*
* @param {Emitter~requestCallback} cb The function to be called.
* @param {Emitter~requestCallback} cb - The function to be called.
*/
onNumberOfTappersChange(cb: (n: number) => void) {
this._onNumberOfTappersChangeListener = cb

View file

@ -61,7 +61,7 @@ export default class Tappable<V> {
/**
* Tap (subscribe to) the data source.
*
* @param cb The callback to be called on a change.
* @param cb - The callback to be called on a change.
*/
tap(cb: Listener<V>): Untap {
const tapperId = this._lastTapperId++