From 27876854565a650f77c402e4cb6e99ba09659386 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 29 Aug 2025 15:06:42 +0200 Subject: [PATCH] chore: doc comment --- .../route-resolver/matchers/param-parsers/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.3