From bb6bad072b49f89661c3a3d75dfa49467eda4f8b Mon Sep 17 00:00:00 2001 From: Jan Lohage Date: Thu, 21 Jun 2018 17:33:22 +0200 Subject: [PATCH] Update index.d.ts --- types/feathersjs__authentication-jwt/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/feathersjs__authentication-jwt/index.d.ts b/types/feathersjs__authentication-jwt/index.d.ts index ab6a7f6dbe..9db1d5c988 100644 --- a/types/feathersjs__authentication-jwt/index.d.ts +++ b/types/feathersjs__authentication-jwt/index.d.ts @@ -8,7 +8,7 @@ import { Application } from '@feathersjs/feathers'; import { Request } from 'express'; import * as self from '@feathersjs/authentication-jwt'; -declare const feathersAuthenticationJwt: ((options?: FeathersAuthenticationJWTOptions) => () => void) & typeof self; +declare const feathersAuthenticationJwt: ((options?: Partial) => () => void) & typeof self; export default feathersAuthenticationJwt; export interface FeathersAuthenticationJWTOptions { @@ -43,10 +43,10 @@ export interface FeathersAuthenticationJWTOptions { /** * A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. */ - Verifier: JWTVerifier; + Verifier: Verifier; } -export class JWTVerifier { +export class Verifier { constructor(app: Application, options: any); // the class constructor verify(req: Request, payload: any, done: (error: any, user?: any, info?: any) => void): void;