@types/read-package-tree
TypeScript definitions for read-package-tree
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/read-package-tree 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/read-package-tree

Summary

This package contains type definitions for read-package-tree (https://github.com/npm/read-package-tree).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/read-package-tree.

index.d.ts

// 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

declare function rpt(root: string, cb: (er: Error | null, data: rpt.Node) => void): void;
declare function rpt(
    root: string,
    filterWith: (node: rpt.Node, kidName: string) => void | undefined | boolean,
    cb: (er: Error | null, data: rpt.Node) => void,
): void;

declare namespace rpt {
    class Node {
        id: number;
        name: string;
        package: any;
        children: Node[];
        parent: Node | null;
        path: string;
        realpath: string;
        error: Error | null;
        isLink: boolean;
        constructor(
            pkg: any,
            logical: string,
            physical: string,
            er: Error | null,
            cache: { [physical: string]: Node },
            fromLink?: boolean,
        );
    }

    class Link extends Node {
        isLink: true;
        target: Node;
        constructor(
            pkg: any,
            logical: string,
            physical: string,
            realpath: string,
            er: Error | null,
            cache: { [physical: string]: Node },
        );
    }
}

export = rpt;

Additional Details

  • Last updated: Wed, 27 Sep 2023 07:12:04 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Melvin Groenhoff.

Current Tags

  • 5.2.1                                ...           latest (3 years ago)
  • 5.2.0                                ...           ts2.0 (8 years ago)
  • 5.2.0                                ...           ts2.1 (8 years ago)
  • 5.2.0                                ...           ts2.2 (8 years ago)
  • 5.2.0                                ...           ts2.3 (8 years ago)
  • 5.2.0                                ...           ts2.4 (8 years ago)
  • 5.2.0                                ...           ts2.5 (8 years ago)
  • 5.2.0                                ...           ts2.6 (8 years ago)
  • 5.2.0                                ...           ts2.7 (8 years ago)
  • 5.2.0                                ...           ts2.8 (8 years ago)
  • 5.2.0                                ...           ts2.9 (8 years ago)
  • 5.2.0                                ...           ts3.0 (8 years ago)
  • 5.2.0                                ...           ts3.1 (8 years ago)
  • 5.2.0                                ...           ts3.2 (8 years ago)
  • 5.2.0                                ...           ts3.3 (8 years ago)
  • 5.2.0                                ...           ts3.4 (8 years ago)
  • 5.2.0                                ...           ts3.5 (8 years ago)
  • 5.2.0                                ...           ts3.6 (8 years ago)
  • 5.2.0                                ...           ts3.7 (8 years ago)
  • 5.2.0                                ...           ts3.8 (8 years ago)
  • 5.2.0                                ...           ts3.9 (8 years ago)
  • 5.2.0                                ...           ts4.0 (8 years ago)
  • 5.2.0                                ...           ts4.1 (8 years ago)
  • 5.2.0                                ...           ts4.2 (8 years ago)
  • 5.2.0                                ...           ts4.3 (8 years ago)
  • 5.2.0                                ...           ts4.4 (8 years ago)
  • 5.2.1                                ...           ts4.5 (3 years ago)
  • 5.2.1                                ...           ts4.6 (3 years ago)
  • 5.2.1                                ...           ts4.7 (3 years ago)
  • 5.2.1                                ...           ts4.8 (3 years ago)
  • 5.2.1                                ...           ts4.9 (3 years ago)
  • 5.2.1                                ...           ts5.0 (3 years ago)
  • 5.2.1                                ...           ts5.1 (3 years ago)
  • 5.2.1                                ...           ts5.2 (3 years ago)
  • 5.2.1                                ...           ts5.3 (3 years ago)

3 Versions

  • 5.2.1                                ...           3 years ago
  • 5.2.0                                ...           8 years ago
  • 5.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |