From e9e504b40dde8691c32c933c7e27e28cfad1c8b5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 19 Dec 2023 01:17:22 -0500 Subject: Template type improvements (#380) * Default templates to unknown * Default typescript templates to unknown * More template type updates --- ext/js/general/cache-map.js | 3 ++- ext/js/general/task-accumulator.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/js/general') 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 { /** -- cgit v1.2.3