Update types for glob-parent to version 5.1 (#38521)

This commit is contained in:
Denis Malinochkin 2019-09-26 21:43:21 +03:00 committed by Michael Crane
parent 2df4096252
commit c313dca7d1
2 changed files with 15 additions and 2 deletions

View File

@ -2,3 +2,10 @@ import globParent = require('glob-parent');
// $ExpectType string
globParent('*.js');
globParent('*.js', {});
globParent('*.js', { flipBackslashes: false });
const options: globParent.Options = {
flipBackslashes: false
};

View File

@ -1,8 +1,14 @@
// Type definitions for glob-parent 3.1
// Type definitions for glob-parent 5.1
// Project: https://github.com/gulpjs/glob-parent
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function globParent(pattern: string): string;
declare function globParent(pattern: string, options?: globParent.Options): string;
declare namespace globParent {
interface Options {
flipBackslashes?: boolean;
}
}
export = globParent;