Skip to content

Commit 9b0b4a1

Browse files
authored
refactor(superdoc): close remaining any-leaks on SuperDoc instance (SD-2828) (#3077)
1 parent 365e6ab commit 9b0b4a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/superdoc/src/core/SuperDoc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,15 @@ export class SuperDoc extends EventEmitter {
286286
}
287287

288288
this.config.colors = shuffleArray(this.config.colors);
289+
/** @type {Map<unknown, unknown>} */
289290
this.userColorMap = new Map();
290291
this.colorIndex = 0;
291292

292293
// @ts-expect-error - __APP_VERSION__ is injected at build time
293294
this.version = __APP_VERSION__;
294295
this.#log('🦋 [superdoc] Using SuperDoc version:', this.version);
295296

297+
/** @type {string} */
296298
this.superdocId = config.superdocId || uuidv4();
297299
// Default to an empty palette when no colors are configured so downstream
298300
// assignment logic doesn't have to null-check on every access.

0 commit comments

Comments
 (0)