Skip to content

Commit 17d47ed

Browse files
committed
chore: comment
1 parent c9f3e0c commit 17d47ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/router/src/errors.ts

+6
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ const ErrorTypeMessages = {
115115
// Possible internal errors
116116
type RouterError = NavigationFailure | NavigationRedirectError | MatcherError
117117

118+
/**
119+
* Creates a typed NavigationFailure object.
120+
* @internal
121+
* @param type - NavigationFailureType
122+
* @param params - { from, to }
123+
*/
118124
export function createRouterError<E extends RouterError>(
119125
type: E['type'],
120126
params: Omit<E, 'type' | keyof Error>

0 commit comments

Comments
 (0)