Merge pull request #15807 from alan-agius4/feature/glob-base

feat(glob-base): add glob-base typyings
This commit is contained in:
Ryan Cavanaugh
2017-04-17 13:47:22 -07:00
committed by GitHub
4 changed files with 46 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import * as globBase from "glob-base";
const result = globBase("**/*.ts");
const isGlob = result.isGlob;
const glob = result.glob;
const base = result.base;
+16
View File
@@ -0,0 +1,16 @@
// Type definitions for glob-base 0.3
// Project: https://github.com/jonschlinkert/glob-base
// Definitions by: Alan Agius <https://github.com/alan-agius4>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function globbase(basePath?: string): globbase.GlobBaseResult;
declare namespace globbase {
interface GlobBaseResult {
base: string;
isGlob: boolean;
glob: string;
}
}
export = globbase;
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"glob-base-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }