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
|
@ -137,8 +137,6 @@ export const getPointerParts = (
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @param args - The pointer parameters.
|
* @param args - The pointer parameters.
|
||||||
* @param args.root - The {@link Atom} the pointer applies to.
|
|
||||||
* @param args.path - The path to the (nested) property the pointer points to.
|
|
||||||
*
|
*
|
||||||
* @typeParam O - The type of the value being pointed to.
|
* @typeParam O - The type of the value being pointed to.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -64,18 +64,15 @@ export default class Emitter<V> {
|
||||||
return this._tappers.size !== 0
|
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.
|
* 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) {
|
onNumberOfTappersChange(cb: (n: number) => void) {
|
||||||
this._onNumberOfTappersChangeListener = cb
|
this._onNumberOfTappersChangeListener = cb
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/**
|
/*
|
||||||
// eslint-disable-next-line tsdoc/syntax
|
|
||||||
* @jest-environment jsdom
|
* @jest-environment jsdom
|
||||||
*/
|
*/
|
||||||
import {setupTestSheet} from '@theatre/shared/testUtils'
|
import {setupTestSheet} from '@theatre/shared/testUtils'
|
||||||
|
|
Loading…
Reference in a new issue