Fix typings path

This commit is contained in:
Miguel Mota 2020-02-13 13:28:05 -08:00
parent 47d674a47c
commit b36c6f31a5
2 changed files with 3 additions and 29 deletions

26
index.d.ts vendored
View File

@ -1,26 +0,0 @@
/// <reference types="node" />
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;

View File

@ -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",