Skip to content

Commit

Permalink
Fix typing of path property (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Donnelly <[email protected]>
  • Loading branch information
thwonghin and sdd authored May 17, 2020
1 parent 7454df4 commit d7f9678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ declare namespace jwt {
export type SecretLoader = (header: any, payload: any) => Promise<string | string[] | Buffer | Buffer[]>;

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

0 comments on commit d7f9678

Please sign in to comment.