Fix the rest of the eslint warnings
This commit is contained in:
parent
aec6b2a251
commit
0d4d0c446e
3 changed files with 7 additions and 13 deletions
|
@ -64,18 +64,15 @@ export default class Emitter<V> {
|
|||
return this._tappers.size !== 0
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler to execute when the number of tappers (subscribers) changes.
|
||||
*
|
||||
* @callback Emitter~numberOfTappersChangeHandler
|
||||
*
|
||||
* @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.
|
||||
* @example
|
||||
* ```ts
|
||||
* emitter.onNumberOfTappersChange((n) => {
|
||||
* console.log("number of tappers changed:", n)
|
||||
* })
|
||||
* ```
|
||||
*/
|
||||
onNumberOfTappersChange(cb: (n: number) => void) {
|
||||
this._onNumberOfTappersChangeListener = cb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue