File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ const MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
24
24
25
25
/**
26
26
* @typedef {Object } HasId
27
- * @property {number } id
27
+ * @property {number | string } id
28
28
* */
29
29
30
30
/**
31
- * @typedef {(m: Module, idx: number) => boolean } ModuleFilterPredicate
31
+ * @typedef {function( Module, number): boolean } ModuleFilterPredicate
32
32
*/
33
33
34
34
/**
@@ -236,6 +236,7 @@ class Template {
236
236
source . add ( "[]" ) ;
237
237
return source ;
238
238
}
239
+ /** @type {Module[] } */
239
240
var allModules = modules . map ( module => {
240
241
return {
241
242
id : module . id ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class SortableSet extends Set {
82
82
/**
83
83
* Get data from cache
84
84
* @param {function(SortableSet<T>): T[] } fn function to calculate value
85
- * @returns {TODO } returns result of fn(this), cached until set changes
85
+ * @returns {T[] } returns result of fn(this), cached until set changes
86
86
*/
87
87
getFromCache ( fn ) {
88
88
if ( this . _cache === undefined ) {
You can’t perform that action at this time.
0 commit comments