From c75adec00c4f3c0a05659b2eea28a62ed641fcc9 Mon Sep 17 00:00:00 2001 From: Simon Fridlund Date: Wed, 3 May 2023 11:10:37 +0200 Subject: [PATCH] fix: Add useOriginalUrl to UnlessOptions type --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index e6c77d5..02f11c7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -27,7 +27,7 @@ declare namespace jwt { export type Secret = string | string[] | Buffer | Buffer[]; export type SecretLoader = (header: any, payload: any) => Promise; - export type UnlessOptions = (params?: {custom?: (ctx: Koa.Context) => boolean, path?: string | RegExp | (string | RegExp)[], ext?: string | string[], method?: string | string[]}) => Koa.Middleware + export type UnlessOptions = (params?: {custom?: (ctx: Koa.Context) => boolean, path?: string | RegExp | (string | RegExp)[], ext?: string | string[], method?: string | string[], useOriginalUrl?: boolean}) => Koa.Middleware export interface Middleware extends Koa.Middleware { unless: UnlessOptions; }