@types/treeify
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/treeify

Summary

This package contains type definitions for treeify (https://github.com/notatestuser/treeify).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/treeify.

index.d.ts

export interface TreeObject {
    [k: string]: TreeValue;
}
export type TreeValue = string | TreeObject;

export function asTree(
    treeObj: TreeObject,
    showValues: boolean,
    hideFunctions: boolean,
): string;

export function asLines(
    treeObj: TreeObject,
    showValues: boolean,
    lineCallback: (line: string) => void,
): string;
export function asLines(
    treeObj: TreeObject,
    showValues: boolean,
    hideFunctions: boolean,
    lineCallback: (line: string) => void,
): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Mike North.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    139,676
  • 1.0.2
    3,021
  • 1.0.1
    28,407
  • 1.0.0
    189,159

Package Sidebar

Install

npm i @types/treeify

Weekly Downloads

360,263

Version

1.0.3

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • types