Nietzsche's Preposterous Moustache

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

    2.0.1 • Public • Published

    Installation

    npm install --save @types/bash-glob

    Summary

    This package contains type definitions for bash-glob (https://github.com/micromatch/bash-glob).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bash-glob.

    index.d.ts

    // Type definitions for bash-glob 2.0
    // Project: https://github.com/micromatch/bash-glob
    // Definitions by: mrmlnc <https://github.com/mrmlnc>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    type Patterns = string | string[];
    type Callback = (err: Error, files: string[]) => void;
    
    declare function bashGlob(pattern: Patterns, callback: Callback): void;
    declare function bashGlob(pattern: Patterns, options: bashGlob.Options, callback: Callback): void;
    
    declare namespace bashGlob {
        interface Options {
            cwd?: string | undefined;
            dot?: boolean | undefined;
            dotglob?: boolean | undefined;
            extglob?: boolean | undefined;
            failglob?: boolean | undefined;
            globstar?: boolean | undefined;
            nocase?: boolean | undefined;
            nocaseglob?: boolean | undefined;
            nullglob?: boolean | undefined;
        }
    
        function on(event: 'match' | 'files', callback: (files: string, cwd: string) => void): void;
        function on(event: 'end', callback: (files: string) => void): void;
    
        function each(patterns: Patterns, callback: Callback): void;
        function each(patterns: Patterns, options: Options, callback: Callback): void;
    
        function promise(patterns: Patterns, options?: Options): Promise<string[]>;
    
        function sync(patterns: Patterns, options?: Options): string[];
    }
    
    export = bashGlob;

    Additional Details

    • Last updated: Wed, 07 Jul 2021 21:44:52 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by mrmlnc.

    Keywords

    none

    Install

    npm i @types/bash-glob

    DownloadsWeekly Downloads

    253

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    5.29 kB

    Total Files

    4

    Last publish

    Collaborators

    • types