🤖 Merge PR #44565 openpgp: Fix openpgp.wkd.WKD.lookup method parameter by @wiktor-k

This commit is contained in:
Wiktor Kwapisiewicz 2020-05-08 13:11:54 +02:00 committed by GitHub
parent 1840e97033
commit e9aef5862b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -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 }>;
}
}

View File

@ -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' });

View File

@ -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 }>;
}
}

View File

@ -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' });