Merge pull request #25736 from iamakulov/patch-1

[read-package-tree] Add the missing `name` field
This commit is contained in:
Ron Buckton
2018-05-14 16:46:53 -07:00
committed by GitHub
+2 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for read-package-tree 5.1
// Type definitions for read-package-tree 5.2
// Project: https://github.com/npm/read-package-tree
// Definitions by: Melvin Groenhoff <https://github.com/mgroenhoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -9,6 +9,7 @@ declare function rpt(root: string, filterWith: (node: rpt.Node, kidName: string)
declare namespace rpt {
class Node {
id: number;
name: string;
package: any;
children: Node[];
parent: Node | null;