diff --git a/CHANGELOG.md b/CHANGELOG.md index d8fa7d5..4911bab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @triyanox/next-middleware +## 0.1.3 + +### Patch Changes + +- fix the `Path` for `RuleFunction` + ## 0.1.2 ### Patch Changes diff --git a/package.json b/package.json index 889a974..079a8e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@triyanox/next-middleware", - "version": "0.1.2", + "version": "0.1.3", "description": "The cleanest way to protect your Next.js routes with a middleware", "license": "MIT", "publishConfig": { 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;