@types/globby
Advanced tools
Comparing version 0.6.0 to 6.1.0
@@ -1,17 +0,37 @@ | ||
// Type definitions for globby 0.6 | ||
// Type definitions for globby 6.1 | ||
// Project: https://github.com/sindresorhus/globby#readme | ||
// Definitions by: Douglas Duteil <https://github.com/douglasduteil> | ||
// Ika <https://github.com/ikatyang> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { IOptions } from 'glob'; | ||
/** | ||
* Returns a `Promise<Array>` of matching paths. | ||
*/ | ||
declare function globby(patterns: string | string[], options?: IOptions): Promise<string[]>; | ||
declare namespace globby { | ||
function sync(patterns: string | string[], options?: IOptions): string[]; | ||
function generateGlobTasks(patterns: string | string[], options?: IOptions): Array<{pattern: string, options: IOptions}>; | ||
function hasMagic(patterns: string | string[], options?: IOptions): boolean; | ||
/** | ||
* Returns an `Array` of matching paths. | ||
*/ | ||
function sync(patterns: string | string[], options?: IOptions): string[]; | ||
/** | ||
* Returns an `Array<Object>` in the format `{ pattern: string, opts: Object }`, | ||
* which can be passed as arguments to [node-glob](https://github.com/isaacs/node-glob). | ||
* This is useful for other globbing-related packages. | ||
* | ||
* Note that you should avoid running the same tasks multiple times as they contain a file system cache. | ||
* Instead, run this method each time to ensure file system changes are taken into consideration. | ||
*/ | ||
function generateGlobTasks(patterns: string | string[], options?: IOptions): Array<{pattern: string, options: IOptions}>; | ||
/** | ||
* Returns a `boolean` of whether there are any special glob characters in the patterns. | ||
* | ||
* Note that the options affect the results. If `noext: true` is set, then `+(a|b)` will not be considered a magic pattern. | ||
* If the pattern has a brace expansion, like `a/{b/c,x/y}`, then that is considered magical, unless `nobrace: true` is set. | ||
*/ | ||
function hasMagic(patterns: string | string[], options?: IOptions): boolean; | ||
} | ||
export = globby; |
{ | ||
"name": "@types/globby", | ||
"version": "0.6.0", | ||
"version": "6.1.0", | ||
"description": "TypeScript definitions for globby", | ||
@@ -10,2 +10,6 @@ "license": "MIT", | ||
"url": "https://github.com/douglasduteil" | ||
}, | ||
{ | ||
"name": "Ika", | ||
"url": "https://github.com/ikatyang" | ||
} | ||
@@ -22,5 +26,4 @@ ], | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "ca61f4c65b9fcfdad6e4b3b85da36cb7917ea94fc9119bf1628293b16d4005c5", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "1128d5e12300b413008afdacedce833abee7831289cfe47b0e4e54b3dcd7d33d", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 29 Jun 2017 13:32:10 GMT | ||
* Last updated: Mon, 28 Aug 2017 15:52:08 GMT | ||
* Dependencies: glob | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Douglas Duteil <https://github.com/douglasduteil>. | ||
These definitions were written by Douglas Duteil <https://github.com/douglasduteil>, Ika <https://github.com/ikatyang>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4183
33
1