Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 21, 2024
1 parent c9f3e0c commit 17d47ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/router/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ const ErrorTypeMessages = {
// Possible internal errors
type RouterError = NavigationFailure | NavigationRedirectError | MatcherError

/**
* Creates a typed NavigationFailure object.
* @internal
* @param type - NavigationFailureType
* @param params - { from, to }
*/
export function createRouterError<E extends RouterError>(
type: E['type'],
params: Omit<E, 'type' | keyof Error>
Expand Down

0 comments on commit 17d47ed

Please sign in to comment.