mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Add start function to nodegit Tree.walk return type (#35698)
* Add start function to Tree.walk return type * Add test
This commit is contained in:
committed by
Sheetal Nandi
parent
46b4037bf0
commit
efc2561ca7
@@ -13,6 +13,8 @@ const id = new Git.Oid();
|
||||
const ref = new Git.Reference();
|
||||
const tree = new Git.Tree();
|
||||
|
||||
tree.walk().start();
|
||||
|
||||
// AnnotatedCommit Tests
|
||||
|
||||
Git.AnnotatedCommit.fromFetchhead(repo, "branch_name", "remote_url", id).then((annotatedCommit) => {
|
||||
|
||||
Vendored
+6
-1
@@ -58,7 +58,12 @@ export class Tree {
|
||||
/**
|
||||
* Recursively walk the tree in breadth-first order. Fires an event for each entry.
|
||||
*/
|
||||
walk(blobsOnly?: boolean): NodeJS.EventEmitter;
|
||||
walk(blobsOnly?: boolean): NodeJS.EventEmitter & {
|
||||
/**
|
||||
* Start walking the tree and emitting events. This should be called after event listeners have been attached.
|
||||
*/
|
||||
start: () => void;
|
||||
};
|
||||
/**
|
||||
* Return the path of this tree, like /lib/foo/bar
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user