From c9465882ebb3ec91f33261d32019f2fdc6193d9c Mon Sep 17 00:00:00 2001 From: Jeff Wilkerson Date: Sat, 1 Oct 2022 05:41:26 -0700 Subject: [PATCH] FIX: page.select/remove function signature in Type Definitions (#4628) * Update TS: ButtonOptions * Update TS: Page.select function params * Update TS: Page.remove function params --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 14fc8bc37..cf64ecfc4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -5445,7 +5445,7 @@ declare namespace grapesjs { * const somePage = pageManager.get('page-id'); * pageManager.remove(somePage); */ - remove(): any; + remove(page: string | Page): any; /** * Get page by id * @example @@ -5481,7 +5481,7 @@ declare namespace grapesjs { * const somePage = pageManager.get('page-id'); * pageManager.select(somePage); */ - select(): this; + select(page: string | Page): this; /** * Get the selected page * @example