@@ -221,6 +221,10 @@ export class SuperDoc extends EventEmitter {
221221 this . #init( config , container ) ;
222222 }
223223
224+ /**
225+ * @param {Config } config
226+ * @param {HTMLElement } container
227+ */
224228 async #init( config , container ) {
225229 this . config = {
226230 ...this . config ,
@@ -393,6 +397,7 @@ export class SuperDoc extends EventEmitter {
393397 const cspNonce = this . config . cspNonce ;
394398
395399 const originalCreateElement = document . createElement ;
400+ /** @param {string } tagName */
396401 document . createElement = function ( tagName ) {
397402 const element = originalCreateElement . call ( this , tagName ) ;
398403 if ( tagName . toLowerCase ( ) === 'style' ) {
@@ -488,7 +493,7 @@ export class SuperDoc extends EventEmitter {
488493 this . commentsStore = commentsStore ;
489494 this . highContrastModeStore = highContrastModeStore ;
490495 if ( typeof this . superdocStore . setExceptionHandler === 'function' ) {
491- this . superdocStore . setExceptionHandler ( ( payload ) => this . emit ( 'exception' , payload ) ) ;
496+ this . superdocStore . setExceptionHandler ( ( /** @type { unknown } */ payload ) => this . emit ( 'exception' , payload ) ) ;
492497 }
493498 this . superdocStore . init ( this . config ) ;
494499 const commentsModuleConfig = this . config . modules . comments ;
@@ -1064,6 +1069,7 @@ export class SuperDoc extends EventEmitter {
10641069 this . emit ( 'sidebar-toggle' , isOpened ) ;
10651070 }
10661071
1072+ /** @param {unknown[] } args */
10671073 #log( ...args ) {
10681074 ( console . debug ? console . debug : console . log ) ( '🦋 🦸♀️ [superdoc]' , ...args ) ;
10691075 }
0 commit comments