mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
fix decode signature
This commit is contained in:
Vendored
+1
-5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user