mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
[is-url-superb]: Add initial type definition (#18531)
* [is-url-superb]: Add initial type definition * [is-url-superb] Remove namespace declaration
This commit is contained in:
committed by
Sheetal Nandi
parent
24c1979c3b
commit
fc7a45f9ea
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for is-url-superb 2.0
|
||||
// Project: https://github.com/sindresorhus/is-url-superb
|
||||
// Definitions by: Michael Strobel <https://github.com/kryops>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = isUrl;
|
||||
|
||||
declare function isUrl(str: string): boolean;
|
||||
@@ -0,0 +1,5 @@
|
||||
import isUrl = require('is-url-superb');
|
||||
|
||||
const url1: boolean = isUrl('http://todomvc.com');
|
||||
const url2: boolean = isUrl('//todomvc.com');
|
||||
const url3: boolean = isUrl('unicorn');
|
||||
@@ -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",
|
||||
"is-url-superb-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user