Merge pull request #5920 from ngbrown/patch-9

findup-sync: Update to v0.3.0 and include cwd property in options.
This commit is contained in:
Masahiro Wakame
2015-09-20 22:02:36 +09:00
2 changed files with 11 additions and 4 deletions

View File

@@ -11,3 +11,7 @@ str = findup(['foo', 'bar']);
str = findup('foo', {
debug: true
});
str = findup('foo', {
cwd: "c:\\"
});

View File

@@ -1,6 +1,6 @@
// Type definitions for findup-sync v0.1.3
// Type definitions for findup-sync v0.3.0
// Project: https://github.com/cowboy/node-findup-sync
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Nathan Brown <https://github.com/ngbrown>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../minimatch/minimatch.d.ts" />
@@ -8,8 +8,11 @@
declare module 'findup-sync' {
import minimatch = require('minimatch');
function mod(pattern: string, opts?: minimatch.IOptions): string;
function mod(pattern: string[], opts?: minimatch.IOptions): string;
interface IOptions extends minimatch.IOptions {
cwd?: string;
}
function mod(pattern: string[] | string, opts?: IOptions): string;
export = mod;
}