Browse Source

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
pull/4678/head
Jeff Wilkerson 4 years ago
committed by GitHub
parent
commit
c9465882eb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      index.d.ts

4
index.d.ts

@ -5445,7 +5445,7 @@ declare namespace grapesjs {
* const somePage = pageManager.get('page-id'); * const somePage = pageManager.get('page-id');
* pageManager.remove(somePage); * pageManager.remove(somePage);
*/ */
remove(): any; remove(page: string | Page): any;
/** /**
* Get page by id * Get page by id
* @example * @example
@ -5481,7 +5481,7 @@ declare namespace grapesjs {
* const somePage = pageManager.get('page-id'); * const somePage = pageManager.get('page-id');
* pageManager.select(somePage); * pageManager.select(somePage);
*/ */
select(): this; select(page: string | Page): this;
/** /**
* Get the selected page * Get the selected page
* @example * @example

Loading…
Cancel
Save