fix ordering

This commit is contained in:
Liam DeBeasi
2019-07-31 13:46:15 -04:00
parent cf585f1d3f
commit 3a9b7bed19
3 changed files with 3 additions and 3 deletions

View File

@@ -663,7 +663,7 @@ ion-menu-controller,method,isAnimating,isAnimating() => Promise<boolean>
ion-menu-controller,method,isEnabled,isEnabled(menu?: string | null | undefined) => Promise<boolean>
ion-menu-controller,method,isOpen,isOpen(menu?: string | null | undefined) => Promise<boolean>
ion-menu-controller,method,open,open(menu?: string | null | undefined) => Promise<boolean>
ion-menu-controller,method,registerAnimation,registerAnimation(name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) => Promise<void>
ion-menu-controller,method,registerAnimation,registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise<void>
ion-menu-controller,method,swipeGesture,swipeGesture(enable: boolean, menu?: string | null | undefined) => Promise<HTMLIonMenuElement | undefined>
ion-menu-controller,method,toggle,toggle(menu?: string | null | undefined) => Promise<boolean>

View File

@@ -226,7 +226,7 @@ export class MenuController implements MenuControllerI {
* @param animation The animation function to register.
*/
@Method()
async registerAnimation(name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) {
async registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) {
this.menuAnimations.set(name, animation);
}

View File

@@ -116,7 +116,7 @@ Type: `Promise<boolean>`
### `registerAnimation(name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) => Promise<void>`
### `registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise<void>`
Registers a new animation that can be used with any `ion-menu` by
passing the name of the animation in its `type` property.