Merge pull request #22476 from PostCrafter/is-scoped

Add types for is-scoped
This commit is contained in:
Paul van Brenk
2017-12-27 13:30:54 -08:00
committed by GitHub
4 changed files with 38 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for is-scoped 1.0
// Project: https://github.com/sindresorhus/is-scoped#readme
// Definitions by: Leo Friedrichs <https://github.com/postcrafter>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = isScoped;
declare function isScoped(input: string): boolean;
+6
View File
@@ -0,0 +1,6 @@
import isScoped = require('is-scoped');
const tests: boolean[] = [
isScoped('is-scoped'),
isScoped('@types/is-scoped'),
];
+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",
"is-scoped-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }