[trezor-connect] update types (#40389)

This commit is contained in:
Federico Bond
2019-11-15 11:13:10 -08:00
committed by Pranav Senthilnathan
parent e4b9d77045
commit ab01840dfc
+10 -1
View File
@@ -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 <https://github.com/federicobond>
// 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