From 85d206e584cfa5a633ecc2417ebbce8a7f291192 Mon Sep 17 00:00:00 2001 From: Jihoo Kim Date: Sun, 1 Sep 2024 20:18:46 +0900 Subject: [PATCH] Fix swapped descriptions for onBlock and onUnload --- types/NewWindow.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/NewWindow.d.ts b/types/NewWindow.d.ts index 7a32ce8..957421d 100644 --- a/types/NewWindow.d.ts +++ b/types/NewWindow.d.ts @@ -47,13 +47,14 @@ declare module 'react-new-window' { */ features?: IWindowFeatures + /** - * A function to be triggered before the new window unload. + * A function to be triggered when the new window could not be opened. */ onBlock?: EventHandler | null /** - * A function to be triggered when the new window could not be opened. + * A function to be triggered before the new window unload. */ onUnload?: EventHandler | null