diff --git a/core/api.txt b/core/api.txt index 14cb78051c..0355023b86 100644 --- a/core/api.txt +++ b/core/api.txt @@ -663,7 +663,7 @@ ion-menu-controller,method,isAnimating,isAnimating() => Promise ion-menu-controller,method,isEnabled,isEnabled(menu?: string | null | undefined) => Promise ion-menu-controller,method,isOpen,isOpen(menu?: string | null | undefined) => Promise ion-menu-controller,method,open,open(menu?: string | null | undefined) => Promise -ion-menu-controller,method,registerAnimation,registerAnimation(name: string, animation: AnimationBuilder) => Promise +ion-menu-controller,method,registerAnimation,registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise ion-menu-controller,method,swipeGesture,swipeGesture(enable: boolean, menu?: string | null | undefined) => Promise ion-menu-controller,method,toggle,toggle(menu?: string | null | undefined) => Promise diff --git a/core/src/components.d.ts b/core/src/components.d.ts index ba2d75280f..6600297cc7 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -1389,7 +1389,7 @@ export namespace Components { /** * Registers a new animation that can be used with any `ion-menu` by passing the name of the animation in its `type` property. */ - 'registerAnimation': (name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) => Promise; + 'registerAnimation': (name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise; /** * Enable or disable the ability to swipe open the menu. */ diff --git a/core/src/components/menu-controller/readme.md b/core/src/components/menu-controller/readme.md index 351268b9bc..f51a9fe48a 100644 --- a/core/src/components/menu-controller/readme.md +++ b/core/src/components/menu-controller/readme.md @@ -116,7 +116,7 @@ Type: `Promise` -### `registerAnimation(name: string, animation: AnimationBuilder) => Promise` +### `registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise` Registers a new animation that can be used with any `ion-menu` by passing the name of the animation in its `type` property.