Skip to content

Commit

Permalink
Fix failing 'Allow extra nested properties' test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmccabe committed Dec 28, 2023
1 parent 700399d commit 7cd9786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ParameterValue = RawParameterValue | DefaultRoutable;
* A parseable route parameter, either plain or nested inside an object under its binding key.
*/
type Routable<I extends ParameterInfo> = I extends { binding: string }
? { [K in I['binding']]: RawParameterValue } | RawParameterValue
? ({ [K in I['binding']]: RawParameterValue } & Record<string, unknown>) | RawParameterValue
: ParameterValue;

// Uncomment to test:
Expand Down

0 comments on commit 7cd9786

Please sign in to comment.