@@ -1289,7 +1289,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
12891289
12901290 input . focus ( )
12911291
1292- let dialogCloseTimer : number
1292+ let dialogCloseTimer : ReturnType < typeof setTimeout >
12931293 dialog . addEventListener ( "mouseleave" , function ( ) {
12941294 if ( LiteGraph . dialog_close_on_mouse_leave ) {
12951295 if ( ! dialog . is_modified && LiteGraph . dialog_close_on_mouse_leave ) {
@@ -6170,7 +6170,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
61706170
61716171 if ( this . ds . scale > 1 ) dialog . style . transform = `scale(${ this . ds . scale } )`
61726172
6173- let dialogCloseTimer : number
6173+ let dialogCloseTimer : ReturnType < typeof setTimeout >
61746174 let prevent_timeout = 0
61756175 LiteGraph . pointerListenerAdd ( dialog , "leave" , function ( ) {
61766176 if ( prevent_timeout ) return
@@ -6356,7 +6356,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
63566356 if ( options . hide_on_mouse_leave ) {
63576357 // FIXME: Remove "any" kludge
63586358 let prevent_timeout : any = false
6359- let timeout_close : number | null = null
6359+ let timeout_close : ReturnType < typeof setTimeout > | null = null
63606360 LiteGraph . pointerListenerAdd ( dialog , "enter" , function ( ) {
63616361 if ( timeout_close ) {
63626362 clearTimeout ( timeout_close )
@@ -6401,7 +6401,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
64016401 that . search_box = dialog
64026402
64036403 let first : string | null = null
6404- let timeout : number | null = null
6404+ let timeout : ReturnType < typeof setTimeout > | null = null
64056405 let selected : ChildNode | null = null
64066406
64076407 const maybeInput = dialog . querySelector ( "input" )
@@ -6996,7 +6996,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
69966996 }
69976997 }
69986998
6999- let dialogCloseTimer : number
6999+ let dialogCloseTimer : ReturnType < typeof setTimeout >
70007000 let prevent_timeout = 0
70017001 dialog . addEventListener ( "mouseleave" , function ( ) {
70027002 if ( prevent_timeout ) return
0 commit comments