wenay-common2 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,9 +9,9 @@ export type tInputBase = {
|
|
|
9
9
|
type tSignatureData = tInputBase;
|
|
10
10
|
type HmacCreator = (algorithm: string, key: string) => {
|
|
11
11
|
update: (data: string) => {
|
|
12
|
-
digest: (encoding: string) =>
|
|
12
|
+
digest: (encoding: string) => unknown;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export declare function createSignatureFunction(hmacCreator:
|
|
15
|
+
export declare function createSignatureFunction<T extends HmacCreator>(hmacCreator: T): (params: tSignatureData, apiSecret: string) => unknown;
|
|
16
16
|
export type SignatureFunction = ReturnType<typeof createSignatureFunction>;
|
|
17
17
|
export {};
|