mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #44565 openpgp: Fix openpgp.wkd.WKD.lookup method parameter by @wiktor-k
This commit is contained in:
parent
1840e97033
commit
e9aef5862b
3
types/openpgp/index.d.ts
vendored
3
types/openpgp/index.d.ts
vendored
@ -8,6 +8,7 @@
|
||||
// SardineFish <https://github.com/SardineFish>
|
||||
// Ryo Ota <https://github.com/nwtgck>
|
||||
// Sergey Bakulin <https://github.com/vansergen>
|
||||
// Wiktor Kwapisiewicz <https://metacode.biz/@wiktor>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
import BN = require('bn.js');
|
||||
@ -4833,7 +4834,7 @@ export namespace wkd {
|
||||
* @param options.rawBytes Returns Uint8Array instead of parsed key.
|
||||
* @returns The public key.
|
||||
*/
|
||||
lookup(): Promise<Uint8Array | { keys: Array<key.Key>; err: Array<Error> | null }>;
|
||||
lookup(options: { email: string; rawBytes?: boolean; }): Promise<Uint8Array | { keys: Array<key.Key>; err: Array<Error> | null }>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -273,3 +273,6 @@ openpgp.util.print_debug_hexstr_dump('');
|
||||
openpgp.util.shiftRight(new Uint8Array([1, 0]), 1);
|
||||
openpgp.util.str_to_Uint8Array('');
|
||||
openpgp.util.Uint8Array_to_str(openpgp.util.str_to_Uint8Array(''));
|
||||
|
||||
new openpgp.wkd.WKD().lookup({ email: 'test-wkd@metacode.biz', rawBytes: true });
|
||||
new openpgp.wkd.WKD().lookup({ email: 'test-wkd@metacode.biz' });
|
||||
|
||||
3
types/openpgp/ts3.2/index.d.ts
vendored
3
types/openpgp/ts3.2/index.d.ts
vendored
@ -8,6 +8,7 @@
|
||||
// SardineFish <https://github.com/SardineFish>
|
||||
// Ryo Ota <https://github.com/nwtgck>
|
||||
// Sergey Bakulin <https://github.com/vansergen>
|
||||
// Wiktor Kwapisiewicz <https://metacode.biz/@wiktor>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import BN = require('bn.js');
|
||||
@ -4898,7 +4899,7 @@ export namespace wkd {
|
||||
* @param options.rawBytes Returns Uint8Array instead of parsed key.
|
||||
* @returns The public key.
|
||||
*/
|
||||
lookup(): Promise<Uint8Array | { keys: Array<key.Key>; err: Array<Error> | null }>;
|
||||
lookup(options: { email: string; rawBytes?: boolean; }): Promise<Uint8Array | { keys: Array<key.Key>; err: Array<Error> | null }>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -274,3 +274,6 @@ openpgp.util.print_debug_hexstr_dump('');
|
||||
openpgp.util.shiftRight(new Uint8Array([1, 0]), 1);
|
||||
openpgp.util.str_to_Uint8Array('');
|
||||
openpgp.util.Uint8Array_to_str(openpgp.util.str_to_Uint8Array(''));
|
||||
|
||||
new openpgp.wkd.WKD().lookup({ email: 'test-wkd@metacode.biz', rawBytes: true });
|
||||
new openpgp.wkd.WKD().lookup({ email: 'test-wkd@metacode.biz' });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user