@types/resolve-options
TypeScript definitions for resolve-options
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/resolve-options 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.1.1                                ...           latest (5 years ago)
  • 1.1.0                                ...           ts2.8 (7 years ago)
  • 1.1.0                                ...           ts2.9 (7 years ago)
  • 1.1.0                                ...           ts3.0 (7 years ago)
  • 1.1.0                                ...           ts3.1 (7 years ago)
  • 1.1.0                                ...           ts3.2 (7 years ago)
  • 1.1.0                                ...           ts3.3 (7 years ago)
  • 1.1.0                                ...           ts3.4 (7 years ago)
  • 1.1.0                                ...           ts3.5 (7 years ago)
  • 1.1.1                                ...           ts3.6 (5 years ago)
  • 1.1.1                                ...           ts3.7 (5 years ago)
  • 1.1.1                                ...           ts3.8 (5 years ago)
  • 1.1.1                                ...           ts3.9 (5 years ago)
  • 1.1.1                                ...           ts4.0 (5 years ago)
  • 1.1.1                                ...           ts4.1 (5 years ago)
  • 1.1.1                                ...           ts4.2 (5 years ago)
  • 1.1.1                                ...           ts4.3 (5 years ago)
  • 1.1.1                                ...           ts4.4 (5 years ago)
  • 1.1.1                                ...           ts4.5 (5 years ago)
  • 1.1.1                                ...           ts4.6 (5 years ago)
  • 1.1.1                                ...           ts4.7 (5 years ago)
  • 1.1.1                                ...           ts4.8 (5 years ago)
  • 1.1.1                                ...           ts4.9 (5 years ago)
  • 1.1.1                                ...           ts5.0 (5 years ago)
  • 1.1.1                                ...           ts5.1 (5 years ago)
  • 1.1.1                                ...           ts5.2 (5 years ago)
  • 1.1.1                                ...           ts5.3 (5 years ago)

2 Versions

  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |