Move type declaration for hdkey to typescript-typings

This commit is contained in:
Jacob Evans
2018-04-11 14:53:58 +10:00
parent 3ad693d334
commit b08c616713
3 changed files with 20 additions and 13 deletions

View File

@@ -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 */

View File

@@ -1,4 +1,13 @@
[
{
"version": "0.1.1",
"changes": [
{
"note": "Add types for HDKey",
"pr": 507
}
]
},
{
"version": "0.1.0",
"changes": [

View File

@@ -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;
}