1.1.3 • Published 6 months ago
@types/resolve-options v1.1.3
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
// Type definitions for resolve-options 1.1
// Project: https://github.com/gulpjs/resolve-options
// Definitions by: Przemysław Struciński <https://github.com/delprzemo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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: Thu, 08 Jul 2021 22:42:01 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Przemysław Struciński.