mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
Update types for glob-parent to version 5.1 (#38521)
This commit is contained in:
parent
2df4096252
commit
c313dca7d1
@ -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
|
||||
};
|
||||
|
||||
10
types/glob-parent/index.d.ts
vendored
10
types/glob-parent/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user