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

1.0.3 • Public • Published

Installation

npm install --save @types/du

Summary

This package contains type definitions for du (https://github.com/rvagg/node-du#readme).

Details

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

index.d.ts

interface Options {
    disk?: boolean | undefined;
    filter?: ((dir: string) => boolean) | undefined;
}

declare function du(dir: string, options?: Options): Promise<number>;
declare function du(dir: string, options: Options, callback: (err: Error | null, data?: number) => any): void;
declare function du(dir: string, callback: (err: Error | null, data?: number) => any): void;

export = du;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Richie Bendall.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/du

Weekly Downloads

457

Version

1.0.3

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • types