Add options arg to "find-versions"

This commit is contained in:
Chris Arnesen
2018-11-28 14:15:24 +07:00
parent 8ff7e8f29e
commit 53771da91e
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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[]
+1 -1
View File
@@ -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;