aboutsummaryrefslogtreecommitdiff
path: root/ext/js/general
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-19 01:17:22 -0500
committerGitHub <noreply@github.com>2023-12-19 06:17:22 +0000
commite9e504b40dde8691c32c933c7e27e28cfad1c8b5 (patch)
tree1128f311d9e5cb6316fbf237724eb2b87a522446 /ext/js/general
parent20dd6112724a77fee16281930e79a2e6822acff7 (diff)
Template type improvements (#380)
* Default templates to unknown * Default typescript templates to unknown * More template type updates
Diffstat (limited to 'ext/js/general')
-rw-r--r--ext/js/general/cache-map.js3
-rw-r--r--ext/js/general/task-accumulator.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/js/general/cache-map.js b/ext/js/general/cache-map.js
index cc706380..a995b8c7 100644
--- a/ext/js/general/cache-map.js
+++ b/ext/js/general/cache-map.js
@@ -18,7 +18,8 @@
/**
- * @template K,V
+ * @template [K=unknown]
+ * @template [V=unknown]
* Class which caches a map of values, keeping the most recently accessed values.
*/
export class CacheMap {
diff --git a/ext/js/general/task-accumulator.js b/ext/js/general/task-accumulator.js
index cb136908..86cb9e3e 100644
--- a/ext/js/general/task-accumulator.js
+++ b/ext/js/general/task-accumulator.js
@@ -19,7 +19,8 @@
import {log} from '../core.js';
/**
- * @template K,V
+ * @template [K=unknown]
+ * @template [V=unknown]
*/
export class TaskAccumulator {
/**