mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
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:
@@ -11,3 +11,7 @@ str = findup(['foo', 'bar']);
|
||||
str = findup('foo', {
|
||||
debug: true
|
||||
});
|
||||
|
||||
str = findup('foo', {
|
||||
cwd: "c:\\"
|
||||
});
|
||||
|
||||
11
findup-sync/findup-sync.d.ts
vendored
11
findup-sync/findup-sync.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user