Skip to content

Commit 9ff681a

Browse files
committed
fix: express-jwt types
This is the correct type given that the returned callback can handle both type of arguments.
1 parent 4fe372b commit 9ff681a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare namespace JwksRsa {
7373
/** Types from express-jwt@>=7 */
7474
type GetVerificationKey = (req: Express.Request, token: Jwt | undefined) => Secret | undefined | Promise<Secret | undefined>;
7575

76-
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong|GetVerificationKey;
76+
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong & GetVerificationKey;
7777

7878
function passportJwtSecret(options: ExpressJwtOptions): SecretCallback;
7979

0 commit comments

Comments
 (0)