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

2.0.4 • Public • Published

Installation

npm install --save @types/empty-dir

Summary

This package contains type definitions for empty-dir (https://github.com/gulpjs/empty-dir).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/empty-dir.

/// <reference types="node" />

export = emptyDir;

declare function emptyDir(
    dir: string | readonly string[],
    cb: (err: NodeJS.ErrnoException, isEmpty: boolean) => void,
): void;
declare function emptyDir(
    dir: string | readonly string[],
    filter: (path: string) => boolean,
    cb: (err: NodeJS.ErrnoException, isEmpty: boolean) => void,
): void;
declare function emptyDir(
    dir: string | readonly string[],
    filter?: (path: string) => boolean,
): Promise<boolean>;

declare namespace emptyDir {
    function sync(dir: string | readonly string[], filter?: (path: string) => boolean): boolean;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender, and Daniel Cassidy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/empty-dir

Weekly Downloads

94

Version

2.0.4

License

MIT

Unpacked Size

4.06 kB

Total Files

5

Last publish

Collaborators

  • types