diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index dd0c42b..0000000 --- a/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/// -declare const reverse: any; -declare const CryptoJS: any; -declare const treeify: any; - -declare class merkletreejs { - constructor(leaves: any, hashAlgorithm: any, options?: {}); - createHashes(nodes: any): void; - getLeaves(): any; - getRoot(): any; - getProof(leaf: any, index?: any): any[]; - verify(proof: any, targetNode: any, root: any): boolean; - getLayersAsObject(): any; - print(): void; - toTreeString(): any; - toString(): any; - static bufferify(x: any): any; - static print(tree: any): void; - hashAlgo: any; - leaves: any; - layers: any; - isBitcoinTree: boolean; -} -declare function bufferify(x: any): any; -declare function bufferifyFn(f: any): (x: any) => Buffer; -declare function isHexStr(v: any): boolean; diff --git a/package.json b/package.json index 7dafe86..58ce62d 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "merkletreejs", - "version": "0.1.10", + "version": "0.1.11", "description": "Construct Merkle Trees and verify proofs", "main": "dist/index.js", - "types": "index.d.ts", - "files": ["dist", "index.d.ts"], + "types": "dist/index.d.ts", + "files": ["dist"], "scripts": { "test": "tape test/*.js", "build": "rm -rf dist/ && tsc",