mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed optional arg issue
This commit is contained in:
Vendored
+2
-1
@@ -67,7 +67,8 @@ declare module "jsonwebtoken" {
|
||||
* @param {SignOptions} [options] - Options for the signature
|
||||
* @param {Function} callback - Callback to get the encoded token on
|
||||
*/
|
||||
export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options?: SignOptions, callback: SignCallback): void;
|
||||
export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void;
|
||||
export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void;
|
||||
|
||||
/**
|
||||
* Synchronously verify given token using a secret or a public key to get a decoded token
|
||||
|
||||
Reference in New Issue
Block a user