2.0.4 • Published 6 months ago

@types/empty-dir v2.0.4

Weekly downloads
1,134
License
MIT
Repository
github
Last release
6 months ago

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.

index.d.ts

// Type definitions for empty-dir 2.0
// Project: https://github.com/gulpjs/empty-dir
// Definitions by: BendingBender <https://github.com/BendingBender>
//                 Daniel Cassidy <https://github.com/djcsdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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: Tue, 28 Sep 2021 17:31:20 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by BendingBender, and Daniel Cassidy.