File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ class SortableSet extends Set {
9
9
/**
10
10
* Create a new sortable set
11
11
* @param {Array<T>= } initialIterable The initial iterable value
12
+ * @typedef {function(T, T): number } SortFunction
12
13
* @param {SortFunction= } defaultSort Default sorting function
13
- * @typedef {(a: T, b: T) => number } SortFunction
14
14
*/
15
15
constructor ( initialIterable , defaultSort ) {
16
16
super ( initialIterable ) ;
17
- /** @private @type {(a: T, b: T) => number }} */
17
+ /** @private @type {function( T, T): number }} */
18
18
this . _sortFn = defaultSort ;
19
- /** @private @type {(a: T, b: T) => number } | null} */
19
+ /** @private @type {function( T, T): number } | null} */
20
20
this . _lastActiveSortFn = null ;
21
21
/** @private @type {Map<Function, T[]> | undefined } */
22
22
this . _cache = undefined ;
You can’t perform that action at this time.
0 commit comments