Skip to content

Commit 7ff9507

Browse files
committed
refactor: remove both format from query params
1 parent 0dbfab0 commit 7ff9507

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/experiments-playground/src/router/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const r_home = normalizeRouteRecord({
6363
new MatcherPatternQueryParam('pageArray', 'p', 'array', PARAM_PARSER_INT, [
6464
1,
6565
]),
66-
new MatcherPatternQueryParam('pageBoth', 'p', 'both', PARAM_PARSER_INT, 1),
6766
new MatcherPatternQueryParam('page', 'p', 'value', PARAM_PARSER_INT, 1),
6867
QUERY_PATTERN_MATCHER,
6968
],

packages/router/src/experimental/route-resolver/matchers/matcher-pattern-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class MatcherPatternQueryParam<T, ParamName extends string>
2424
constructor(
2525
private paramName: ParamName,
2626
private queryKey: string,
27-
private format: 'value' | 'array' | 'both',
27+
private format: 'value' | 'array',
2828
private parser: ParamParser<T> = {},
2929
private defaultValue?: (() => T) | T
3030
) {}

0 commit comments

Comments
 (0)