1.0.3 • Published 6 months ago

@types/du v1.0.3

Weekly downloads
551
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for du 1.0
// Project: https://github.com/rvagg/node-du#readme
// Definitions by: Richie Bendall <https://github.com/Richienb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 09:08:57 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Richie Bendall.