Fix typings path
This commit is contained in:
parent
47d674a47c
commit
b36c6f31a5
|
@ -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;
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue