mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Add options arg to "find-versions"
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import findVersions = require('find-versions');
|
||||
|
||||
findVersions('node v1.0.0');
|
||||
findVersions('node v1.0.0'); // $ExpectType string[]
|
||||
findVersions('1.0', { loose: true }); // $ExpectType string[]
|
||||
|
||||
Vendored
+1
-1
@@ -3,5 +3,5 @@
|
||||
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function findVersions(version: string): string[];
|
||||
declare function findVersions(version: string, options?: { loose: boolean }): string[];
|
||||
export = findVersions;
|
||||
|
||||
Reference in New Issue
Block a user