From: Eduardo San Martin Morote Date: Fri, 29 Aug 2025 13:06:42 +0000 (+0200) Subject: chore: doc comment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27876854565a650f77c402e4cb6e99ba09659386;p=thirdparty%2Fvuejs%2Frouter.git chore: doc comment --- diff --git a/packages/router/src/experimental/route-resolver/matchers/param-parsers/types.ts b/packages/router/src/experimental/route-resolver/matchers/param-parsers/types.ts index b7337bdc..0c6b1d9d 100644 --- a/packages/router/src/experimental/route-resolver/matchers/param-parsers/types.ts +++ b/packages/router/src/experimental/route-resolver/matchers/param-parsers/types.ts @@ -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