Sean comments (even more code questions?)

This commit is contained in:
Mohsen Azimi 2018-06-19 15:48:00 -07:00
parent 5c43271397
commit 04d2af0825
2 changed files with 4 additions and 3 deletions

View File

@ -24,11 +24,11 @@ const MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
/**
* @typedef {Object} HasId
* @property {number} id
* @property {number | string} id
* */
/**
* @typedef {(m: Module, idx: number) => boolean} ModuleFilterPredicate
* @typedef {function(Module, number): boolean} ModuleFilterPredicate
*/
/**
@ -236,6 +236,7 @@ class Template {
source.add("[]");
return source;
}
/** @type {Module[]} */
var allModules = modules.map(module => {
return {
id: module.id,

View File

@ -82,7 +82,7 @@ class SortableSet extends Set {
/**
* Get data from cache
* @param {function(SortableSet<T>): T[]} fn function to calculate value
* @returns {TODO} returns result of fn(this), cached until set changes
* @returns {T[]} returns result of fn(this), cached until set changes
*/
getFromCache(fn) {
if (this._cache === undefined) {