Skip to content

Commit c815678

Browse files
committed
onClose _can_ return false to cancel, but it is not required
1 parent e84efaf commit c815678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/ScriptUI.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ declare class Window extends _Control {
346346
* An event-handler callback function, called when the window is about to be closed.
347347
* Called when a request is made to close the window, either by an explicit call to the close() function or by a user action (clicking the OS-specific close icon in the title bar). The function is called before the window actually closes; it can return false to cancel the close operation.
348348
*/
349-
onClose(): boolean
349+
onClose(): void | boolean
350350

351351
/**
352352
* An event-handler callback function, called when the window loses the keyboard focus.

0 commit comments

Comments
 (0)