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

1.1.3 • Public • Published

Installation

npm install --save @types/resolve-options

Summary

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

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resolve-options.

index.d.ts

interface Options {
    cwd?: string | ((...args: any[]) => string) | undefined;
    buffer?: boolean | ((...args: any[]) => boolean) | undefined;
    read?: boolean | ((...args: any[]) => boolean) | undefined;
    base?: string | ((...args: any[]) => string) | undefined;
    since?: Date | number | ((...args: any[]) => Date | number) | undefined;
    passthrough?: boolean | ((...args: any[]) => boolean) | undefined;
    allowEmpty?: boolean | ((...args: any[]) => boolean) | undefined;
    mode?: string | number | ((...args: any[]) => string | number) | undefined;
    dirMode?: string | number | ((...args: any[]) => string | number) | undefined;
    overwrite?: boolean | ((...args: any[]) => boolean) | undefined;
    deep?: boolean | ((...args: any[]) => boolean) | undefined;
}

interface ConfigItem {
    type: string | string[];
    default?: any;
}

interface Resolver {
    resolve: (key: string) => number | string | boolean | Date | undefined | null;
}

interface Config {
    [par: string]: ConfigItem;
}

declare function createResolver(config: Config, options: Options): Resolver;

export = createResolver;

Additional Details

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

Credits

These definitions were written by Przemysław Struciński.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/resolve-options

Weekly Downloads

1,253

Version

1.1.3

License

MIT

Unpacked Size

4.86 kB

Total Files

5

Last publish

Collaborators

  • types