File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { createHmac } from "node:crypto";
2
2
import { Algorithm , type SignOptions } from "../types.js" ;
3
3
import { VERSION } from "../version.js" ;
4
4
5
+ export async function sign ( secret : string , payload : string ) : Promise < string > ;
6
+ export async function sign ( options : SignOptions , payload : string ) : Promise < string > ;
5
7
export async function sign (
6
8
options : SignOptions | string ,
7
9
payload : string ,
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ async function importKey(secret: string, algorithm: AlgorithmLike) {
45
45
) ;
46
46
}
47
47
48
+ export async function sign ( secret : string , payload : string ) : Promise < string > ;
49
+ export async function sign ( options : SignOptions , payload : string ) : Promise < string > ;
48
50
export async function sign ( options : SignOptions | string , payload : string ) {
49
51
const { secret, algorithm } =
50
52
typeof options === "object"
You can’t perform that action at this time.
0 commit comments