Skip to content

Commit

Permalink
fix: fix the Path<T> for RuleFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
triyanox committed Jun 1, 2024
1 parent 28fbc10 commit 1f17242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type ParamsObject<R extends string> =
type RuleFunction<
T,
RS extends Routes,
R extends keyof RS & string = keyof RS & string,
R extends Path<keyof RS & string> = keyof RS & string,
> = (options: {
data: T;
path: R;
Expand Down

0 comments on commit 1f17242

Please sign in to comment.