Merge branch 'development/juan/add-explicit-return-type-getProofs' of github.com:juandavidkincaid/merkletreejs into juandavidkincaid-development/juan/add-explicit-return-type-getProofs

This commit is contained in:
Miguel Mota 2022-11-10 05:29:34 -08:00
commit 8af3c3d15d
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ export class MerkleTree extends Base {
*const proof = tree.getProof(leaves[2], 2)
*```
*/
getProof (leaf: Buffer | string, index?: number):any[] {
getProof (leaf: Buffer | string, index?: number):{position: 'left' | 'right', data: Buffer}[] {
if (typeof leaf === 'undefined') {
throw new Error('leaf is required')
}