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;
2424
2525/**
2626 * @typedef {Object } HasId
27- * @property {number } id
27+ * @property {number | string } id
2828 * */
2929
3030/**
31- * @typedef {(m: Module, idx: number) => boolean } ModuleFilterPredicate
31+ * @typedef {function( Module, number): boolean } ModuleFilterPredicate
3232 */
3333
3434/**
@@ -236,6 +236,7 @@ class Template {
236236 source . add ( "[]" ) ;
237237 return source ;
238238 }
239+ /** @type {Module[] } */
239240 var allModules = modules . map ( module => {
240241 return {
241242 id : module . id ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class SortableSet extends Set {
8282 /**
8383 * Get data from cache
8484 * @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
8686 */
8787 getFromCache ( fn ) {
8888 if ( this . _cache === undefined ) {
You can’t perform that action at this time.
0 commit comments