Skip to content

Commit b3a9512

Browse files
authored
refactor(superdoc): type three implicit-any locals (SD-2867 phase B) (#3064)
1 parent 089ecfb commit b3a9512

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/superdoc/src/core/SuperDoc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ export class SuperDoc extends EventEmitter {
894894
const SYNC_TIMEOUT_MS = 10_000;
895895

896896
return new Promise((resolve, reject) => {
897+
/** @type {ReturnType<typeof setTimeout> | undefined} */
897898
let timer;
898899
let settled = false;
899900
let syncCleanup = () => {};
@@ -1523,6 +1524,7 @@ export class SuperDoc extends EventEmitter {
15231524
* @returns {Array<string>} The HTML content of all editors
15241525
*/
15251526
getHTML(options = {}) {
1527+
/** @type {Editor[]} */
15261528
const editors = [];
15271529
this.superdocStore.documents.forEach((doc) => {
15281530
const editor = doc.getEditor();
@@ -1627,6 +1629,7 @@ export class SuperDoc extends EventEmitter {
16271629
// `converter.comments` (which the legacy delete path doesn't
16281630
// clear today; tracked separately under SD-2839). Pass
16291631
// whatever the store returns, including `[]`.
1632+
/** @type {unknown[] | undefined} */
16301633
let comments;
16311634
const commentsModuleConfig = this.config?.modules?.comments;
16321635
const uiStoreHydrated = commentsModuleConfig !== false;

0 commit comments

Comments
 (0)