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

3.0.6 • Public • Published

Installation

npm install --save @types/require-all

Summary

This package contains type definitions for require-all (https://github.com/felixge/node-require-all#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-all.

index.d.ts

interface Options {
    dirname: string;
    filter?: ((name: string, path: string) => string | false | undefined) | RegExp | undefined;
    excludeDirs?: RegExp | undefined;
    map?: ((name: string, path: string) => string) | undefined;
    resolve?: ((module: any) => any) | undefined;
    recursive?: true | false | undefined;
}

declare function requireAll(options: string | Options): { [key: string]: any };

export = requireAll;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Ivan Sadykov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/require-all

Weekly Downloads

2,662

Version

3.0.6

License

MIT

Unpacked Size

3.43 kB

Total Files

5

Last publish

Collaborators

  • types