t-comm
Version:
专业、稳定、纯粹的工具库
27 lines (26 loc) • 600 B
TypeScript
/**
* 拦截路由
*
* @example
* ```ts
* uniHookRouter({
* navigateToHooks: [
* () => console.log('1')
* ],
* navigateBackHooks: [
* () => console.log('2')
* ],
* redirectToHooks: [
* () => console.log('3')
* ],
* debug: true,
* })
* ```
*/
export declare function uniHookRouter({ navigateToHooks, navigateBackHooks, redirectToHooks, tryUniInterCeptor, debug, }: {
navigateToHooks?: Array<Function>;
navigateBackHooks?: Array<Function>;
redirectToHooks?: Array<Function>;
tryUniInterCeptor?: boolean;
debug?: boolean;
}): void;