Skip to content

Commit 04d2af0

Browse files
committed
Sean comments (even more code questions?)
1 parent 5c43271 commit 04d2af0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/Template.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

lib/util/SortableSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)