diff --git a/types/openpgp/index.d.ts b/types/openpgp/index.d.ts index f661affb47..c58c358df3 100644 --- a/types/openpgp/index.d.ts +++ b/types/openpgp/index.d.ts @@ -8,6 +8,7 @@ // SardineFish // Ryo Ota // Sergey Bakulin +// Wiktor Kwapisiewicz // 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; err: Array | null }>; + lookup(options: { email: string; rawBytes?: boolean; }): Promise; err: Array | null }>; } } diff --git a/types/openpgp/openpgp-tests.ts b/types/openpgp/openpgp-tests.ts index 89940ed966..23f80f2897 100644 --- a/types/openpgp/openpgp-tests.ts +++ b/types/openpgp/openpgp-tests.ts @@ -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' }); diff --git a/types/openpgp/ts3.2/index.d.ts b/types/openpgp/ts3.2/index.d.ts index 12f40c6e9e..cc0486d518 100644 --- a/types/openpgp/ts3.2/index.d.ts +++ b/types/openpgp/ts3.2/index.d.ts @@ -8,6 +8,7 @@ // SardineFish // Ryo Ota // Sergey Bakulin +// Wiktor Kwapisiewicz // 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; err: Array | null }>; + lookup(options: { email: string; rawBytes?: boolean; }): Promise; err: Array | null }>; } } diff --git a/types/openpgp/ts3.2/openpgp-tests.ts b/types/openpgp/ts3.2/openpgp-tests.ts index ed1e886150..787c002306 100644 --- a/types/openpgp/ts3.2/openpgp-tests.ts +++ b/types/openpgp/ts3.2/openpgp-tests.ts @@ -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' });