13.0.0 • Published 2 months ago

@types/rrdir v13.0.0

Weekly downloads
35
License
MIT
Repository
github
Last release
2 months ago

Installation

npm install --save @types/rrdir

Summary

This package contains type definitions for rrdir (https://github.com/silverwind/rrdir#readme).

Details

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

index.d.ts

// Type definitions for rrdir 8.2
// Project: https://github.com/silverwind/rrdir#readme
// Definitions by: Zhang Nan <https://github.com/anyone-developer>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

import * as fs from "fs";
import { PicomatchOptions } from "picomatch";

interface rrdir {
    async(dir: string, options?: Options): Promise<Array<Entry<string>>>;
    async(dir: Buffer, options?: Options): Promise<Array<Entry<Buffer>>>;

    sync(dir: string, options?: Options): Array<Entry<string>>;
    sync(dir: Buffer, options?: Options): Array<Entry<Buffer>>;

    (dir: string, options?: Options): AsyncIterable<Entry<string>>;
    (dir: Buffer, options?: Options): AsyncIterable<Entry<Buffer>>;
}

declare const c: rrdir;
export = c;

interface Options {
    stats?: boolean | undefined;
    followSymlinks?: boolean | undefined;
    exclude?: string[] | undefined;
    include?: string[] | undefined;
    strict?: boolean | undefined;
    match?: PicomatchOptions | undefined;
}

interface Entry<T extends string | Buffer> {
    path: T;
    directory?: boolean | undefined;
    symlink?: boolean | undefined;
    stats?: fs.Stats | undefined;
    err?: Error | undefined;
}

Additional Details

Credits

These definitions were written by Zhang Nan.

13.0.0

2 months ago

8.2.5

7 months ago

8.2.4

7 months ago

8.2.3

3 years ago

8.2.2

3 years ago

8.2.1

4 years ago

8.2.0

4 years ago