From 1f172422c0e9a84629e7301c875efa10c5df5552 Mon Sep 17 00:00:00 2001 From: Mohamed Achaq Date: Sat, 1 Jun 2024 17:01:13 +0100 Subject: [PATCH] fix: fix the `Path` for `RuleFunction` --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index b9e4549..f5a1b27 100644 --- a/src/types.ts +++ b/src/types.ts @@ -33,7 +33,7 @@ type ParamsObject = type RuleFunction< T, RS extends Routes, - R extends keyof RS & string = keyof RS & string, + R extends Path = keyof RS & string, > = (options: { data: T; path: R;