File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 6
6
"module" : " CommonJS" ,
7
7
"outDir" : " ./dist" ,
8
8
"rootDir" : " ./src" ,
9
+ "declaration" : true ,
9
10
"esModuleInterop" : true
10
11
},
11
12
"include" : [" src/index.ts" , " types/*.d.ts" ],
Original file line number Diff line number Diff line change 1
1
declare module "coininfo" {
2
- interface Network {
2
+ export interface Network {
3
3
messagePrefix : string ;
4
4
bech32 : string ;
5
5
bip32 : Bip32 ;
@@ -8,23 +8,23 @@ declare module "coininfo" {
8
8
wif : number ;
9
9
}
10
10
11
- interface Bip32 {
11
+ export interface Bip32 {
12
12
public : number ;
13
13
private : number ;
14
14
}
15
15
16
- interface CoinInfo {
16
+ export interface CoinInfo {
17
17
main : {
18
18
toBitcoinJS : ( ) => Network ;
19
19
} ;
20
20
}
21
21
22
- interface Coins {
22
+ export interface Coins {
23
23
bitcoin : CoinInfo ;
24
24
dash : CoinInfo ;
25
25
dogecoin : CoinInfo ;
26
26
}
27
27
28
28
const coininfo : Coins
29
- export = coininfo ;
29
+ export default coininfo ;
30
30
}
You can’t perform that action at this time.
0 commit comments