Skip to content

Commit f2356f7

Browse files
committed
Simplify inline type declaration
1 parent eb7a333 commit f2356f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/route-pattern/src/lib/parse.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,7 @@ function parsePart(source: string, start: number, length: number, partName: stri
150150
// Search parsing helpers ---------------------------------------------------------------------------
151151

152152
export function parseSearchConstraints(search: string): SearchConstraints {
153-
let constraints = new Map<
154-
string,
155-
{ requiredValues?: Set<string>; requireAssignment: boolean; allowBare: boolean }
156-
>()
153+
let constraints: SearchConstraints = new Map()
157154

158155
for (let part of search.split('&')) {
159156
if (part === '') continue

0 commit comments

Comments
 (0)