diff --git a/findup-sync/findup-sync-tests.ts b/findup-sync/findup-sync-tests.ts index f4aab395ae..55eab36177 100644 --- a/findup-sync/findup-sync-tests.ts +++ b/findup-sync/findup-sync-tests.ts @@ -11,3 +11,7 @@ str = findup(['foo', 'bar']); str = findup('foo', { debug: true }); + +str = findup('foo', { + cwd: "c:\\" +}); diff --git a/findup-sync/findup-sync.d.ts b/findup-sync/findup-sync.d.ts index a5bb5b49df..b7bf674e23 100644 --- a/findup-sync/findup-sync.d.ts +++ b/findup-sync/findup-sync.d.ts @@ -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 +// Definitions by: Bart van der Schoor , Nathan Brown // Definitions: https://github.com/borisyankov/DefinitelyTyped /// @@ -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; }