Skip to content

Commit

Permalink
MOBILE-3947 types: Fix NavController type override
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou committed Nov 28, 2023
1 parent ed75eb2 commit dba9d4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/angular.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ import { NavigationOptions } from '@ionic/angular/common/providers/nav-controlle

declare module '@ionic/angular' {

export class NavController {
export interface NavController {

// eslint-disable-next-line @typescript-eslint/no-explicit-any
navigateForward(url: string | UrlTree | any[], options?: NavigationOptions): Promise<boolean | null>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
navigateRoot(url: string | UrlTree | any[], options?: NavigationOptions): Promise<boolean | null>;

}

Expand Down

0 comments on commit dba9d4b

Please sign in to comment.