Merge pull request #31690 from BendingBender/is-git-url

[is-git-url] Add types
This commit is contained in:
Wesley Wigham
2018-12-25 22:41:00 -08:00
committed by GitHub
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for is-git-url 1.0
// Project: https://github.com/jonschlinkert/is-git-url
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = isGitUrl;
declare function isGitUrl(url: string): boolean;
+3
View File
@@ -0,0 +1,3 @@
import isGitUrl = require('is-git-url');
isGitUrl('git://github.com/jonschlinkert/is-git-url.git'); // $ExpectType boolean
+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-git-url-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }