diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-11 12:53:58 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-11 12:53:58 +0800 |
commit | b08c616713e153ca767d2f01976da5f1ef903251 (patch) | |
tree | 88876e5530b96fab014887c00cf8da6161ffc726 /packages | |
parent | 3ad693d33409dfd9d61beff3f43c4abaa369c6b1 (diff) | |
download | dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.tar dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.tar.gz dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.tar.bz2 dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.tar.lz dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.tar.xz dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.tar.zst dexon-sol-tools-b08c616713e153ca767d2f01976da5f1ef903251.zip |
Move type declaration for hdkey to typescript-typings
Diffstat (limited to 'packages')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 13 | ||||
-rw-r--r-- | packages/typescript-typings/CHANGELOG.json | 9 | ||||
-rw-r--r-- | packages/typescript-typings/types/hdkey/index.d.ts | 11 |
3 files changed, 20 insertions, 13 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 754d164e8..4b3ecdf3c 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -51,19 +51,6 @@ declare module '@ledgerhq/hw-transport-node-hid' { } } -// hdkey declarations -declare module 'hdkey' { - class HDNode { - public static fromMasterSeed(seed: Buffer): HDNode; - public publicKey: Buffer; - public privateKey: Buffer; - public chainCode: Buffer; - public constructor(); - public derive(path: string): HDNode; - } - export = HDNode; -} - declare module '*.json' { const json: any; /* tslint:disable */ diff --git a/packages/typescript-typings/CHANGELOG.json b/packages/typescript-typings/CHANGELOG.json index 294d9ee9f..467cae29b 100644 --- a/packages/typescript-typings/CHANGELOG.json +++ b/packages/typescript-typings/CHANGELOG.json @@ -1,5 +1,14 @@ [ { + "version": "0.1.1", + "changes": [ + { + "note": "Add types for HDKey", + "pr": 507 + } + ] + }, + { "version": "0.1.0", "changes": [ { diff --git a/packages/typescript-typings/types/hdkey/index.d.ts b/packages/typescript-typings/types/hdkey/index.d.ts new file mode 100644 index 000000000..84b751bd7 --- /dev/null +++ b/packages/typescript-typings/types/hdkey/index.d.ts @@ -0,0 +1,11 @@ +declare module 'hdkey' { + class HDNode { + public static fromMasterSeed(seed: Buffer): HDNode; + public publicKey: Buffer; + public privateKey: Buffer; + public chainCode: Buffer; + public constructor(); + public derive(path: string): HDNode; + } + export = HDNode; +} |