Skip to content

Commit 7454df4

Browse files
authored
Merge pull request #157 from buuug7/master
updated typescript definitions, fix types/index.ts, make the type hint support more argument for koa-unless, such as `custom, ext, method
2 parents c680e0c + a8ace36 commit 7454df4

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?: { path: string | string[] | RegExp | RegExp[] }): Koa.Middleware;
30+
unless(params?: {custom?: (ctx: Koa.Context) => boolean, path?: string | string[] | RegExp | RegExp[], ext?: string | string[], method?: string | string[]}): Koa.Middleware;
3131
}
3232
}

0 commit comments

Comments
 (0)