mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
feat(glob-base): add glob-base typyings
This commit is contained in:
@@ -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;
|
||||
Vendored
+16
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user