Skip to content

Commit d7f9678

Browse files
thwonghinsdd
andauthored
Fix typing of path property (#172)
Co-authored-by: Scott Donnelly <scott@donnel.ly>
1 parent 7454df4 commit d7f9678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ declare namespace jwt {
2727
export type SecretLoader = (header: any, payload: any) => Promise<string | string[] | Buffer | Buffer[]>;
2828

2929
export interface Middleware extends Koa.Middleware {
30-
unless(params?: {custom?: (ctx: Koa.Context) => boolean, path?: string | string[] | RegExp | RegExp[], ext?: string | string[], method?: string | string[]}): Koa.Middleware;
30+
unless(params?: {custom?: (ctx: Koa.Context) => boolean, path?: string | RegExp | (string | RegExp)[], ext?: string | string[], method?: string | string[]}): Koa.Middleware;
3131
}
3232
}

0 commit comments

Comments
 (0)