mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
[trezor-connect] update types (#40389)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
e4b9d77045
commit
ab01840dfc
Vendored
+10
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user