File tree Expand file tree Collapse file tree
packages/superdoc/src/core Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments