Skip to content

Commit

Permalink
Fix types regression
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 20, 2024
1 parent 18a56f7 commit 9fe3fb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ type PathToParams<PathArray, Params> = PathArray extends [
: PathToParams<Rest, Params>
: Params

type ParseUrl<Path extends string> = PathToParams<Split<Path, '/'>, unknown>
/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */
type ParseUrl<Path extends string> = PathToParams<Split<Path, '/'>, {}>

export type RouterConfig = Record<string, Pattern<any> | RegExp | string>

Expand Down

0 comments on commit 9fe3fb5

Please sign in to comment.