From 831a4b4e416293818b083842d64293743fcac7d6 Mon Sep 17 00:00:00 2001 From: Jannik Keye Date: Sat, 22 Sep 2018 13:22:10 +0200 Subject: [PATCH] fix decode signature --- types/fastify-jwt/index.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/types/fastify-jwt/index.d.ts b/types/fastify-jwt/index.d.ts index a5c435cda0..76b16bc485 100644 --- a/types/fastify-jwt/index.d.ts +++ b/types/fastify-jwt/index.d.ts @@ -22,14 +22,10 @@ declare module "fastify" { (token: string, options?: VerifyOptions): object | string; } - interface DecodeFunction { - (token: string, options?: DecodeOptions): null | { [key: string]: any } | string; - } - interface jwt { sign: SignFunction; verify: VerifyFunction; - decode: DecodeFunction; + decode(token: string, options?: DecodeOptions): null | { [key: string]: any } | string; secret: Secret; }