diff --git a/notNeededPackages.json b/notNeededPackages.json index 61d5f83532..9a387a3b26 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -834,6 +834,18 @@ "sourceRepoURL": "https://github.com/sindresorhus/empty-trash", "asOfVersion": "3.0.0" }, + { + "libraryName": "ensure-error", + "typingsPackageName": "ensure-error", + "sourceRepoURL": "https://github.com/sindresorhus/ensure-error", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "env-editor", + "typingsPackageName": "env-editor", + "sourceRepoURL": "https://github.com/sindresorhus/env-editor", + "asOfVersion": "0.4.0" + }, { "libraryName": "env-paths", "typingsPackageName": "env-paths", @@ -858,6 +870,12 @@ "sourceRepoURL": "https://github.com/jakearchibald/ES6-Promise", "asOfVersion": "3.3.0" }, + { + "libraryName": "escape-goat", + "typingsPackageName": "escape-goat", + "sourceRepoURL": "https://github.com/sindresorhus/escape-goat", + "asOfVersion": "2.0.0" + }, { "libraryName": "escape-string-regexp", "typingsPackageName": "escape-string-regexp", @@ -876,6 +894,18 @@ "sourceRepoURL": "https://github.com/primus/eventemitter3", "asOfVersion": "2.0.2" }, + { + "libraryName": "execall", + "typingsPackageName": "execall", + "sourceRepoURL": "https://github.com/sindresorhus/execall", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "exit-hook", + "typingsPackageName": "exit-hook", + "sourceRepoURL": "https://github.com/sindresorhus/exit-hook", + "asOfVersion": "2.2.0" + }, { "libraryName": "expr-eval", "typingsPackageName": "expr-eval", @@ -894,6 +924,12 @@ "sourceRepoURL": "https://github.com/code-chris/extended-listbox", "asOfVersion": "4.0.1" }, + { + "libraryName": "extract-stack", + "typingsPackageName": "extract-stack", + "sourceRepoURL": "https://github.com/sindresorhus/extract-stack", + "asOfVersion": "2.0.0" + }, { "libraryName": "fast-diff", "typingsPackageName": "fast-diff", @@ -942,6 +978,12 @@ "sourceRepoURL": "https://github.com/taylorhakes/fecha", "asOfVersion": "2.3.1" }, + { + "libraryName": "figures", + "typingsPackageName": "figures", + "sourceRepoURL": "https://github.com/sindresorhus/figures", + "asOfVersion": "3.0.0" + }, { "libraryName": "file-type", "typingsPackageName": "file-type", @@ -1062,6 +1104,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/get-port", "asOfVersion": "4.2.0" }, + { + "libraryName": "get-range", + "typingsPackageName": "get-range", + "sourceRepoURL": "https://github.com/sindresorhus/get-range", + "asOfVersion": "2.0.1" + }, { "libraryName": "get-stdin", "typingsPackageName": "get-stdin", @@ -1212,6 +1260,12 @@ "sourceRepoURL": "https://github.com/IGAWorksDev/homeworks/", "asOfVersion": "1.0.19" }, + { + "libraryName": "html-tags", + "typingsPackageName": "html-tags", + "sourceRepoURL": "https://github.com/sindresorhus/html-tags", + "asOfVersion": "3.0.0" + }, { "libraryName": "http-status-codes", "typingsPackageName": "http-status-codes", @@ -1224,6 +1278,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/humanize-string", "asOfVersion": "2.0.1" }, + { + "libraryName": "humanize-url", + "typingsPackageName": "humanize-url", + "sourceRepoURL": "https://github.com/sindresorhus/humanize-url", + "asOfVersion": "2.1.0" + }, { "libraryName": "i18next-browser-languagedetector", "typingsPackageName": "i18next-browser-languagedetector", @@ -1272,6 +1332,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/in-range", "asOfVersion": "2.0.0" }, + { + "libraryName": "indent-string", + "typingsPackageName": "indent-string", + "sourceRepoURL": "https://github.com/sindresorhus/indent-string", + "asOfVersion": "4.0.0" + }, { "libraryName": "interactjs", "typingsPackageName": "interact.js", @@ -1332,60 +1398,198 @@ "sourceRepoURL": "http://ionicframework.com", "asOfVersion": "3.19.0" }, + { + "libraryName": "ip-regex", + "typingsPackageName": "ip-regex", + "sourceRepoURL": "https://github.com/sindresorhus/ip-regex", + "asOfVersion": "4.1.0" + }, + { + "libraryName": "ipify", + "typingsPackageName": "ipify", + "sourceRepoURL": "https://github.com/sindresorhus/ipify", + "asOfVersion": "3.0.0" + }, { "libraryName": "is-absolute-url", "typingsPackageName": "is-absolute-url", "sourceRepoURL": "https://github.com/sindresorhus/is-absolute-url", "asOfVersion": "3.0.0" }, + { + "libraryName": "is-archive", + "typingsPackageName": "is-archive", + "sourceRepoURL": "https://github.com/sindresorhus/is-archive", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "is-array-sorted", + "typingsPackageName": "is-array-sorted", + "sourceRepoURL": "https://github.com/sindresorhus/is-array-sorted", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "is-binary-path", + "typingsPackageName": "is-binary-path", + "sourceRepoURL": "https://github.com/sindresorhus/is-binary-path", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "is-compressed", + "typingsPackageName": "is-compressed", + "sourceRepoURL": "https://github.com/sindresorhus/is-compressed", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "is-docker", + "typingsPackageName": "is-docker", + "sourceRepoURL": "https://github.com/sindresorhus/is-docker", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "is-elevated", + "typingsPackageName": "is-elevated", + "sourceRepoURL": "https://github.com/sindresorhus/is-elevated", + "asOfVersion": "3.0.0" + }, { "libraryName": "is-fullwidth-code-point", "typingsPackageName": "is-fullwidth-code-point", "sourceRepoURL": "https://github.com/sindresorhus/is-fullwidth-code-point", "asOfVersion": "3.0.0" }, + { + "libraryName": "is-image", + "typingsPackageName": "is-image", + "sourceRepoURL": "https://github.com/sindresorhus/is-image", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "is-ip", + "typingsPackageName": "is-ip", + "sourceRepoURL": "https://github.com/sindresorhus/is-ip", + "asOfVersion": "3.0.0" + }, { "libraryName": "is-lower-case", "typingsPackageName": "is-lower-case", "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "is-obj", + "typingsPackageName": "is-obj", + "sourceRepoURL": "https://github.com/sindresorhus/is-obj", + "asOfVersion": "2.0.0" + }, { "libraryName": "is-online", "typingsPackageName": "is-online", "sourceRepoURL": "https://github.com/sindresorhus/is-online", "asOfVersion": "8.1.0" }, + { + "libraryName": "is-path-cwd", + "typingsPackageName": "is-path-cwd", + "sourceRepoURL": "https://github.com/sindresorhus/is-path-cwd", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "is-path-in-cwd", + "typingsPackageName": "is-path-in-cwd", + "sourceRepoURL": "https://github.com/sindresorhus/is-path-in-cwd", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "is-plain-obj", + "typingsPackageName": "is-plain-obj", + "sourceRepoURL": "https://github.com/sindresorhus/is-plain-obj", + "asOfVersion": "2.0.0" + }, { "libraryName": "is-plain-object", "typingsPackageName": "is-plain-object", "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", "asOfVersion": "2.0.4" }, + { + "libraryName": "is-png", + "typingsPackageName": "is-png", + "sourceRepoURL": "https://github.com/sindresorhus/is-png", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "is-reachable", + "typingsPackageName": "is-reachable", + "sourceRepoURL": "https://github.com/sindresorhus/is-reachable", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "is-regexp", + "typingsPackageName": "is-regexp", + "sourceRepoURL": "https://github.com/sindresorhus/is-regexp", + "asOfVersion": "2.1.0" + }, { "libraryName": "is-relative-url", "typingsPackageName": "is-relative-url", "sourceRepoURL": "https://github.com/sindresorhus/is-relative-url", "asOfVersion": "3.0.0" }, + { + "libraryName": "is-root", + "typingsPackageName": "is-root", + "sourceRepoURL": "https://github.com/sindresorhus/is-root", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "is-root-path", + "typingsPackageName": "is-root-path", + "sourceRepoURL": "https://github.com/sindresorhus/is-root-path", + "asOfVersion": "2.0.0" + }, { "libraryName": "is-scoped", "typingsPackageName": "is-scoped", "sourceRepoURL": "https://github.com/sindresorhus/is-scoped", "asOfVersion": "2.0.0" }, + { + "libraryName": "is-stream", + "typingsPackageName": "is-stream", + "sourceRepoURL": "https://github.com/sindresorhus/is-stream", + "asOfVersion": "2.0.0" + }, { "libraryName": "is-svg", "typingsPackageName": "is-svg", "sourceRepoURL": "https://github.com/sindresorhus/is-svg", "asOfVersion": "4.0.1" }, + { + "libraryName": "is-text-path", + "typingsPackageName": "is-text-path", + "sourceRepoURL": "https://github.com/sindresorhus/is-text-path", + "asOfVersion": "2.0.0" + }, { "libraryName": "is-upper-case", "typingsPackageName": "is-upper-case", "sourceRepoURL": "https://github.com/blakeembrey/is-upper-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "is-url-superb", + "typingsPackageName": "is-url-superb", + "sourceRepoURL": "https://github.com/sindresorhus/is-url-superb", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "issue-regex", + "typingsPackageName": "issue-regex", + "sourceRepoURL": "https://github.com/sindresorhus/issue-regex", + "asOfVersion": "3.1.0" + }, { "libraryName": "jasmine-expect", "typingsPackageName": "jasmine-expect", @@ -1440,6 +1644,12 @@ "sourceRepoURL": "https://github.com/js-data/js-data-http", "asOfVersion": "3.0.0" }, + { + "libraryName": "js-types", + "typingsPackageName": "js-types", + "sourceRepoURL": "https://github.com/sindresorhus/js-types", + "asOfVersion": "2.1.0" + }, { "libraryName": "JSNLog", "typingsPackageName": "jsnlog", @@ -1488,6 +1698,12 @@ "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", "asOfVersion": "0.7.1" }, + { + "libraryName": "known", + "typingsPackageName": "known", + "sourceRepoURL": "https://github.com/sindresorhus/known", + "asOfVersion": "3.0.0" + }, { "libraryName": "koa-jwt", "typingsPackageName": "koa-jwt", @@ -1500,18 +1716,36 @@ "sourceRepoURL": "https://github.com/elitechance/lambda-phi", "asOfVersion": "1.0.1" }, + { + "libraryName": "latest-semver", + "typingsPackageName": "latest-semver", + "sourceRepoURL": "https://github.com/sindresorhus/latest-semver", + "asOfVersion": "2.0.0" + }, { "libraryName": "latest-version", "typingsPackageName": "latest-version", "sourceRepoURL": "https://github.com/sindresorhus/latest-version", "asOfVersion": "5.0.0" }, + { + "libraryName": "lazy-value", + "typingsPackageName": "lazy-value", + "sourceRepoURL": "https://github.com/sindresorhus/lazy-value", + "asOfVersion": "2.0.0" + }, { "libraryName": "ldclient-js", "typingsPackageName": "ldclient-js", "sourceRepoURL": "https://github.com/launchdarkly/js-client", "asOfVersion": "1.1.11" }, + { + "libraryName": "leap-year", + "typingsPackageName": "leap-year", + "sourceRepoURL": "https://github.com/sindresorhus/leap-year", + "asOfVersion": "3.0.0" + }, { "libraryName": "left-pad", "typingsPackageName": "left-pad", @@ -1524,6 +1758,18 @@ "sourceRepoURL": "https://github.com/sindresorhus/leven", "asOfVersion": "3.0.0" }, + { + "libraryName": "linkify-issues", + "typingsPackageName": "linkify-issues", + "sourceRepoURL": "https://github.com/sindresorhus/linkify-issues", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "linkify-urls", + "typingsPackageName": "linkify-urls", + "sourceRepoURL": "https://github.com/sindresorhus/linkify-urls", + "asOfVersion": "3.1.0" + }, { "libraryName": "Linq.JS", "typingsPackageName": "linq", @@ -1566,12 +1812,24 @@ "sourceRepoURL": "https://github.com/sindresorhus/locate-path", "asOfVersion": "4.0.0" }, + { + "libraryName": "lock-system", + "typingsPackageName": "lock-system", + "sourceRepoURL": "https://github.com/sindresorhus/lock-system", + "asOfVersion": "2.0.0" + }, { "libraryName": "lodash-decorators", "typingsPackageName": "lodash-decorators", "sourceRepoURL": "https://github.com/steelsojka/lodash-decorators", "asOfVersion": "4.0.0" }, + { + "libraryName": "log-symbols", + "typingsPackageName": "log-symbols", + "sourceRepoURL": "https://github.com/sindresorhus/log-symbols", + "asOfVersion": "3.0.0" + }, { "libraryName": "log-update", "typingsPackageName": "log-update", @@ -2490,6 +2748,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/resolve-global", "asOfVersion": "1.0.0" }, + { + "libraryName": "resolve-pkg", + "typingsPackageName": "resolve-pkg", + "sourceRepoURL": "https://github.com/sindresorhus/resolve-pkg", + "asOfVersion": "2.0.0" + }, { "libraryName": "rest-io", "typingsPackageName": "rest-io", @@ -2736,6 +3000,12 @@ "sourceRepoURL": "https://github.com/chalk/strip-ansi", "asOfVersion": "5.2.0" }, + { + "libraryName": "strip-indent", + "typingsPackageName": "strip-indent", + "sourceRepoURL": "https://github.com/sindresorhus/strip-indent", + "asOfVersion": "3.0.0" + }, { "libraryName": "striptags", "typingsPackageName": "striptags", @@ -2748,6 +3018,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/subsume", "asOfVersion": "2.1.0" }, + { + "libraryName": "sudo-block", + "typingsPackageName": "sudo-block", + "sourceRepoURL": "https://github.com/sindresorhus/sudo-block", + "asOfVersion": "3.0.0" + }, { "libraryName": "Sugar", "typingsPackageName": "sugar", @@ -2802,6 +3078,12 @@ "sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html", "asOfVersion": "2.6.0" }, + { + "libraryName": "tempy", + "typingsPackageName": "tempy", + "sourceRepoURL": "https://github.com/sindresorhus/tempy", + "asOfVersion": "0.3.0" + }, { "libraryName": "terser", "typingsPackageName": "terser", @@ -2832,6 +3114,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/title-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "to-semver", + "typingsPackageName": "to-semver", + "sourceRepoURL": "https://github.com/sindresorhus/to-semver", + "asOfVersion": "2.0.0" + }, { "libraryName": "trash", "typingsPackageName": "trash", @@ -2916,6 +3204,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/upper-case-first", "asOfVersion": "1.1.2" }, + { + "libraryName": "url-regex", + "typingsPackageName": "url-regex", + "sourceRepoURL": "https://github.com/kevva/url-regex", + "asOfVersion": "5.0.0" + }, { "libraryName": "urllib", "typingsPackageName": "urllib", diff --git a/types/ensure-error/ensure-error-tests.ts b/types/ensure-error/ensure-error-tests.ts deleted file mode 100644 index fbc5e85d23..0000000000 --- a/types/ensure-error/ensure-error-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import ensureError = require('ensure-error'); - -const error = new TypeError('🦄'); - -// $ExpectType TypeError -ensureError(error); - -// $ExpectType NonError -ensureError(10); diff --git a/types/ensure-error/index.d.ts b/types/ensure-error/index.d.ts deleted file mode 100644 index e6bc2e5a94..0000000000 --- a/types/ensure-error/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for ensure-error 1.0 -// Project: https://github.com/sindresorhus/ensure-error#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -export = ensureError; - -declare function ensureError(input: T): T extends Error ? T : ensureError.NonError; - -declare namespace ensureError { - interface NonError extends Error { - name: 'NonError'; - } -} diff --git a/types/ensure-error/tsconfig.json b/types/ensure-error/tsconfig.json deleted file mode 100644 index 687a9dfd1a..0000000000 --- a/types/ensure-error/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "ensure-error-tests.ts" - ] -} diff --git a/types/ensure-error/tslint.json b/types/ensure-error/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ensure-error/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/env-editor/env-editor-tests.ts b/types/env-editor/env-editor-tests.ts deleted file mode 100644 index c03cacc38b..0000000000 --- a/types/env-editor/env-editor-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as envEditor from 'env-editor'; - -// $ExpectType Editor -envEditor.get('sublime'); -// $ExpectType Editor -envEditor.default(); -// $ExpectType Editor[] -envEditor.all(); diff --git a/types/env-editor/index.d.ts b/types/env-editor/index.d.ts deleted file mode 100644 index 8bf9e6d68f..0000000000 --- a/types/env-editor/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for env-editor 0.3 -// Project: https://github.com/sindresorhus/env-editor#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export default function(): Editor; -export function get(editor: string): Editor; -export function all(): Editor[]; - -export interface Editor { - id: string; - name: string; - bin: string; - isTerminalEditor: boolean; - paths: string[]; - keywords: string[]; -} diff --git a/types/env-editor/tsconfig.json b/types/env-editor/tsconfig.json deleted file mode 100644 index 6d137bf389..0000000000 --- a/types/env-editor/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "env-editor-tests.ts" - ] -} diff --git a/types/env-editor/tslint.json b/types/env-editor/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/env-editor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/escape-goat/escape-goat-tests.ts b/types/escape-goat/escape-goat-tests.ts deleted file mode 100644 index cfc1808495..0000000000 --- a/types/escape-goat/escape-goat-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ -import * as escapeGoat from 'escape-goat'; - -// $ExpectType string -escapeGoat.escape('🦄 & 🐐'); - -// $ExpectType string -escapeGoat.unescape('🦄 & 🐐'); - -// $ExpectType string -escapeGoat.escape('Hello World'); - -const url = 'https://sindresorhus.com?x="🦄"'; -// $ExpectType string -escapeGoat.escapeTag`Unicorn`; diff --git a/types/escape-goat/index.d.ts b/types/escape-goat/index.d.ts deleted file mode 100644 index f76f384fb0..0000000000 --- a/types/escape-goat/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for escape-goat 1.3 -// Project: https://github.com/sindresorhus/escape-goat#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function escape(input: string): string; -export function unescape(input: string): string; -export function escapeTag(template: TemplateStringsArray, ...substitutions: any[]): string; -export function unescapeTag(template: TemplateStringsArray, ...substitutions: any[]): string; diff --git a/types/escape-goat/tsconfig.json b/types/escape-goat/tsconfig.json deleted file mode 100644 index 9715cb59e1..0000000000 --- a/types/escape-goat/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "escape-goat-tests.ts" - ] -} diff --git a/types/escape-goat/tslint.json b/types/escape-goat/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/escape-goat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/execall/execall-tests.ts b/types/execall/execall-tests.ts deleted file mode 100644 index 8a9d3b7768..0000000000 --- a/types/execall/execall-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import execall = require('execall'); - -execall(/(\d+)/g, '$200 and $400'); // $ExpectType Match[] diff --git a/types/execall/index.d.ts b/types/execall/index.d.ts deleted file mode 100644 index 29e7d3945e..0000000000 --- a/types/execall/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for execall 1.0 -// Project: https://github.com/sindresorhus/execall -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = execall; - -/** - * Find multiple RegExp matches in a string. Instead of having to iterate over - * `RegExp#exec`, immutable, and with a nicer result format. - * - * @param re Regular expression to match against the `input`. - * @returns An array of matches. - */ -declare function execall(re: RegExp, input: string): execall.Match[]; - -declare namespace execall { - interface Match { - match: string; - sub: string[]; - index: number; - } -} diff --git a/types/execall/tsconfig.json b/types/execall/tsconfig.json deleted file mode 100644 index 70a42a9a18..0000000000 --- a/types/execall/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "execall-tests.ts" - ] -} diff --git a/types/execall/tslint.json b/types/execall/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/execall/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/exit-hook/exit-hook-tests.ts b/types/exit-hook/exit-hook-tests.ts deleted file mode 100644 index a76f56ff1c..0000000000 --- a/types/exit-hook/exit-hook-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import exitHook = require('exit-hook'); - -exitHook(() => { -}); diff --git a/types/exit-hook/index.d.ts b/types/exit-hook/index.d.ts deleted file mode 100644 index c1de8e7b0f..0000000000 --- a/types/exit-hook/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for exit-hook 1.1 -// Project: https://github.com/sindresorhus/exit-hook -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = exitHook; - -declare function exitHook(cb: () => void): void; diff --git a/types/exit-hook/tsconfig.json b/types/exit-hook/tsconfig.json deleted file mode 100644 index 34396672b0..0000000000 --- a/types/exit-hook/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "exit-hook-tests.ts" - ] -} \ No newline at end of file diff --git a/types/exit-hook/tslint.json b/types/exit-hook/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/exit-hook/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/extract-stack/extract-stack-tests.ts b/types/extract-stack/extract-stack-tests.ts deleted file mode 100644 index 927cd995ca..0000000000 --- a/types/extract-stack/extract-stack-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import extractStack = require('extract-stack'); - -const error = new Error('Missing unicorn'); - -extractStack(error); // $ExpectType string -extractStack(error.stack); // $ExpectType string -extractStack.lines(error); // $ExpectType string[] -extractStack.lines(error.stack); // $ExpectType string[] diff --git a/types/extract-stack/index.d.ts b/types/extract-stack/index.d.ts deleted file mode 100644 index 071a147e59..0000000000 --- a/types/extract-stack/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for extract-stack 1.0 -// Project: https://github.com/sindresorhus/extract-stack#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = extractStack; - -declare function extractStack(input: Error | string | undefined): string; - -declare namespace extractStack { - function lines(input: Error | string | undefined): string[]; -} diff --git a/types/extract-stack/tsconfig.json b/types/extract-stack/tsconfig.json deleted file mode 100644 index 26f0c50479..0000000000 --- a/types/extract-stack/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "extract-stack-tests.ts" - ] -} \ No newline at end of file diff --git a/types/extract-stack/tslint.json b/types/extract-stack/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/extract-stack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/figures/figures-tests.ts b/types/figures/figures-tests.ts deleted file mode 100644 index f2c25bbe4b..0000000000 --- a/types/figures/figures-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import figures = require('figures'); - -let str: string; -str = figures('✔︎ check'); -str = figures.tick; diff --git a/types/figures/index.d.ts b/types/figures/index.d.ts deleted file mode 100644 index 2867326034..0000000000 --- a/types/figures/index.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -// Type definitions for figures 2.0 -// Project: https://github.com/sindresorhus/figures#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = figures; - -declare function figures(input: string): string; - -declare namespace figures { - const tick: string; - const cross: string; - const star: string; - const square: string; - const squareSmall: string; - const squareSmallFilled: string; - const play: string; - const circle: string; - const circleFilled: string; - const circleDotted: string; - const circleDouble: string; - const circleCircle: string; - const circleCross: string; - const circlePipe: string; - const circleQuestionMark: string; - const bullet: string; - const dot: string; - const line: string; - const ellipsis: string; - const pointer: string; - const pointerSmall: string; - const info: string; - const warning: string; - const hamburger: string; - const smiley: string; - const mustache: string; - const heart: string; - const arrowUp: string; - const arrowDown: string; - const arrowLeft: string; - const arrowRight: string; - const radioOn: string; - const radioOff: string; - const checkboxOn: string; - const checkboxOff: string; - const checkboxCircleOn: string; - const checkboxCircleOff: string; - const questionMarkPrefix: string; - const oneHalf: string; - const oneThird: string; - const oneQuarter: string; - const oneFifth: string; - const oneSixth: string; - const oneSeventh: string; - const oneEighth: string; - const oneNinth: string; - const oneTenth: string; - const twoThirds: string; - const twoFifths: string; - const threeQuarters: string; - const threeFifths: string; - const threeEighths: string; - const fourFifths: string; - const fiveSixths: string; - const fiveEighths: string; - const sevenEighth: string; -} diff --git a/types/figures/tsconfig.json b/types/figures/tsconfig.json deleted file mode 100644 index 720529ea45..0000000000 --- a/types/figures/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "figures-tests.ts" - ] -} \ No newline at end of file diff --git a/types/figures/tslint.json b/types/figures/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/figures/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/get-range/get-range-tests.ts b/types/get-range/get-range-tests.ts deleted file mode 100644 index b52e2fb90b..0000000000 --- a/types/get-range/get-range-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -import getRange = require('get-range'); - -for (const i of getRange(4)) { -} - -const r = getRange(0, 4, 2); -r.next().value; -r.next().value; - -getRange(0, -5); -getRange(0, -5, -1); diff --git a/types/get-range/index.d.ts b/types/get-range/index.d.ts deleted file mode 100644 index f0556da442..0000000000 --- a/types/get-range/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for get-range 1.0 -// Project: https://github.com/sindresorhus/get-range#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = getRange; - -// tslint:disable:unified-signatures - -declare function getRange(stop: number): Iterator & Iterable; -declare function getRange( - start: number, - stop: number, - step?: number -): Iterator & Iterable; diff --git a/types/get-range/tsconfig.json b/types/get-range/tsconfig.json deleted file mode 100644 index f3ac944af9..0000000000 --- a/types/get-range/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "target": "es6", - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "get-range-tests.ts" - ] -} diff --git a/types/get-range/tslint.json b/types/get-range/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/get-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/html-tags/html-tags-tests.ts b/types/html-tags/html-tags-tests.ts deleted file mode 100644 index 802dbb665e..0000000000 --- a/types/html-tags/html-tags-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import htmlTags = require('html-tags'); -import voidHtmlTags = require('html-tags/void'); -import htmlTagsJson = require('html-tags/html-tags.json'); -import voidHtmlTagsJson = require('html-tags/html-tags-void.json'); - -htmlTags; // $ExpectType string[] -voidHtmlTags; // $ExpectType string[] -htmlTagsJson; // $ExpectType string[] -voidHtmlTagsJson; // $ExpectType string[] diff --git a/types/html-tags/html-tags-void.json.d.ts b/types/html-tags/html-tags-void.json.d.ts deleted file mode 100644 index 3e194ddf27..0000000000 --- a/types/html-tags/html-tags-void.json.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export = voidHtmlTags; - -declare const voidHtmlTags: string[]; diff --git a/types/html-tags/html-tags.json.d.ts b/types/html-tags/html-tags.json.d.ts deleted file mode 100644 index 888779dc9c..0000000000 --- a/types/html-tags/html-tags.json.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export = htmlTags; - -declare const htmlTags: string[]; diff --git a/types/html-tags/index.d.ts b/types/html-tags/index.d.ts deleted file mode 100644 index 635ce4820f..0000000000 --- a/types/html-tags/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for html-tags 2.0 -// Project: https://github.com/sindresorhus/html-tags#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = htmlTags; - -declare const htmlTags: string[]; diff --git a/types/html-tags/tsconfig.json b/types/html-tags/tsconfig.json deleted file mode 100644 index 971c9bb630..0000000000 --- a/types/html-tags/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "void.d.ts", - "html-tags.json.d.ts", - "html-tags-void.json.d.ts", - "html-tags-tests.ts" - ] -} diff --git a/types/html-tags/tslint.json b/types/html-tags/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/html-tags/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/html-tags/void.d.ts b/types/html-tags/void.d.ts deleted file mode 100644 index 3e194ddf27..0000000000 --- a/types/html-tags/void.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export = voidHtmlTags; - -declare const voidHtmlTags: string[]; diff --git a/types/humanize-url/humanize-url-tests.ts b/types/humanize-url/humanize-url-tests.ts deleted file mode 100644 index 7556cfb1c4..0000000000 --- a/types/humanize-url/humanize-url-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import humanizeUrl = require('humanize-url'); - -// $ExpectType string -humanizeUrl('https://www.sindresorhus.com/'); diff --git a/types/humanize-url/index.d.ts b/types/humanize-url/index.d.ts deleted file mode 100644 index c00f5c982f..0000000000 --- a/types/humanize-url/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for humanize-url 2.0 -// Project: https://github.com/sindresorhus/humanize-url#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = humanizeUrl; - -declare function humanizeUrl(url: string): string; diff --git a/types/humanize-url/tsconfig.json b/types/humanize-url/tsconfig.json deleted file mode 100644 index dd9fec46b6..0000000000 --- a/types/humanize-url/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "humanize-url-tests.ts" - ] -} diff --git a/types/humanize-url/tslint.json b/types/humanize-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/humanize-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/indent-string/indent-string-tests.ts b/types/indent-string/indent-string-tests.ts deleted file mode 100644 index 737aba3b02..0000000000 --- a/types/indent-string/indent-string-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import indentString = require('indent-string'); - -// $ExpectType string -indentString('Unicorns\nRainbows'); -indentString('Unicorns\nRainbows', 4); -// => ' Unicorns' -// => ' Rainbows' - -indentString('Unicorns\nRainbows', 4, '♥'); -// => '♥♥♥♥Unicorns' -// => '♥♥♥♥Rainbows' -indentString('Unicorns\nRainbows', 4, { indent: '♥' }); -indentString('Unicorns\nRainbows', 4, { includeEmptyLines: true }); diff --git a/types/indent-string/index.d.ts b/types/indent-string/index.d.ts deleted file mode 100644 index 038227b112..0000000000 --- a/types/indent-string/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for indent-string 3.2 -// Project: https://github.com/sindresorhus/indent-string#readme -// Definitions by: Mohamed Hegazy -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = indentString; - -declare function indentString( - str: string, - count?: number, - indent?: string | indentString.Options -): string; - -declare namespace indentString { - interface Options { - indent?: string; - includeEmptyLines?: boolean; - } -} diff --git a/types/indent-string/tsconfig.json b/types/indent-string/tsconfig.json deleted file mode 100644 index 4f2e008801..0000000000 --- a/types/indent-string/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "indent-string-tests.ts" - ] -} \ No newline at end of file diff --git a/types/indent-string/tslint.json b/types/indent-string/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/indent-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ip-regex/index.d.ts b/types/ip-regex/index.d.ts deleted file mode 100644 index 5e26927a98..0000000000 --- a/types/ip-regex/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for ip-regex 3.0 -// Project: https://github.com/sindresorhus/ip-regex -// Definitions by: Renārs Vilnis -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function ip(options?: ip.IpRegexOptions): RegExp; - -declare namespace ip { - interface IpRegexOptions { - exact?: boolean; - } - - function v4(options?: IpRegexOptions): RegExp; - function v6(options?: IpRegexOptions): RegExp; -} -export = ip; diff --git a/types/ip-regex/ip-regex-tests.ts b/types/ip-regex/ip-regex-tests.ts deleted file mode 100644 index 2743521b1d..0000000000 --- a/types/ip-regex/ip-regex-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import ipRegex = require('ip-regex'); - -ipRegex().test('unicorn 192.168.0.1 cake 1:2:3:4:5:6:7:8 rainbow'); -ipRegex({exact: true}).test('unicorn 192.168.0.1 cake 1:2:3:4:5:6:7:8 rainbow'); -'unicorn 192.168.0.1 cake 1:2:3:4:5:6:7:8 rainbow'.match(ipRegex()); - -ipRegex.v4().test('unicorn 192.168.0.1'); -ipRegex.v4({exact: true}).test('unicorn 192.168.0.1'); -'unicorn 192.168.0.1'.match(ipRegex.v4()); - -ipRegex.v6().test('cake 1:2:3:4:5:6:7:8 rainbow'); -ipRegex.v6({exact: true}).test('cake 1:2:3:4:5:6:7:8 rainbow'); -'cake 1:2:3:4:5:6:7:8 rainbow'.match(ipRegex.v6()); diff --git a/types/ip-regex/tsconfig.json b/types/ip-regex/tsconfig.json deleted file mode 100644 index 4f7bd0410e..0000000000 --- a/types/ip-regex/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "ip-regex-tests.ts" - ] -} diff --git a/types/ip-regex/tslint.json b/types/ip-regex/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ip-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ip-regex/v2/index.d.ts b/types/ip-regex/v2/index.d.ts deleted file mode 100644 index c26cbaab3b..0000000000 --- a/types/ip-regex/v2/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for ip-regex 2.0 -// Project: https://github.com/sindresorhus/ip-regex -// Definitions by: Daniel Perez Alvarez -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** Regular expression for matching IP addresses (IPv4 & IPv6). */ -declare function ipRegex(options?: { - /** Only match an exact string. Useful with RegExp#test to check if a string is an IP address. */ - exact?: boolean; -}): RegExp; - -export = ipRegex; diff --git a/types/ip-regex/v2/ip-regex-tests.ts b/types/ip-regex/v2/ip-regex-tests.ts deleted file mode 100644 index dcaa72c72d..0000000000 --- a/types/ip-regex/v2/ip-regex-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import ipRegex = require('ip-regex'); - -ipRegex().test('unicorn 192.168.0.1'); - -ipRegex({exact: true}).test('unicorn 192.168.0.1'); - -'unicorn 192.168.0.1 cake 1:2:3:4:5:6:7:8 rainbow'.match(ipRegex()); diff --git a/types/ip-regex/v2/tsconfig.json b/types/ip-regex/v2/tsconfig.json deleted file mode 100644 index 15e25228df..0000000000 --- a/types/ip-regex/v2/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "paths": { - "ip-regex": [ - "ip-regex/v2" - ] - } - }, - "files": [ - "index.d.ts", - "ip-regex-tests.ts" - ] -} diff --git a/types/ip-regex/v2/tslint.json b/types/ip-regex/v2/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ip-regex/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ipify/index.d.ts b/types/ipify/index.d.ts deleted file mode 100644 index 237b15dfcc..0000000000 --- a/types/ipify/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for ipify 2.0 -// Project: https://github.com/sindresorhus/ipify#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = ipify; - -declare function ipify(endpoint?: string): Promise; diff --git a/types/ipify/ipify-tests.ts b/types/ipify/ipify-tests.ts deleted file mode 100644 index f533f49282..0000000000 --- a/types/ipify/ipify-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import ipify = require('ipify'); - -// $ExpectType Promise -ipify(); diff --git a/types/ipify/tsconfig.json b/types/ipify/tsconfig.json deleted file mode 100644 index 96f6f0600d..0000000000 --- a/types/ipify/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "ipify-tests.ts" - ] -} diff --git a/types/ipify/tslint.json b/types/ipify/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ipify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-archive/index.d.ts b/types/is-archive/index.d.ts deleted file mode 100644 index 58b6ed8324..0000000000 --- a/types/is-archive/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-archive 1.0 -// Project: https://github.com/sindresorhus/is-archive -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_archive; -declare function is_archive(filepath: string): boolean; diff --git a/types/is-archive/is-archive-tests.ts b/types/is-archive/is-archive-tests.ts deleted file mode 100644 index c5c947c0d8..0000000000 --- a/types/is-archive/is-archive-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import isArchive = require('is-archive'); - -isArchive('src/unicorn.zip'); -// => true - -isArchive('src/unicorn.txt'); -// => false diff --git a/types/is-archive/tsconfig.json b/types/is-archive/tsconfig.json deleted file mode 100644 index ce2b001789..0000000000 --- a/types/is-archive/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-archive-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-archive/tslint.json b/types/is-archive/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-archive/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-array-sorted/index.d.ts b/types/is-array-sorted/index.d.ts deleted file mode 100644 index 7c45437489..0000000000 --- a/types/is-array-sorted/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Type definitions for is-array-sorted 1.0 -// Project: https://github.com/sindresorhus/is-array-sorted#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isArraySorted; - -declare function isArraySorted( - array: ReadonlyArray, - comparator?: (a: T, b: T) => number -): boolean; diff --git a/types/is-array-sorted/is-array-sorted-tests.ts b/types/is-array-sorted/is-array-sorted-tests.ts deleted file mode 100644 index 85291fb10c..0000000000 --- a/types/is-array-sorted/is-array-sorted-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import isArraySorted = require('is-array-sorted'); - -// $ExpectType boolean -isArraySorted([1, 2, 3]); -// $ExpectType boolean -isArraySorted(['a', 'b', 'c'], (a, b) => a.localeCompare(b)); diff --git a/types/is-array-sorted/tsconfig.json b/types/is-array-sorted/tsconfig.json deleted file mode 100644 index 5fb8aa9921..0000000000 --- a/types/is-array-sorted/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-array-sorted-tests.ts" - ] -} diff --git a/types/is-array-sorted/tslint.json b/types/is-array-sorted/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-array-sorted/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-binary-path/index.d.ts b/types/is-binary-path/index.d.ts deleted file mode 100644 index 9d825e6ae3..0000000000 --- a/types/is-binary-path/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-binary-path 2.0 -// Project: https://github.com/sindresorhus/is-binary-path -// Definitions by: Daniel Rosenwasser -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_binary_path; -declare function is_binary_path(filepath: string): boolean; diff --git a/types/is-binary-path/is-binary-path-tests.ts b/types/is-binary-path/is-binary-path-tests.ts deleted file mode 100644 index 59d9fe3c04..0000000000 --- a/types/is-binary-path/is-binary-path-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import isBinaryPath = require("is-binary-path"); - -const a: boolean = isBinaryPath("src/unicorn.png"); - -const b: boolean = isBinaryPath("src/unicorn.txt"); diff --git a/types/is-binary-path/tsconfig.json b/types/is-binary-path/tsconfig.json deleted file mode 100644 index e0fd45ed1e..0000000000 --- a/types/is-binary-path/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-binary-path-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-binary-path/tslint.json b/types/is-binary-path/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-binary-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-compressed/index.d.ts b/types/is-compressed/index.d.ts deleted file mode 100644 index 617d40a51b..0000000000 --- a/types/is-compressed/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-compressed 1.0 -// Project: https://github.com/sindresorhus/is-compressed -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_compressed; -declare function is_compressed(filepath: string): boolean; diff --git a/types/is-compressed/is-compressed-tests.ts b/types/is-compressed/is-compressed-tests.ts deleted file mode 100644 index 3a97ccc350..0000000000 --- a/types/is-compressed/is-compressed-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import isCompressed = require('is-compressed'); - -isCompressed('src/unicorn.zip'); -// => true - -isCompressed('src/unicorn.txt'); -// => false diff --git a/types/is-compressed/tsconfig.json b/types/is-compressed/tsconfig.json deleted file mode 100644 index b44edb3059..0000000000 --- a/types/is-compressed/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-compressed-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-compressed/tslint.json b/types/is-compressed/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-compressed/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-docker/index.d.ts b/types/is-docker/index.d.ts deleted file mode 100644 index 12b3f6b797..0000000000 --- a/types/is-docker/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for is-docker 1.1 -// Project: https://github.com/sindresorhus/is-docker#readme -// Definitions by: Yash Kulshrestha -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.7 - -declare function isDocker(): boolean; -export = isDocker; diff --git a/types/is-docker/is-docker-tests.ts b/types/is-docker/is-docker-tests.ts deleted file mode 100644 index 00274a35e0..0000000000 --- a/types/is-docker/is-docker-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import isDocker from "is-docker"; - -isDocker(); // $ExpectType boolean diff --git a/types/is-docker/tsconfig.json b/types/is-docker/tsconfig.json deleted file mode 100644 index 4c065b1b55..0000000000 --- a/types/is-docker/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": ["es6"], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": ["../"], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true, - "esModuleInterop": true - }, - "files": ["index.d.ts", "is-docker-tests.ts"] -} diff --git a/types/is-docker/tslint.json b/types/is-docker/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-docker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-elevated/index.d.ts b/types/is-elevated/index.d.ts deleted file mode 100644 index c875437fde..0000000000 --- a/types/is-elevated/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for is-elevated 2.0 -// Project: https://github.com/sindresorhus/is-elevated#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isElevated; - -declare function isElevated(): Promise; diff --git a/types/is-elevated/is-elevated-tests.ts b/types/is-elevated/is-elevated-tests.ts deleted file mode 100644 index b2ba2f48fe..0000000000 --- a/types/is-elevated/is-elevated-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import isElevated = require('is-elevated'); - -isElevated(); // $ExpectType Promise diff --git a/types/is-elevated/tsconfig.json b/types/is-elevated/tsconfig.json deleted file mode 100644 index ad48a57318..0000000000 --- a/types/is-elevated/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-elevated-tests.ts" - ] -} diff --git a/types/is-elevated/tslint.json b/types/is-elevated/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-elevated/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-image/index.d.ts b/types/is-image/index.d.ts deleted file mode 100644 index f390206830..0000000000 --- a/types/is-image/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for is-image 2.0 -// Project: https://github.com/sindresorhus/is-image#readme -// Definitions by: Denis Frezzato -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isImage; - -declare function isImage(filepath: string): boolean; diff --git a/types/is-image/is-image-tests.ts b/types/is-image/is-image-tests.ts deleted file mode 100644 index 2cbdb0bf0c..0000000000 --- a/types/is-image/is-image-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import isImage = require('is-image'); - -const res: boolean = isImage('/path/to/img.png'); diff --git a/types/is-image/tsconfig.json b/types/is-image/tsconfig.json deleted file mode 100644 index 2d1799652d..0000000000 --- a/types/is-image/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "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-image-tests.ts"] -} diff --git a/types/is-image/tslint.json b/types/is-image/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-image/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-ip/index.d.ts b/types/is-ip/index.d.ts deleted file mode 100644 index 70d8ebb88e..0000000000 --- a/types/is-ip/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for is-ip 2.0 -// Project: https://github.com/sindresorhus/is-ip#readme -// Definitions by: coderslagoon -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** Check if input is IPv4 or IPv6. */ -declare function isIp(input: string): boolean; - -declare namespace isIp { - /** Check if input is IPv4. */ - function v4(input: string): boolean; - - /** Check if input is IPv6. */ - function v6(input: string): boolean; -} - -export = isIp; diff --git a/types/is-ip/is-ip-tests.ts b/types/is-ip/is-ip-tests.ts deleted file mode 100644 index d062f6dde9..0000000000 --- a/types/is-ip/is-ip-tests.ts +++ /dev/null @@ -1,28 +0,0 @@ -import * as isIp from "is-ip"; - -isIp("nope"); -// => false - -isIp("127.0.0.1"); -// => true - -isIp("0.0.0.0"); -// => true - -isIp("127.0.0.256"); -// => false - -isIp.v4("127.0.0.1"); -// => true - -isIp.v4("1:2:3:4:5:6:7:8"); -// => false - -isIp.v6("1:2:3:4:5:6:7:8"); -// => true - -isIp.v6("::"); -// => true - -isIp.v6("127.0.0.1"); -// => false diff --git a/types/is-ip/tsconfig.json b/types/is-ip/tsconfig.json deleted file mode 100644 index ea49885cbb..0000000000 --- a/types/is-ip/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-ip-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-ip/tslint.json b/types/is-ip/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-ip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-obj/index.d.ts b/types/is-obj/index.d.ts deleted file mode 100644 index 4df97e0660..0000000000 --- a/types/is-obj/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for is-obj 1.0 -// Project: https://github.com/sindresorhus/is-obj#readme -// Definitions by: Emily Marigold Klassen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = isObj; - -declare function isObj(x: any): x is object; diff --git a/types/is-obj/is-obj-tests.ts b/types/is-obj/is-obj-tests.ts deleted file mode 100644 index 1fdf19cbf9..0000000000 --- a/types/is-obj/is-obj-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import isObj = require('is-obj'); - -isObj({foo: 'bar'}); -// => true - -isObj([1, 2, 3]); -// => true - -isObj('foo'); -// => false diff --git a/types/is-obj/tsconfig.json b/types/is-obj/tsconfig.json deleted file mode 100644 index 0a22d83578..0000000000 --- a/types/is-obj/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-obj-tests.ts" - ] -} diff --git a/types/is-obj/tslint.json b/types/is-obj/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-obj/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-path-cwd/index.d.ts b/types/is-path-cwd/index.d.ts deleted file mode 100644 index 468f06dbc6..0000000000 --- a/types/is-path-cwd/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-path-cwd 1.0 -// Project: https://github.com/sindresorhus/is-path-cwd -// Definitions by: Daniel Rosenwasser -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function isPathCwd(path: string): boolean; -export = isPathCwd; diff --git a/types/is-path-cwd/is-path-cwd-tests.ts b/types/is-path-cwd/is-path-cwd-tests.ts deleted file mode 100644 index 51405530ef..0000000000 --- a/types/is-path-cwd/is-path-cwd-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import isPathCwd = require("is-path-cwd"); - -isPathCwd("unicorn"); diff --git a/types/is-path-cwd/tsconfig.json b/types/is-path-cwd/tsconfig.json deleted file mode 100644 index 6f5a83c33d..0000000000 --- a/types/is-path-cwd/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-path-cwd-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-path-cwd/tslint.json b/types/is-path-cwd/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-path-cwd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-path-in-cwd/index.d.ts b/types/is-path-in-cwd/index.d.ts deleted file mode 100644 index ebf748a38e..0000000000 --- a/types/is-path-in-cwd/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-path-in-cwd 1.0 -// Project: https://github.com/sindresorhus/is-path-in-cwd -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_path_in_cwd; -declare function is_path_in_cwd(str: string): boolean; diff --git a/types/is-path-in-cwd/tsconfig.json b/types/is-path-in-cwd/tsconfig.json deleted file mode 100644 index abf333c6bf..0000000000 --- a/types/is-path-in-cwd/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts" - ] -} \ No newline at end of file diff --git a/types/is-path-in-cwd/tslint.json b/types/is-path-in-cwd/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-path-in-cwd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-plain-obj/index.d.ts b/types/is-plain-obj/index.d.ts deleted file mode 100644 index 89b5b5aae5..0000000000 --- a/types/is-plain-obj/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for is-plain-obj 1.1 -// Project: https://github.com/sindresorhus/is-plain-obj -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isPlainObj; - -declare function isPlainObj(input: any): boolean; diff --git a/types/is-plain-obj/is-plain-obj-tests.ts b/types/is-plain-obj/is-plain-obj-tests.ts deleted file mode 100644 index 15b402b8f5..0000000000 --- a/types/is-plain-obj/is-plain-obj-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import isPlainObj = require('is-plain-obj'); - -isPlainObj({ foo: 'bar' }); // $ExpectType boolean diff --git a/types/is-plain-obj/tsconfig.json b/types/is-plain-obj/tsconfig.json deleted file mode 100644 index 43671920dd..0000000000 --- a/types/is-plain-obj/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-plain-obj-tests.ts" - ] -} diff --git a/types/is-plain-obj/tslint.json b/types/is-plain-obj/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-plain-obj/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-png/index.d.ts b/types/is-png/index.d.ts deleted file mode 100644 index c2c74bab6d..0000000000 --- a/types/is-png/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for is-png 1.1 -// Project: https://github.com/sindresorhus/is-png#readme -// Definitions by: James Wild -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -/** - * Check whether a buffer contains a PNG image. - * @remarks This only performs a header check, and the buffer may not parse as a PNG file. - * @param buffer The buffer to check. - * @returns Whether the given buffer contains a PNG image. - */ -declare function isPng(buffer: Uint8Array | Buffer): boolean; - -export = isPng; diff --git a/types/is-png/is-png-tests.ts b/types/is-png/is-png-tests.ts deleted file mode 100644 index 263560f855..0000000000 --- a/types/is-png/is-png-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import isPng = require("is-png"); - -const uint8Array = new Uint8Array(0); -isPng(uint8Array); // $ExpectType boolean - -const buffer = Buffer.from(uint8Array); -isPng(buffer); // $ExpectType boolean diff --git a/types/is-png/tsconfig.json b/types/is-png/tsconfig.json deleted file mode 100644 index 0885bb6abe..0000000000 --- a/types/is-png/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-png-tests.ts" - ] -} diff --git a/types/is-png/tslint.json b/types/is-png/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-png/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-reachable/index.d.ts b/types/is-reachable/index.d.ts deleted file mode 100644 index 6e2ea2d62f..0000000000 --- a/types/is-reachable/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// Type definitions for is-reachable 3.0 -// Project: https://github.com/sindresorhus/is-reachable#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isReachable; - -/** - * Check if servers are reachable. - * - * The Node.js version will do a TCP handshake with the target's port. It attempts to detect cases where a router - * redirects the request to itself. - * - * The browser version is limited by the fact that browsers cannot connect to arbitrary ports. It only supports - * HTTP and HTTPS and the check relies on the `/favicon.ico` path being present. - * - * @param targets One or more targets to check. Can either be a full [URL](https://nodejs.org/api/url.html) - * like `https://hostname`, `hostname:port` or just `hostname`. When the protocol is missing from a target - * `http` is assumed. - * - * [Well-known protocols](http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml) - * are supported (e.g. `ftp://`, `mysql://`, `redis://` and more). - * - * @returns A `Promise` for a `boolean` which is `true` if any of the `targets` are reachable. - */ -declare function isReachable( - targets: string | string[], - options?: isReachable.Options -): Promise; - -declare namespace isReachable { - interface Options { - /** - * Timeout in milliseconds after which a request is considered failed. - * @default 5000 - */ - timeout?: number; - } -} diff --git a/types/is-reachable/is-reachable-tests.ts b/types/is-reachable/is-reachable-tests.ts deleted file mode 100644 index d497d004f2..0000000000 --- a/types/is-reachable/is-reachable-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import isReachable = require('is-reachable'); - -isReachable('sindresorhus.com'); // $ExpectType Promise -isReachable('google.com:80', { timeout: 10 }); // $ExpectType Promise diff --git a/types/is-reachable/tsconfig.json b/types/is-reachable/tsconfig.json deleted file mode 100644 index c30236ebd5..0000000000 --- a/types/is-reachable/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-reachable-tests.ts" - ] -} diff --git a/types/is-reachable/tslint.json b/types/is-reachable/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-reachable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-regexp/index.d.ts b/types/is-regexp/index.d.ts deleted file mode 100644 index a89562cf16..0000000000 --- a/types/is-regexp/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for is-regexp 2.0 -// Project: https://github.com/sindresorhus/is-regexp#readme -// Definitions by: Emily Marigold Klassen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = isRegexp; - -declare function isRegexp(input: any): input is RegExp; diff --git a/types/is-regexp/is-regexp-tests.ts b/types/is-regexp/is-regexp-tests.ts deleted file mode 100644 index c5da5665dd..0000000000 --- a/types/is-regexp/is-regexp-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import isRegexp = require('is-regexp'); - -isRegexp('unicorn'); -// => false - -isRegexp(/unicorn/); -// => true - -isRegexp(new RegExp('unicorn')); -// => true diff --git a/types/is-regexp/tsconfig.json b/types/is-regexp/tsconfig.json deleted file mode 100644 index 1ae59c1f8a..0000000000 --- a/types/is-regexp/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-regexp-tests.ts" - ] -} diff --git a/types/is-regexp/tslint.json b/types/is-regexp/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-regexp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-root-path/index.d.ts b/types/is-root-path/index.d.ts deleted file mode 100644 index 00266378ce..0000000000 --- a/types/is-root-path/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-root-path 1.0 -// Project: https://github.com/sindresorhus/is-root-path#readme -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_root_path; -declare function is_root_path(pth: string): boolean; diff --git a/types/is-root-path/is-root-path-tests.ts b/types/is-root-path/is-root-path-tests.ts deleted file mode 100644 index ec5256ebaf..0000000000 --- a/types/is-root-path/is-root-path-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import isRootPath = require('is-root-path'); - -isRootPath('/'); -// => true - -isRootPath('/Users'); -// => false diff --git a/types/is-root-path/tsconfig.json b/types/is-root-path/tsconfig.json deleted file mode 100644 index 28d7f23893..0000000000 --- a/types/is-root-path/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-root-path-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-root-path/tslint.json b/types/is-root-path/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-root-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-root/index.d.ts b/types/is-root/index.d.ts deleted file mode 100644 index af91c74ff2..0000000000 --- a/types/is-root/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-root 1.0 -// Project: https://github.com/sindresorhus/is-root -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_root; -declare function is_root(): boolean; diff --git a/types/is-root/is-root-tests.ts b/types/is-root/is-root-tests.ts deleted file mode 100644 index 99be761d74..0000000000 --- a/types/is-root/is-root-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -// index.js -import isRoot = require('is-root'); - -isRoot(); -// => true diff --git a/types/is-root/tsconfig.json b/types/is-root/tsconfig.json deleted file mode 100644 index a92ff73369..0000000000 --- a/types/is-root/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-root-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-root/tslint.json b/types/is-root/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-root/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-stream/index.d.ts b/types/is-stream/index.d.ts deleted file mode 100644 index 0c24d084d9..0000000000 --- a/types/is-stream/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for is-stream 1.1 -// Project: https://github.com/sindresorhus/is-stream#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// -import * as stream from "stream"; - -export = isStream; - -declare function isStream(maybeStream: any): maybeStream is stream.Stream; - -declare namespace isStream { - function writable(maybeWritable: any): maybeWritable is stream.Writable; - function readable(maybeReadable: any): maybeReadable is stream.Readable; - function duplex(maybeDuplex: any): maybeDuplex is stream.Duplex; - function transform(maybeTransform: any): maybeTransform is stream.Transform; -} diff --git a/types/is-stream/is-stream-tests.ts b/types/is-stream/is-stream-tests.ts deleted file mode 100644 index 9d9eb315b4..0000000000 --- a/types/is-stream/is-stream-tests.ts +++ /dev/null @@ -1,24 +0,0 @@ -import isStream = require('is-stream'); -import * as stream from 'stream'; - -const anyStream: any = new stream.Stream(); - -if (isStream(anyStream)) { - const justStream: stream.Stream = anyStream; -} - -if (isStream.writable(anyStream)) { - const writableStream: stream.Writable = anyStream; -} - -if (isStream.readable(anyStream)) { - const readableStream: stream.Readable = anyStream; -} - -if (isStream.duplex(anyStream)) { - const duplexStream: stream.Duplex = anyStream; -} - -if (isStream.transform(anyStream)) { - const transformStream: stream.Transform = anyStream; -} diff --git a/types/is-stream/tsconfig.json b/types/is-stream/tsconfig.json deleted file mode 100644 index 061e555f72..0000000000 --- a/types/is-stream/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-stream-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-stream/tslint.json b/types/is-stream/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-text-path/index.d.ts b/types/is-text-path/index.d.ts deleted file mode 100644 index 997b94ab7d..0000000000 --- a/types/is-text-path/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-text-path 1.0 -// Project: https://github.com/sindresorhus/is-text-path -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_text_path; -declare function is_text_path(filepath: string): boolean; diff --git a/types/is-text-path/is-text-path-tests.ts b/types/is-text-path/is-text-path-tests.ts deleted file mode 100644 index 378614cfbe..0000000000 --- a/types/is-text-path/is-text-path-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import isTextPath = require('is-text-path'); - -isTextPath('src/unicorn.txt'); -// => true - -isTextPath('src/unicorn.png'); -// => false diff --git a/types/is-text-path/tsconfig.json b/types/is-text-path/tsconfig.json deleted file mode 100644 index e6587abf96..0000000000 --- a/types/is-text-path/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-text-path-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-text-path/tslint.json b/types/is-text-path/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-text-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-url-superb/index.d.ts b/types/is-url-superb/index.d.ts deleted file mode 100644 index 9369edc65e..0000000000 --- a/types/is-url-superb/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// 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 deleted file mode 100644 index c804fc1b34..0000000000 --- a/types/is-url-superb/is-url-superb-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 3450e58a06..0000000000 --- a/types/is-url-superb/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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-url-superb-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-url-superb/tslint.json b/types/is-url-superb/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-url-superb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/issue-regex/index.d.ts b/types/issue-regex/index.d.ts deleted file mode 100644 index 110e6b06af..0000000000 --- a/types/issue-regex/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for issue-regex 2.0 -// Project: https://github.com/sindresorhus/issue-regex#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = issueRegex; - -declare function issueRegex(): RegExp; diff --git a/types/issue-regex/issue-regex-tests.ts b/types/issue-regex/issue-regex-tests.ts deleted file mode 100644 index 7eb4b352ff..0000000000 --- a/types/issue-regex/issue-regex-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import issueRegex = require('issue-regex'); - -// $ExpectType RegExp -issueRegex(); -'Fixes #143 and avajs/ava#1023'.match(issueRegex()); diff --git a/types/issue-regex/tsconfig.json b/types/issue-regex/tsconfig.json deleted file mode 100644 index 46dd7f033b..0000000000 --- a/types/issue-regex/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "issue-regex-tests.ts" - ] -} diff --git a/types/issue-regex/tslint.json b/types/issue-regex/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/issue-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/js-types/index.d.ts b/types/js-types/index.d.ts deleted file mode 100644 index 756680fd04..0000000000 --- a/types/js-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for js-types 2.0 -// Project: https://github.com/sindresorhus/js-types#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = jsTypes; - -declare const jsTypes: string[]; diff --git a/types/js-types/js-types-tests.ts b/types/js-types/js-types-tests.ts deleted file mode 100644 index b7e5a4fe8b..0000000000 --- a/types/js-types/js-types-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import jsTypes = require('js-types'); -import jsTypesJson = require('js-types/js-types.json'); - -jsTypes; // $ExpectType string[] -jsTypesJson; // $ExpectType string[] diff --git a/types/js-types/js-types.json.d.ts b/types/js-types/js-types.json.d.ts deleted file mode 100644 index 83565f43d1..0000000000 --- a/types/js-types/js-types.json.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export = jsTypes; - -declare const jsTypes: string[]; diff --git a/types/js-types/tsconfig.json b/types/js-types/tsconfig.json deleted file mode 100644 index 1b81a82e27..0000000000 --- a/types/js-types/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "js-types.json.d.ts", - "js-types-tests.ts" - ] -} diff --git a/types/js-types/tslint.json b/types/js-types/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/js-types/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/known/index.d.ts b/types/known/index.d.ts deleted file mode 100644 index 1ac8005894..0000000000 --- a/types/known/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for known 2.0 -// Project: https://github.com/sindresorhus/known#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = known; - -declare function known(object: T): T; diff --git a/types/known/known-tests.ts b/types/known/known-tests.ts deleted file mode 100644 index f07d8ec577..0000000000 --- a/types/known/known-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import known = require('known'); - -const obj = { foo: true }; - -const obj2 = known(obj); - -obj2.foo; -obj2.bar; // $ExpectError diff --git a/types/known/tsconfig.json b/types/known/tsconfig.json deleted file mode 100644 index 8c29c6b462..0000000000 --- a/types/known/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "known-tests.ts" - ] -} diff --git a/types/known/tslint.json b/types/known/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/known/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/latest-semver/index.d.ts b/types/latest-semver/index.d.ts deleted file mode 100644 index 761a487b88..0000000000 --- a/types/latest-semver/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for latest-semver 1.0 -// Project: https://github.com/sindresorhus/latest-semver#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = latestSemver; - -declare function latestSemver(versions: string[]): string | undefined; diff --git a/types/latest-semver/latest-semver-tests.ts b/types/latest-semver/latest-semver-tests.ts deleted file mode 100644 index ec8312e467..0000000000 --- a/types/latest-semver/latest-semver-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import latestSemver = require('latest-semver'); - -// $ExpectType string | undefined -latestSemver(['v1.8.0-alpha.1', 'v1.3.16', 'v1.7.0', 'v1.6.9']); diff --git a/types/latest-semver/tsconfig.json b/types/latest-semver/tsconfig.json deleted file mode 100644 index 54f1df51e2..0000000000 --- a/types/latest-semver/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "latest-semver-tests.ts" - ] -} diff --git a/types/latest-semver/tslint.json b/types/latest-semver/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/latest-semver/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/lazy-value/index.d.ts b/types/lazy-value/index.d.ts deleted file mode 100644 index 4f9ff7b564..0000000000 --- a/types/lazy-value/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for lazy-value 1.0 -// Project: https://github.com/sindresorhus/lazy-value -// Definitions by: Ika -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Create a [lazily evaluated](https://en.wikipedia.org/wiki/Lazy_evaluation) value. - * - * Useful when a value is expensive to generate, so you want to delay the computation until the value is needed. - * For example, improving startup performance by deferring nonessential operations. - * - * @param fn Expected to return a value. - */ -declare function lazyValue any>(fn: T): T; -export = lazyValue; diff --git a/types/lazy-value/lazy-value-tests.ts b/types/lazy-value/lazy-value-tests.ts deleted file mode 100644 index 46413ff915..0000000000 --- a/types/lazy-value/lazy-value-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import lazyValue = require("lazy-value"); - -declare function expensiveComputation(): string; -declare function doSomething(x: string): void; - -const val = lazyValue(expensiveComputation); - -doSomething(val()); diff --git a/types/lazy-value/tsconfig.json b/types/lazy-value/tsconfig.json deleted file mode 100644 index caca4e6292..0000000000 --- a/types/lazy-value/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ "../"], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "lazy-value-tests.ts" - ] -} diff --git a/types/lazy-value/tslint.json b/types/lazy-value/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/lazy-value/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/leap-year/index.d.ts b/types/leap-year/index.d.ts deleted file mode 100644 index a3089b5b4b..0000000000 --- a/types/leap-year/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for leap-year 2.0 -// Project: https://github.com/sindresorhus/leap-year#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = leapYear; - -declare function leapYear(year?: number | Date): boolean; diff --git a/types/leap-year/leap-year-tests.ts b/types/leap-year/leap-year-tests.ts deleted file mode 100644 index 88aa2ccff4..0000000000 --- a/types/leap-year/leap-year-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import leapYear = require('leap-year'); - -// $ExpectType boolean -leapYear(); -// $ExpectType boolean -leapYear(2016); -// $ExpectType boolean -leapYear(new Date()); diff --git a/types/leap-year/tsconfig.json b/types/leap-year/tsconfig.json deleted file mode 100644 index 7a29e8116a..0000000000 --- a/types/leap-year/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "leap-year-tests.ts" - ] -} diff --git a/types/leap-year/tslint.json b/types/leap-year/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/leap-year/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/linkify-issues/index.d.ts b/types/linkify-issues/index.d.ts deleted file mode 100644 index 4c37a8f87a..0000000000 --- a/types/linkify-issues/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Type definitions for linkify-issues 1.3 -// Project: https://github.com/sindresorhus/linkify-issues#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = linkifyIssues; - -declare function linkifyIssues(input: string, options?: linkifyIssues.TypeStringOptions): string; -declare function linkifyIssues( - input: string, - options: linkifyIssues.TypeDomOptions -): DocumentFragment; - -declare namespace linkifyIssues { - interface BaseOptions { - user: string; - repo: string; - attributes?: { [attrName: string]: string | number | boolean | Array }; - baseUrl?: string; - } - - interface TypeStringOptions extends BaseOptions { - type?: 'string'; - } - - interface TypeDomOptions extends BaseOptions { - type: 'dom'; - } -} diff --git a/types/linkify-issues/linkify-issues-tests.ts b/types/linkify-issues/linkify-issues-tests.ts deleted file mode 100644 index cdf2dd8be1..0000000000 --- a/types/linkify-issues/linkify-issues-tests.ts +++ /dev/null @@ -1,36 +0,0 @@ -import linkifyIssues = require('linkify-issues'); - -// $ExpectType string -linkifyIssues('Fixes #143 and avajs/ava#1023', { - user: 'sindresorhus', - repo: 'dofle', -}); -// $ExpectType string -linkifyIssues('Fixes #143 and avajs/ava#1023', { - user: 'sindresorhus', - repo: 'dofle', - attributes: { - class: 'unicorn', - multiple: ['a', 'b'], - number: 1, - exclude: false, - include: true, - }, -}); -// $ExpectType string -linkifyIssues('Fixes #143 and avajs/ava#1023', { - user: 'sindresorhus', - repo: 'dofle', - type: 'string', -}); - -const fragment = linkifyIssues('Fixes #143 and avajs/ava#1023', { - user: 'sindresorhus', - repo: 'dofle', - type: 'dom', -}); - -// $ExpectType DocumentFragment -fragment; - -document.body.appendChild(fragment); diff --git a/types/linkify-issues/tsconfig.json b/types/linkify-issues/tsconfig.json deleted file mode 100644 index 459076c4c0..0000000000 --- a/types/linkify-issues/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "linkify-issues-tests.ts" - ] -} diff --git a/types/linkify-issues/tslint.json b/types/linkify-issues/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/linkify-issues/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/linkify-urls/index.d.ts b/types/linkify-urls/index.d.ts deleted file mode 100644 index cfc31e1527..0000000000 --- a/types/linkify-urls/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Type definitions for linkify-urls 3.0 -// Project: https://github.com/sindresorhus/linkify-urls#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = linkifyUrls; - -declare function linkifyUrls(input: string, options?: linkifyUrls.TypeStringOptions): string; -declare function linkifyUrls(input: string, options: linkifyUrls.TypeDomOptions): DocumentFragment; - -declare namespace linkifyUrls { - interface BaseOptions { - attributes?: { [attrName: string]: string | number | boolean | Array }; - value?: string | ((url: string) => string); - } - - interface TypeStringOptions extends BaseOptions { - type?: 'string'; - } - - interface TypeDomOptions extends BaseOptions { - type: 'dom'; - } -} diff --git a/types/linkify-urls/linkify-urls-tests.ts b/types/linkify-urls/linkify-urls-tests.ts deleted file mode 100644 index 10e9c926de..0000000000 --- a/types/linkify-urls/linkify-urls-tests.ts +++ /dev/null @@ -1,35 +0,0 @@ -import linkifyUrls = require('linkify-urls'); - -// $ExpectType string -linkifyUrls('See https://sindresorhus.com', { - attributes: { - class: 'unicorn', - one: 1, - foo: true, - multiple: ['a', 'b'], - }, -}); -// $ExpectType string -linkifyUrls('See https://sindresorhus.com', { - value: 'foo', -}); -// $ExpectType string -linkifyUrls('See https://sindresorhus.com/foo', { - value: url => new URL(url).pathname, -}); -// $ExpectType string -linkifyUrls('See https://sindresorhus.com/foo', { - type: 'string', -}); - -const fragment = linkifyUrls('See https://sindresorhus.com', { - type: 'dom', - attributes: { - class: 'unicorn', - }, -}); - -// $ExpectType DocumentFragment -fragment; - -document.body.appendChild(fragment); diff --git a/types/linkify-urls/tsconfig.json b/types/linkify-urls/tsconfig.json deleted file mode 100644 index f498739dda..0000000000 --- a/types/linkify-urls/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "linkify-urls-tests.ts" - ] -} diff --git a/types/linkify-urls/tslint.json b/types/linkify-urls/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/linkify-urls/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/lock-system/index.d.ts b/types/lock-system/index.d.ts deleted file mode 100644 index 5498c500c0..0000000000 --- a/types/lock-system/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for lock-system 1.3 -// Project: https://github.com/sindresorhus/lock-system#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = lockSystem; - -declare function lockSystem(): void; diff --git a/types/lock-system/lock-system-tests.ts b/types/lock-system/lock-system-tests.ts deleted file mode 100644 index 6677bae0a9..0000000000 --- a/types/lock-system/lock-system-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import lockSystem = require('lock-system'); - -lockSystem(); diff --git a/types/lock-system/tsconfig.json b/types/lock-system/tsconfig.json deleted file mode 100644 index 0b7c667951..0000000000 --- a/types/lock-system/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "lock-system-tests.ts" - ] -} diff --git a/types/lock-system/tslint.json b/types/lock-system/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/lock-system/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/log-symbols/index.d.ts b/types/log-symbols/index.d.ts deleted file mode 100644 index 50b058e7d9..0000000000 --- a/types/log-symbols/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for log-symbols 2.0 -// Project: https://github.com/sindresorhus/log-symbols#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export const info: string; -export const success: string; -export const warning: string; -export const error: string; diff --git a/types/log-symbols/log-symbols-tests.ts b/types/log-symbols/log-symbols-tests.ts deleted file mode 100644 index aa47937cdf..0000000000 --- a/types/log-symbols/log-symbols-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// - -import * as logSymbols from 'log-symbols'; - -console.log(logSymbols.success, 'Finished successfully!'); - -let str: string; - -str = logSymbols.info; -str = logSymbols.success; -str = logSymbols.warning; -str = logSymbols.error; diff --git a/types/log-symbols/tsconfig.json b/types/log-symbols/tsconfig.json deleted file mode 100644 index 8677d194b0..0000000000 --- a/types/log-symbols/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "log-symbols-tests.ts" - ] -} \ No newline at end of file diff --git a/types/log-symbols/tslint.json b/types/log-symbols/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/log-symbols/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/resolve-pkg/index.d.ts b/types/resolve-pkg/index.d.ts deleted file mode 100644 index 61d9fd3152..0000000000 --- a/types/resolve-pkg/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for resolve-pkg 1.0 -// Project: https://github.com/sindresorhus/resolve-pkg -// Definitions by: Meno Abels -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = resolvePkg; - -declare function resolvePkg(moduleId: string, options?: resolvePkg.Options): string; - -declare namespace resolvePkg { - interface Options { - cwd?: boolean; - } -} diff --git a/types/resolve-pkg/resolve-pkg-tests.ts b/types/resolve-pkg/resolve-pkg-tests.ts deleted file mode 100644 index e4540e2ee9..0000000000 --- a/types/resolve-pkg/resolve-pkg-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import rpkg = require('resolve-pkg'); -import resolvePkg = require('resolve-pkg'); - -// $ExpectType string -rpkg('hello'); -rpkg('hello', {}); -rpkg('hello', { cwd: true }); - -const resolvePkgOpts: resolvePkg.Options = {}; diff --git a/types/resolve-pkg/tsconfig.json b/types/resolve-pkg/tsconfig.json deleted file mode 100644 index 04c11fa02f..0000000000 --- a/types/resolve-pkg/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "resolve-pkg-tests.ts" - ] -} diff --git a/types/resolve-pkg/tslint.json b/types/resolve-pkg/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/resolve-pkg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/strip-indent/index.d.ts b/types/strip-indent/index.d.ts deleted file mode 100644 index 33348bbb22..0000000000 --- a/types/strip-indent/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for strip-indent 2.0 -// Project: https://github.com/sindresorhus/strip-indent#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = stripIndent; - -declare function stripIndent(str: string): string; diff --git a/types/strip-indent/strip-indent-tests.ts b/types/strip-indent/strip-indent-tests.ts deleted file mode 100644 index b8c6439be4..0000000000 --- a/types/strip-indent/strip-indent-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import stripIndent = require('strip-indent'); - -const str = '\tunicorn\n\t\tcake'; -// $ExpectType string -stripIndent(str); diff --git a/types/strip-indent/tsconfig.json b/types/strip-indent/tsconfig.json deleted file mode 100644 index ecaa642b92..0000000000 --- a/types/strip-indent/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "strip-indent-tests.ts" - ] -} diff --git a/types/strip-indent/tslint.json b/types/strip-indent/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/strip-indent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sudo-block/index.d.ts b/types/sudo-block/index.d.ts deleted file mode 100644 index a4a63b61ef..0000000000 --- a/types/sudo-block/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for sudo-block 1.2 -// Project: https://github.com/sindresorhus/sudo-block -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = sudoBlock; - -declare function sudoBlock(message?: string): void; diff --git a/types/sudo-block/sudo-block-tests.ts b/types/sudo-block/sudo-block-tests.ts deleted file mode 100644 index d9e4eb3039..0000000000 --- a/types/sudo-block/sudo-block-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import sudoBlock = require('sudo-block'); - -sudoBlock(); -sudoBlock('hi'); diff --git a/types/sudo-block/tsconfig.json b/types/sudo-block/tsconfig.json deleted file mode 100644 index f7a67ab9d9..0000000000 --- a/types/sudo-block/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sudo-block-tests.ts" - ] -} \ No newline at end of file diff --git a/types/sudo-block/tslint.json b/types/sudo-block/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sudo-block/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/tempy/index.d.ts b/types/tempy/index.d.ts deleted file mode 100644 index 15c1664409..0000000000 --- a/types/tempy/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Type definitions for tempy 0.2 -// Project: https://github.com/sindresorhus/tempy#readme -// Definitions by: Douglas Duteil , Gustav Bylund -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function directory(): string; -export function file( - options?: { extension: string } | { name: string } -): string; -export const root: string; diff --git a/types/tempy/tempy-tests.ts b/types/tempy/tempy-tests.ts deleted file mode 100644 index 0af9467bb2..0000000000 --- a/types/tempy/tempy-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { directory, file, root } from "tempy"; - -// - -const tempDir2: string = directory(); - -const tempFile: string = file(); -const pngFile: string = file({ extension: "png" }); - -const fileWithName: string = file({ name: "afile.txt" }); - -const tmpRoot: string = root; diff --git a/types/tempy/tsconfig.json b/types/tempy/tsconfig.json deleted file mode 100644 index d6216873d6..0000000000 --- a/types/tempy/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "tempy-tests.ts" - ] -} \ No newline at end of file diff --git a/types/tempy/tslint.json b/types/tempy/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/tempy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/to-semver/index.d.ts b/types/to-semver/index.d.ts deleted file mode 100644 index 813c77378d..0000000000 --- a/types/to-semver/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for to-semver 1.1 -// Project: https://github.com/sindresorhus/to-semver#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = toSemver; - -/** - * Get an array of valid, sorted, and cleaned [semver](http://semver.org/) versions from an array of strings. - */ -declare function toSemver(versions: string[], options?: toSemver.Options): string[]; - -declare namespace toSemver { - interface Options { - /** - * Include prereleases, like `1.2.3-alpha.3`. - * @default true - */ - includePrereleases?: boolean; - /** - * Clean versions. For example `v1.3.0` → `1.3.0`. - * @default true - */ - clean?: boolean; - } -} diff --git a/types/to-semver/to-semver-tests.ts b/types/to-semver/to-semver-tests.ts deleted file mode 100644 index 5599c594d1..0000000000 --- a/types/to-semver/to-semver-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import toSemver = require('to-semver'); - -toSemver(['v1.3.16', 'v1.7.0', 'test', 'v1.6.9']); // $ExpectType string[] diff --git a/types/to-semver/tsconfig.json b/types/to-semver/tsconfig.json deleted file mode 100644 index 0584eb2068..0000000000 --- a/types/to-semver/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "to-semver-tests.ts" - ] -} diff --git a/types/to-semver/tslint.json b/types/to-semver/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/to-semver/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/url-regex/index.d.ts b/types/url-regex/index.d.ts deleted file mode 100644 index 58f3793baa..0000000000 --- a/types/url-regex/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for url-regex 4.1 -// Project: https://github.com/kevva/url-regex -// Definitions by: Daniel Perez Alvarez -// sosukesuzuki -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** Regular expression for matching URLs. */ -declare function urlRegex(options?: { - /** Only match an exact string. Useful with RegExp#test to check if a string is a URL. */ - exact?: boolean; - /** Force URLs to start with a valid protocol or www. If set to false it'll match the TLD against a list of valid TLDs(https://github.com/stephenmathieson/node-tlds). */ - strict?: boolean; -}): RegExp; - -export = urlRegex; diff --git a/types/url-regex/tsconfig.json b/types/url-regex/tsconfig.json deleted file mode 100644 index e78f1f0e5d..0000000000 --- a/types/url-regex/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "url-regex-tests.ts" - ] -} \ No newline at end of file diff --git a/types/url-regex/tslint.json b/types/url-regex/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/url-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/url-regex/url-regex-tests.ts b/types/url-regex/url-regex-tests.ts deleted file mode 100644 index de62d9a796..0000000000 --- a/types/url-regex/url-regex-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import urlRegex = require('url-regex'); - -urlRegex().test('https://github.com foo bar'); - -urlRegex().test('www.github.com foo bar'); - -urlRegex({exact: true}).test('https://github.com foo bar'); - -urlRegex({exact: true}).test('https://github.com'); - -urlRegex({exact: true, strict: false}).test('github.com'); - -'foo https://github.com bar //google.com'.match(urlRegex());