]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: doc comment
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 29 Aug 2025 13:06:42 +0000 (15:06 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 29 Aug 2025 13:06:42 +0000 (15:06 +0200)
packages/router/src/experimental/route-resolver/matchers/param-parsers/types.ts

index b7337bdc73203727f6a6d8554553b047bb2191bc..0c6b1d9dddfd8efb0e4c54c1ee7b2cc240d08337 100644 (file)
@@ -9,8 +9,9 @@ import type { MatcherQueryParamsValue } from '../matcher-pattern'
 export interface ParamParser<
   // type of the param after parsing as exposed in `route.params`
   TParam = MatcherQueryParamsValue,
-  // this is the most permissive type that can be passed to get and set, it's from the query
-  // path params stricter as they do not allow `null` within an array or `undefined`
+  // this is the most permissive type that can be passed to get and returned by
+  // set. By default it's the type of query path params (stricter as they do
+  // not allow `null` within an array or `undefined`)
   TUrlParam = MatcherQueryParamsValue,
   // the type that can be passed as a location when navigating: `router.push({ params: { }})`
   // it's sometimes for more permissive than TParam, for example allowing nullish values