Skip to content

Commit a78e8c2

Browse files
committed
findup-sync: Update to v0.3.0 and include cwd property in options.
1 parent 6f6e5c7 commit a78e8c2

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

findup-sync/findup-sync-tests.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ str = findup(['foo', 'bar']);
1111
str = findup('foo', {
1212
debug: true
1313
});
14+
15+
str = findup('foo', {
16+
cwd: "c:\\"
17+
});

findup-sync/findup-sync.d.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
// Type definitions for findup-sync v0.1.3
1+
// Type definitions for findup-sync v0.3.0
22
// Project: https://github.com/cowboy/node-findup-sync
3-
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
3+
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Nathan Brown <https://github.com/ngbrown>
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
55

66
/// <reference path="../minimatch/minimatch.d.ts" />
77

88
declare module 'findup-sync' {
99
import minimatch = require('minimatch');
1010

11-
function mod(pattern: string, opts?: minimatch.IOptions): string;
12-
function mod(pattern: string[], opts?: minimatch.IOptions): string;
11+
interface IOptions extends minimatch.IOptions {
12+
cwd?: string;
13+
}
14+
15+
function mod(pattern: string[] | string, opts?: IOptions): string;
1316

1417
export = mod;
1518
}

0 commit comments

Comments
 (0)