Files
Rajas Paranjpe 71a3388f05 🤖 Merge PR #59350 [console-log-tree] Added definitions by @ChocolateLoverRaj
* [console-log-tree] Added definitions

* Remove extra space in `types/console-log-tree/index.d.ts`

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>

* Add optional params to `parse`

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
2022-03-28 17:04:01 -07:00

15 lines
503 B
TypeScript

// Type definitions for console-log-tree 1.2
// Project: https://github.com/QiShaoXuan/log-tree#readme
// Definitions by: Rajas Paranjpe <https://github.com/ChocolateLoverRaj>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace library;
export interface Tree {
name: string;
children?: readonly Tree[];
}
export function parse(tree: Tree | readonly Tree[], parentPre?: string, treeStr?: string): string;
export function log(tree: Tree | readonly Tree[]): void;