mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* [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>
15 lines
503 B
TypeScript
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;
|