File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11# @triyanox/next-middleware
22
3+ ## 0.1.3
4+
5+ ### Patch Changes
6+
7+ - fix the ` Path<T> ` for ` RuleFunction `
8+
39## 0.1.2
410
511### Patch Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @triyanox/next-middleware" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "description" : " The cleanest way to protect your Next.js routes with a middleware" ,
55 "license" : " MIT" ,
66 "publishConfig" : {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ type ParamsObject<R extends string> =
3333type RuleFunction <
3434 T ,
3535 RS extends Routes ,
36- R extends keyof RS & string = keyof RS & string ,
36+ R extends Path < keyof RS & string > = keyof RS & string ,
3737> = ( options : {
3838 data : T ;
3939 path : R ;
You can’t perform that action at this time.
0 commit comments