We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f3e0c commit 17d47edCopy full SHA for 17d47ed
packages/router/src/errors.ts
@@ -115,6 +115,12 @@ const ErrorTypeMessages = {
115
// Possible internal errors
116
type RouterError = NavigationFailure | NavigationRedirectError | MatcherError
117
118
+/**
119
+ * Creates a typed NavigationFailure object.
120
+ * @internal
121
+ * @param type - NavigationFailureType
122
+ * @param params - { from, to }
123
+ */
124
export function createRouterError<E extends RouterError>(
125
type: E['type'],
126
params: Omit<E, 'type' | keyof Error>
0 commit comments