Merge pull request #21433 from mrmlnc/glob_parent

[glob-parent] Add typings for "glob-parent" package
This commit is contained in:
Nathan Shively-Sanders
2017-11-13 16:12:44 -08:00
committed by GitHub
4 changed files with 36 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
import globParent = require('glob-parent');
// $ExpectType string
globParent('*.js');
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for glob-parent 3.1
// Project: https://github.com/es128/glob-parent
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function globParent(pattern: string): string;
export = globParent;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"glob-parent-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }