mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
feat(router): add navigation hooks (#21709)
This commit is contained in:
5
core/src/components/route/route-interface.ts
Normal file
5
core/src/components/route/route-interface.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export type NavigationHookCallback = () => NavigationHookResult | Promise<NavigationHookResult>;
|
||||
export type NavigationHookResult = boolean | NavigationHookOptions;
|
||||
export interface NavigationHookOptions {
|
||||
redirect: string;
|
||||
}
|
||||
Reference in New Issue
Block a user