From ab01840dfccb5f2e2e6ab0482e68628c5f339f1f Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Fri, 15 Nov 2019 16:13:10 -0300 Subject: [PATCH] [trezor-connect] update types (#40389) --- types/trezor-connect/index.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/types/trezor-connect/index.d.ts b/types/trezor-connect/index.d.ts index 167db7d4c5..9ce25fa87b 100644 --- a/types/trezor-connect/index.d.ts +++ b/types/trezor-connect/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for trezor-connect 6.0 +// Type definitions for trezor-connect 7.0 // Project: https://github.com/trezor/connect // Definitions by: Federico Bond // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -251,6 +251,11 @@ export interface SignedTransaction { txId?: string; } +export interface ManifestParams { + email: string; + appUrl: string; +} + export interface Settings { debug: boolean | { [k: string]: boolean }; configSrc?: string; // constant @@ -269,6 +274,8 @@ export interface Settings { pendingTransportEvent?: boolean; supportedBrowser?: boolean; extension?: string; + lazyLoad?: string; + manifest?: ManifestParams; } export interface Input { @@ -346,6 +353,8 @@ export namespace TrezorConnect { */ function init(settings: Settings): void; + function manifest(params: ManifestParams): void; + /** * Retrieves BIP32 extended public derived by given BIP32 path. * User is presented with a description of the requested key and asked to