diff --git a/types/is-url-superb/index.d.ts b/types/is-url-superb/index.d.ts new file mode 100644 index 0000000000..9369edc65e --- /dev/null +++ b/types/is-url-superb/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for is-url-superb 2.0 +// Project: https://github.com/sindresorhus/is-url-superb +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = isUrl; + +declare function isUrl(str: string): boolean; diff --git a/types/is-url-superb/is-url-superb-tests.ts b/types/is-url-superb/is-url-superb-tests.ts new file mode 100644 index 0000000000..c804fc1b34 --- /dev/null +++ b/types/is-url-superb/is-url-superb-tests.ts @@ -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'); diff --git a/types/is-url-superb/tsconfig.json b/types/is-url-superb/tsconfig.json new file mode 100644 index 0000000000..069affddab --- /dev/null +++ b/types/is-url-superb/tsconfig.json @@ -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" + ] +} diff --git a/types/is-url-superb/tslint.json b/types/is-url-superb/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/is-url-superb/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }