]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: comment
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 21 Feb 2024 11:13:42 +0000 (12:13 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 21 Feb 2024 11:13:42 +0000 (12:13 +0100)
packages/router/src/errors.ts

index 379bf6392ca04839a2384f677c508d86df5fdcc5..021e7a8bb562c60e448ffcaeedbd79018d7c8eef 100644 (file)
@@ -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>