@real-router/types 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/package.json +1 -1
- package/src/router.ts +2 -0
package/dist/cjs/index.d.ts
CHANGED
|
@@ -494,6 +494,7 @@ interface Router<D extends DefaultDependencies = DefaultDependencies> {
|
|
|
494
494
|
subscribe: (listener: SubscribeFn) => Unsubscribe;
|
|
495
495
|
navigate: (routeName: string, routeParams?: Params, options?: NavigationOptions) => Promise<State>;
|
|
496
496
|
navigateToDefault: (options?: NavigationOptions) => Promise<State>;
|
|
497
|
+
navigateToNotFound: (path?: string) => State;
|
|
497
498
|
}
|
|
498
499
|
/**
|
|
499
500
|
* Factory function for creating plugins.
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -494,6 +494,7 @@ interface Router<D extends DefaultDependencies = DefaultDependencies> {
|
|
|
494
494
|
subscribe: (listener: SubscribeFn) => Unsubscribe;
|
|
495
495
|
navigate: (routeName: string, routeParams?: Params, options?: NavigationOptions) => Promise<State>;
|
|
496
496
|
navigateToDefault: (options?: NavigationOptions) => Promise<State>;
|
|
497
|
+
navigateToNotFound: (path?: string) => State;
|
|
497
498
|
}
|
|
498
499
|
/**
|
|
499
500
|
* Factory function for creating plugins.
|
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -290,6 +290,8 @@ export interface Router<D extends DefaultDependencies = DefaultDependencies> {
|
|
|
290
290
|
) => Promise<State>;
|
|
291
291
|
|
|
292
292
|
navigateToDefault: (options?: NavigationOptions) => Promise<State>;
|
|
293
|
+
|
|
294
|
+
navigateToNotFound: (path?: string) => State;
|
|
293
295
|
}
|
|
294
296
|
|
|
295
297
|
// =============================================================================
|