From b1a104ea4f8b2b4ef1460d5b66aa7021dd609ebe Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 12 Mar 2019 17:45:16 +0000 Subject: [PATCH] Deprecate types for packages that provide their own types (#33755) * Remove upstreamed types * Remove more packages --- notNeededPackages.json | 114 ++++++++++++++++++ types/boxen/boxen-tests.ts | 37 ------ types/boxen/index.d.ts | 114 ------------------ types/boxen/tsconfig.json | 23 ---- types/boxen/tslint.json | 1 - .../cacheable-request-tests.ts | 2 - .../copy-text-to-clipboard-tests.ts | 8 -- types/copy-text-to-clipboard/index.d.ts | 8 -- types/copy-text-to-clipboard/tsconfig.json | 24 ---- types/copy-text-to-clipboard/tslint.json | 6 - types/cp-file/cp-file-tests.ts | 19 --- types/cp-file/index.d.ts | 28 ----- types/cp-file/tsconfig.json | 23 ---- types/cp-file/tslint.json | 1 - types/cpy/cpy-tests.ts | 18 --- types/cpy/index.d.ts | 31 ----- types/cpy/tsconfig.json | 23 ---- types/cpy/tslint.json | 1 - types/decamelize/decamelize-tests.ts | 4 - types/decamelize/index.d.ts | 9 -- types/decamelize/tsconfig.json | 23 ---- types/decamelize/tslint.json | 1 - types/file-type/file-type-tests.ts | 8 -- types/file-type/index.d.ts | 34 ------ types/file-type/tsconfig.json | 23 ---- types/file-type/tslint.json | 1 - types/got/got-tests.ts | 5 - types/got/v8/got-tests.ts | 5 - .../humanize-string/humanize-string-tests.ts | 4 - types/humanize-string/index.d.ts | 8 -- types/humanize-string/tsconfig.json | 23 ---- types/humanize-string/tslint.json | 1 - types/image-type/image-type-tests.ts | 4 - types/image-type/index.d.ts | 12 -- types/image-type/tsconfig.json | 23 ---- types/image-type/tslint.json | 1 - types/is-svg/index.d.ts | 13 -- types/is-svg/is-svg-tests.ts | 11 -- types/is-svg/tsconfig.json | 23 ---- types/is-svg/tslint.json | 1 - types/keyv/keyv-tests.ts | 5 - types/npm-name/index.d.ts | 12 -- types/npm-name/npm-name-tests.ts | 12 -- types/npm-name/tsconfig.json | 23 ---- types/npm-name/tslint.json | 1 - types/npm-run-path/index.d.ts | 45 ------- types/npm-run-path/npm-run-path-tests.ts | 16 --- types/npm-run-path/tsconfig.json | 23 ---- types/npm-run-path/tslint.json | 1 - types/p-some/index.d.ts | 22 ---- types/p-some/p-some-tests.ts | 34 ------ types/p-some/tsconfig.json | 23 ---- types/p-some/tslint.json | 1 - types/path-key/index.d.ts | 17 --- types/path-key/path-key-tests.ts | 5 - types/path-key/tsconfig.json | 23 ---- types/path-key/tslint.json | 1 - types/ps-list/index.d.ts | 24 ---- types/ps-list/ps-list-tests.ts | 13 -- types/ps-list/tsconfig.json | 23 ---- types/ps-list/tslint.json | 1 - types/quick-lru/index.d.ts | 26 ---- types/quick-lru/quick-lru-tests.ts | 25 ---- types/quick-lru/tsconfig.json | 24 ---- types/quick-lru/tslint.json | 1 - types/quick-lru/v1/index.d.ts | 26 ---- types/quick-lru/v1/quick-lru-tests.ts | 29 ----- types/quick-lru/v1/tsconfig.json | 29 ----- types/quick-lru/v1/tslint.json | 1 - types/read-chunk/index.d.ts | 29 ----- types/read-chunk/read-chunk-tests.ts | 9 -- types/read-chunk/tsconfig.json | 23 ---- types/read-chunk/tslint.json | 79 ------------ types/sindresorhus__slugify/index.d.ts | 42 ------- .../sindresorhus__slugify-tests.ts | 29 ----- types/sindresorhus__slugify/tsconfig.json | 19 --- types/sindresorhus__slugify/tslint.json | 1 - types/time-span/index.d.ts | 18 --- types/time-span/time-span-tests.ts | 9 -- types/time-span/tsconfig.json | 23 ---- types/time-span/tslint.json | 1 - types/trash/index.d.ts | 22 ---- types/trash/trash-tests.ts | 20 --- types/trash/tsconfig.json | 24 ---- types/trash/tslint.json | 1 - 85 files changed, 114 insertions(+), 1439 deletions(-) delete mode 100644 types/boxen/boxen-tests.ts delete mode 100644 types/boxen/index.d.ts delete mode 100644 types/boxen/tsconfig.json delete mode 100644 types/boxen/tslint.json delete mode 100644 types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts delete mode 100644 types/copy-text-to-clipboard/index.d.ts delete mode 100644 types/copy-text-to-clipboard/tsconfig.json delete mode 100644 types/copy-text-to-clipboard/tslint.json delete mode 100644 types/cp-file/cp-file-tests.ts delete mode 100644 types/cp-file/index.d.ts delete mode 100644 types/cp-file/tsconfig.json delete mode 100644 types/cp-file/tslint.json delete mode 100644 types/cpy/cpy-tests.ts delete mode 100644 types/cpy/index.d.ts delete mode 100644 types/cpy/tsconfig.json delete mode 100644 types/cpy/tslint.json delete mode 100644 types/decamelize/decamelize-tests.ts delete mode 100644 types/decamelize/index.d.ts delete mode 100644 types/decamelize/tsconfig.json delete mode 100644 types/decamelize/tslint.json delete mode 100644 types/file-type/file-type-tests.ts delete mode 100644 types/file-type/index.d.ts delete mode 100644 types/file-type/tsconfig.json delete mode 100644 types/file-type/tslint.json delete mode 100644 types/humanize-string/humanize-string-tests.ts delete mode 100644 types/humanize-string/index.d.ts delete mode 100644 types/humanize-string/tsconfig.json delete mode 100644 types/humanize-string/tslint.json delete mode 100644 types/image-type/image-type-tests.ts delete mode 100644 types/image-type/index.d.ts delete mode 100644 types/image-type/tsconfig.json delete mode 100644 types/image-type/tslint.json delete mode 100644 types/is-svg/index.d.ts delete mode 100644 types/is-svg/is-svg-tests.ts delete mode 100644 types/is-svg/tsconfig.json delete mode 100644 types/is-svg/tslint.json delete mode 100644 types/npm-name/index.d.ts delete mode 100644 types/npm-name/npm-name-tests.ts delete mode 100644 types/npm-name/tsconfig.json delete mode 100644 types/npm-name/tslint.json delete mode 100644 types/npm-run-path/index.d.ts delete mode 100644 types/npm-run-path/npm-run-path-tests.ts delete mode 100644 types/npm-run-path/tsconfig.json delete mode 100644 types/npm-run-path/tslint.json delete mode 100644 types/p-some/index.d.ts delete mode 100644 types/p-some/p-some-tests.ts delete mode 100644 types/p-some/tsconfig.json delete mode 100644 types/p-some/tslint.json delete mode 100644 types/path-key/index.d.ts delete mode 100644 types/path-key/path-key-tests.ts delete mode 100644 types/path-key/tsconfig.json delete mode 100644 types/path-key/tslint.json delete mode 100644 types/ps-list/index.d.ts delete mode 100644 types/ps-list/ps-list-tests.ts delete mode 100644 types/ps-list/tsconfig.json delete mode 100644 types/ps-list/tslint.json delete mode 100644 types/quick-lru/index.d.ts delete mode 100644 types/quick-lru/quick-lru-tests.ts delete mode 100644 types/quick-lru/tsconfig.json delete mode 100644 types/quick-lru/tslint.json delete mode 100644 types/quick-lru/v1/index.d.ts delete mode 100644 types/quick-lru/v1/quick-lru-tests.ts delete mode 100644 types/quick-lru/v1/tsconfig.json delete mode 100644 types/quick-lru/v1/tslint.json delete mode 100644 types/read-chunk/index.d.ts delete mode 100644 types/read-chunk/read-chunk-tests.ts delete mode 100644 types/read-chunk/tsconfig.json delete mode 100644 types/read-chunk/tslint.json delete mode 100644 types/sindresorhus__slugify/index.d.ts delete mode 100644 types/sindresorhus__slugify/sindresorhus__slugify-tests.ts delete mode 100644 types/sindresorhus__slugify/tsconfig.json delete mode 100644 types/sindresorhus__slugify/tslint.json delete mode 100644 types/time-span/index.d.ts delete mode 100644 types/time-span/time-span-tests.ts delete mode 100644 types/time-span/tsconfig.json delete mode 100644 types/time-span/tslint.json delete mode 100644 types/trash/index.d.ts delete mode 100644 types/trash/trash-tests.ts delete mode 100644 types/trash/tsconfig.json delete mode 100644 types/trash/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index bd141916cf..1dade039df 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -198,6 +198,12 @@ "sourceRepoURL": "https://github.com/ded/bowser", "asOfVersion": "1.1.1" }, + { + "libraryName": "boxen", + "typingsPackageName": "boxen", + "sourceRepoURL": "https://github.com/sindresorhus/boxen", + "asOfVersion": "3.0.0" + }, { "libraryName": "Bugsnag Browser", "typingsPackageName": "bugsnag-js", @@ -294,6 +300,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/constant-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "copy-text-to-clipboard", + "typingsPackageName": "copy-text-to-clipboard", + "sourceRepoURL": "https://github.com/sindresorhus/copy-text-to-clipboard", + "asOfVersion": "2.0.0" + }, { "libraryName": "cordova-plugin-battery-status", "typingsPackageName": "cordova-plugin-battery-status", @@ -408,6 +420,18 @@ "sourceRepoURL": "https://github.com/jayphelps/core-decorators.js", "asOfVersion": "0.20.0" }, + { + "libraryName": "cp-file", + "typingsPackageName": "cp-file", + "sourceRepoURL": "https://github.com/sindresorhus/cp-file", + "asOfVersion": "6.1.0" + }, + { + "libraryName": "cpy", + "typingsPackageName": "cpy", + "sourceRepoURL": "https://github.com/sindresorhus/cpy", + "asOfVersion": "7.1.0" + }, { "libraryName": "cypress", "typingsPackageName": "cypress", @@ -426,6 +450,12 @@ "sourceRepoURL": "https://github.com/DataDog/dd-trace-js", "asOfVersion": "0.9.0" }, + { + "libraryName": "decamelize", + "typingsPackageName": "decamelize", + "sourceRepoURL": "https://github.com/sindresorhus/decamelize", + "asOfVersion": "3.0.0" + }, { "libraryName": "decimal.js", "typingsPackageName": "decimal.js", @@ -642,6 +672,12 @@ "sourceRepoURL": "https://github.com/taylorhakes/fecha", "asOfVersion": "2.3.1" }, + { + "libraryName": "file-type", + "typingsPackageName": "file-type", + "sourceRepoURL": "https://github.com/sindresorhus/file-type", + "asOfVersion": "10.9.0" + }, { "libraryName": "FineUploader", "typingsPackageName": "fine-uploader", @@ -786,6 +822,12 @@ "sourceRepoURL": "https://github.com/prettymuchbryce/node-http-status", "asOfVersion": "1.2.0" }, + { + "libraryName": "humanize-string", + "typingsPackageName": "humanize-string", + "sourceRepoURL": "ttps://github.com/sindresorhus/humanize-string", + "asOfVersion": "2.0.0" + }, { "libraryName": "i18next-browser-languagedetector", "typingsPackageName": "i18next-browser-languagedetector", @@ -810,6 +852,12 @@ "sourceRepoURL": "https://github.com/bpmn-io/ids", "asOfVersion": "0.2.2" }, + { + "libraryName": "image-type", + "typingsPackageName": "image-type", + "sourceRepoURL": "https://github.com/sindresorhus/image-type", + "asOfVersion": "4.0.0" + }, { "libraryName": "immutability-helper", "typingsPackageName": "immutability-helper", @@ -894,6 +942,12 @@ "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", "asOfVersion": "2.0.4" }, + { + "libraryName": "is-svg", + "typingsPackageName": "is-svg", + "sourceRepoURL": "https://github.com/sindresorhus/is-svg", + "asOfVersion": "4.0.0" + }, { "libraryName": "is-upper-case", "typingsPackageName": "is-upper-case", @@ -1200,6 +1254,18 @@ "sourceRepoURL": "https://github.com/paularmstrong/normalizr", "asOfVersion": "2.0.18" }, + { + "libraryName": "npm-name", + "typingsPackageName": "npm-name", + "sourceRepoURL": "https://github.com/sindresorhus/npm-name", + "asOfVersion": "5.2.0" + }, + { + "libraryName": "npm-run-path", + "typingsPackageName": "npm-run-path", + "sourceRepoURL": "https://github.com/sindresorhus/npm-run-path", + "asOfVersion": "3.0.0" + }, { "libraryName": "Nuka Carousel", "typingsPackageName": "nuka-carousel", @@ -1260,6 +1326,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/p-queue", "asOfVersion": "3.2.1" }, + { + "libraryName": "p-some", + "typingsPackageName": "p-some", + "sourceRepoURL": "https://github.com/sindresorhus/p-some", + "asOfVersion": "4.0.0" + }, { "libraryName": "p-throttle", "typingsPackageName": "p-throttle", @@ -1290,6 +1362,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/path-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "path-key", + "typingsPackageName": "path-key", + "sourceRepoURL": "https://github.com/sindresorhus/path-key", + "asOfVersion": "3.0.0" + }, { "libraryName": "path-to-regexp", "typingsPackageName": "path-to-regexp", @@ -1380,6 +1458,12 @@ "sourceRepoURL": "https://github.com/angular/protractor", "asOfVersion": "4.0.0" }, + { + "libraryName": "ps-list", + "typingsPackageName": "ps-list", + "sourceRepoURL": "https://github.com/sindresorhus/ps-list", + "asOfVersion": "6.2.0" + }, { "libraryName": "qiniu", "typingsPackageName": "qiniu", @@ -1398,6 +1482,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/query-string", "asOfVersion": "6.3.0" }, + { + "libraryName": "quick-lru", + "typingsPackageName": "quick-lru", + "sourceRepoURL": "https://github.com/sindresorhus/quick-lru", + "asOfVersion": "3.0.0" + }, { "libraryName": "Raven JS", "typingsPackageName": "raven-js", @@ -1524,6 +1614,12 @@ "sourceRepoURL": "https://github.com/tanem/react-svg", "asOfVersion": "5.0.0" }, + { + "libraryName": "read-chunk", + "typingsPackageName": "read-chunk", + "sourceRepoURL": "https://github.com/sindresorhus/read-chunk", + "asOfVersion": "3.1.0" + }, { "libraryName": "realm", "typingsPackageName": "realm", @@ -1698,6 +1794,12 @@ "sourceRepoURL": "https://github.com/zeh/simplesignal", "asOfVersion": "1.0.0" }, + { + "libraryName": "@sindresorhus/slugify", + "typingsPackageName": "sindresorhus__slugify", + "sourceRepoURL": "https://github.com/sindresorhus/slugify", + "asOfVersion": "0.9.0" + }, { "libraryName": "sip.js", "typingsPackageName": "sip.js", @@ -1824,6 +1926,12 @@ "sourceRepoURL": "https://github.com/terser-js/terser", "asOfVersion": "3.12.0" }, + { + "libraryName": "time-span", + "typingsPackageName": "time-span", + "sourceRepoURL": "https://github.com/sindresorhus/time-span", + "asOfVersion": "3.0.0" + }, { "libraryName": "timezonecomplete", "typingsPackageName": "timezonecomplete", @@ -1836,6 +1944,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/title-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "trash", + "typingsPackageName": "trash", + "sourceRepoURL": "https://github.com/sindresorhus/trash", + "asOfVersion": "5.0.0" + }, { "libraryName": "TsMonad", "typingsPackageName": "tsmonad", diff --git a/types/boxen/boxen-tests.ts b/types/boxen/boxen-tests.ts deleted file mode 100644 index 303e5dd7fa..0000000000 --- a/types/boxen/boxen-tests.ts +++ /dev/null @@ -1,37 +0,0 @@ -import boxen = require('boxen'); - -boxen('unicorn'); // $ExpectType string -boxen('unicorn', { borderColor: 'black' }); // $ExpectType string -boxen('unicorn', { borderStyle: 'double' }); // $ExpectType string -boxen('unicorn', { borderStyle: 'foo' }); // $ExpectError -// $ExpectType string -boxen('unicorn', { - borderStyle: { - topLeft: '+', - topRight: '+', - bottomLeft: '+', - bottomRight: '+', - horizontal: '-', - vertical: '|', - }, -}); -boxen('unicorn', { dimBorder: true }); // $ExpectType string -boxen('unicorn', { padding: 1 }); // $ExpectType string -boxen('unicorn', { padding: { top: 1 } }); // $ExpectType string -boxen('unicorn', { padding: { right: 1 } }); // $ExpectType string -boxen('unicorn', { padding: { bottom: 1 } }); // $ExpectType string -boxen('unicorn', { padding: { left: 1 } }); // $ExpectType string -boxen('unicorn', { margin: 1 }); // $ExpectType string -boxen('unicorn', { margin: { top: 1 } }); // $ExpectType string -boxen('unicorn', { margin: { right: 1 } }); // $ExpectType string -boxen('unicorn', { margin: { bottom: 1 } }); // $ExpectType string -boxen('unicorn', { margin: { left: 1 } }); // $ExpectType string -boxen('unicorn', { float: 'right' }); // $ExpectType string -boxen('unicorn', { float: 'center' }); // $ExpectType string -boxen('unicorn', { float: 'left' }); // $ExpectType string -boxen('unicorn', { float: 'foo' }); // $ExpectError -boxen('unicorn', { backgroundColor: 'white' }); // $ExpectType string -boxen('unicorn', { align: 'left' }); // $ExpectType string -boxen('unicorn', { align: 'center' }); // $ExpectType string -boxen('unicorn', { align: 'right' }); // $ExpectType string -boxen('unicorn', { align: 'foo' }); // $ExpectError diff --git a/types/boxen/index.d.ts b/types/boxen/index.d.ts deleted file mode 100644 index 94b68bb5c7..0000000000 --- a/types/boxen/index.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -// Type definitions for boxen 2.1 -// Project: https://github.com/sindresorhus/boxen#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -import { BoxDefinition, BoxNames } from 'cli-boxes'; - -export = boxen; - -/** - * Create boxes in the terminal - * @param input Text inside the box. - */ -declare function boxen(input: string, options?: boxen.Options): string; - -declare namespace boxen { - interface Options { - /** - * Color of the box border. - * Values: `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white` `gray` or a hex value like `#ff0000` - */ - borderColor?: string; - - /** - * Style of the box border. - * Can be any of the above predefined styles or an object. - * - * Predefined values: - * - `single` - * ``` - * ┌───┐ - * │foo│ - * └───┘ - * ``` - * - `double` - * ``` - * ╔═══╗ - * ║foo║ - * ╚═══╝ - * ``` - * - `round` (`single` sides with round corners) - * ``` - * ╭───╮ - * │foo│ - * ╰───╯ - * ``` - * - `single-double` (`single` on top and bottom, `double` on right and left) - * ``` - * ╓───╖ - * ║foo║ - * ╙───╜ - * ``` - * - `double-single` (`double` on top and bottom, `single` on right and left) - * ``` - * ╒═══╕ - * │foo│ - * ╘═══╛ - * ``` - * - `classic` - * ``` - * +---+ - * |foo| - * +---+ - * ``` - */ - borderStyle?: BoxNames | BoxDefinition; - - /** - * Reduce opacity of the border. - * @default false - */ - dimBorder?: boolean; - - /** - * Space between the text and box border. - * When a number is specified, the left/right padding is 3 times the top/bottom to make it look nice. - * @default 0 - */ - padding?: number | PositionOptions; - - /** - * Space around the box. - * When a number is specified, the left/right margin is 3 times the top/bottom to make it look nice. - * @default 0 - */ - margin?: number | PositionOptions; - - /** - * Float the box on the available terminal screen space. - * @default 'left' - */ - float?: 'right' | 'center' | 'left'; - - /** - * Color of the background. - * Values: `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white` `gray` or a hex value like `#ff0000` - */ - backgroundColor?: string; - - /** - * Align the text in the box based on the widest line. - * @default 'left' - */ - align?: 'left' | 'center' | 'right'; - } - - interface PositionOptions { - top?: number; - right?: number; - bottom?: number; - left?: number; - } -} diff --git a/types/boxen/tsconfig.json b/types/boxen/tsconfig.json deleted file mode 100644 index 6d34147e83..0000000000 --- a/types/boxen/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", - "boxen-tests.ts" - ] -} diff --git a/types/boxen/tslint.json b/types/boxen/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/boxen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/cacheable-request/cacheable-request-tests.ts b/types/cacheable-request/cacheable-request-tests.ts index 95458c14b7..f6964c8ec8 100644 --- a/types/cacheable-request/cacheable-request-tests.ts +++ b/types/cacheable-request/cacheable-request-tests.ts @@ -1,7 +1,6 @@ import * as http from 'http'; import * as https from 'https'; import CacheableRequest = require('cacheable-request'); -import QuickLRU = require('quick-lru'); // You can do let cacheableRequest = new CacheableRequest(http.request); @@ -14,7 +13,6 @@ cacheableRequest = new CacheableRequest(https.request); cacheableRequest = new CacheableRequest(http.request, 'redis://user:pass@localhost:6379'); cacheableRequest = new CacheableRequest(http.request, new Map()); -cacheableRequest = new CacheableRequest(http.request, new QuickLRU({ maxSize: 1000 })); cacheableRequest('example.com', res => { res; // $ExpectType ServerResponse | ResponseLike diff --git a/types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts b/types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts deleted file mode 100644 index 4a1e63b28c..0000000000 --- a/types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import copy = require('copy-text-to-clipboard'); - -const button: HTMLButtonElement | null = document.getElementById('my-button'); -if (button) { - button.addEventListener('click', () => { - copy('🦄🌈'); - }); -} diff --git a/types/copy-text-to-clipboard/index.d.ts b/types/copy-text-to-clipboard/index.d.ts deleted file mode 100644 index 56493778d0..0000000000 --- a/types/copy-text-to-clipboard/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for copy-text-to-clipboard 1.0 -// Project: https://github.com/sindresorhus/copy-text-to-clipboard#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = copy; - -declare function copy(text: string): boolean; diff --git a/types/copy-text-to-clipboard/tsconfig.json b/types/copy-text-to-clipboard/tsconfig.json deleted file mode 100644 index 2889d9fdc6..0000000000 --- a/types/copy-text-to-clipboard/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", - "copy-text-to-clipboard-tests.ts" - ] -} \ No newline at end of file diff --git a/types/copy-text-to-clipboard/tslint.json b/types/copy-text-to-clipboard/tslint.json deleted file mode 100644 index 1c36270d47..0000000000 --- a/types/copy-text-to-clipboard/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-angle-bracket-type-assertion": false - } -} diff --git a/types/cp-file/cp-file-tests.ts b/types/cp-file/cp-file-tests.ts deleted file mode 100644 index 173a650e8f..0000000000 --- a/types/cp-file/cp-file-tests.ts +++ /dev/null @@ -1,19 +0,0 @@ -import cpFile = require('cp-file'); - -cpFile('src/unicorn.png', 'dist/unicorn.png').then(() => {}); -cpFile('src/unicorn.png', 'dist/unicorn.png', {overwrite: false}).then(() => {}); -cpFile('src/unicorn.png', 'dist/unicorn.png') - .on('progress', data => { - let str: string; - let num: number; - - str = data.src; - str = data.dest; - num = data.size; - num = data.written; - num = data.percent; - }) - .then(() => {}); - -cpFile.sync('src/unicorn.png', 'dist/unicorn.png'); -cpFile.sync('src/unicorn.png', 'dist/unicorn.png', {overwrite: false}); diff --git a/types/cp-file/index.d.ts b/types/cp-file/index.d.ts deleted file mode 100644 index d0966f4c85..0000000000 --- a/types/cp-file/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Type definitions for cp-file 4.2 -// Project: https://github.com/sindresorhus/cp-file#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = cpFile; - -declare function cpFile(source: string, destination: string, options?: cpFile.Options): Promise & cpFile.ProgressEmitter; - -declare namespace cpFile { - function sync(source: string, destination: string, options?: Options): void; - - interface ProgressEmitter { - on(event: 'progress', handler: (data: ProgressData) => void): Promise; - } - - interface Options { - overwrite?: boolean; - } - - interface ProgressData { - src: string; - dest: string; - size: number; - written: number; - percent: number; - } -} diff --git a/types/cp-file/tsconfig.json b/types/cp-file/tsconfig.json deleted file mode 100644 index 12138d0002..0000000000 --- a/types/cp-file/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", - "cp-file-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cp-file/tslint.json b/types/cp-file/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/cp-file/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/cpy/cpy-tests.ts b/types/cpy/cpy-tests.ts deleted file mode 100644 index 1800ab35bf..0000000000 --- a/types/cpy/cpy-tests.ts +++ /dev/null @@ -1,18 +0,0 @@ -import cpy = require('cpy'); - -cpy(['src/*.png', '!src/goat.png'], 'dist').then(() => {}); -cpy('foo.js', 'destination', { - rename: basename => `prefix-${basename}`, - cwd: '/', - parents: true, - stat: true, - overwrite: false, -}); -cpy('foo.js', 'destination') - .on('progress', progress => { - let num: number; - num = progress.completedFiles; - num = progress.totalFiles; - num = progress.completedSize; - }) - .then(() => {}); diff --git a/types/cpy/index.d.ts b/types/cpy/index.d.ts deleted file mode 100644 index b6ca781137..0000000000 --- a/types/cpy/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Type definitions for cpy 5.1 -// Project: https://github.com/sindresorhus/cpy#readme -// Definitions by: Mohamed Hegazy -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import glob = require('glob'); -import cpFile = require('cp-file'); - -export = cpy; -declare function cpy(files: string | string[], destination: string, opts?: cpy.Options): Promise & cpy.ProgressEmitter; - -declare namespace cpy { - interface ProgressEmitter { - on(event: 'progress', handler: (progress: ProgressData) => void): Promise; - } - - type Options = CpyOptions & glob.IOptions & cpFile.Options; - - interface CpyOptions { - cwd?: string; - parents?: boolean; - rename?: string | ((basename: string) => string); - } - - interface ProgressData { - completedFiles: number; - totalFiles: number; - completedSize: number; - } -} diff --git a/types/cpy/tsconfig.json b/types/cpy/tsconfig.json deleted file mode 100644 index 90098461b2..0000000000 --- a/types/cpy/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", - "cpy-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cpy/tslint.json b/types/cpy/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/cpy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/decamelize/decamelize-tests.ts b/types/decamelize/decamelize-tests.ts deleted file mode 100644 index 836c67e64c..0000000000 --- a/types/decamelize/decamelize-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import decamelize = require('decamelize'); - -decamelize('unicornRainbow'); -decamelize('unicornRainbow', '-'); diff --git a/types/decamelize/index.d.ts b/types/decamelize/index.d.ts deleted file mode 100644 index e159cd43bb..0000000000 --- a/types/decamelize/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for decamelize 1.2 -// Project: https://github.com/sindresorhus/decamelize -// Definitions by: Sam Verschueren -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = decamelize; - -declare function decamelize(input: string, separator?: string): string; -declare namespace decamelize {} diff --git a/types/decamelize/tsconfig.json b/types/decamelize/tsconfig.json deleted file mode 100644 index 54bea1b020..0000000000 --- a/types/decamelize/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", - "decamelize-tests.ts" - ] -} \ No newline at end of file diff --git a/types/decamelize/tslint.json b/types/decamelize/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/decamelize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/file-type/file-type-tests.ts b/types/file-type/file-type-tests.ts deleted file mode 100644 index d49a964829..0000000000 --- a/types/file-type/file-type-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import fileType = require("file-type"); - -// $ExpectType FileTypeResult | null -fileType(new Buffer([0xFF, 0xD8, 0xFF])); -fileType(new Uint8Array([0xFF, 0xD8, 0xFF])); - -// $ExpectType number -fileType.minimumBytes; diff --git a/types/file-type/index.d.ts b/types/file-type/index.d.ts deleted file mode 100644 index c902dc384e..0000000000 --- a/types/file-type/index.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Type definitions for file-type 10.6 -// Project: https://github.com/sindresorhus/file-type -// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -export = FileType; - -/** - * The file type is detected by checking the - * [magic number](http://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer. - * - * @param buf It only needs the first `.minimumBytes` bytes. The exception is detection of - * `docx`, `pptx`, and `xlsx` which potentially requires reading the whole file. - * @returns an Object with: - * - ext - One of the [supported file types](https://github.com/sindresorhus/file-type/blob/master/readme.md#supported-file-types) - * - mime - The [MIME type](http://en.wikipedia.org/wiki/Internet_media_type) - */ -declare function FileType(buf: Buffer | Uint8Array): FileType.FileTypeResult | null; - -declare namespace FileType { - interface FileTypeResult { - ext: string; - mime: string; - } - - /** - * The minimum amount of bytes needed to detect a file type. Currently, - * it's 4100 bytes, but it can change, so don't hard-code it. - */ - const minimumBytes: number; -} diff --git a/types/file-type/tsconfig.json b/types/file-type/tsconfig.json deleted file mode 100644 index 1894b908af..0000000000 --- a/types/file-type/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", - "file-type-tests.ts" - ] -} diff --git a/types/file-type/tslint.json b/types/file-type/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/file-type/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/got/got-tests.ts b/types/got/got-tests.ts index afaac89ba4..467211a87d 100644 --- a/types/got/got-tests.ts +++ b/types/got/got-tests.ts @@ -6,7 +6,6 @@ import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; import * as url from 'url'; -import QuickLRU = require('quick-lru'); import tough = require('tough-cookie'); let str: string; @@ -252,10 +251,6 @@ got('todomvc', { cache: new Keyv(), }).then(res => res.fromCache); -got('todomvc', { - cache: new QuickLRU({maxSize: 10}), -}).then(res => res.fromCache); - got(new url.URL('http://todomvc.com')); got(url.parse('http://todomvc.com')); diff --git a/types/got/v8/got-tests.ts b/types/got/v8/got-tests.ts index 5e115e96ac..04204d38a9 100644 --- a/types/got/v8/got-tests.ts +++ b/types/got/v8/got-tests.ts @@ -6,7 +6,6 @@ import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; import * as url from 'url'; -import QuickLRU = require('quick-lru'); let str: string; let buf: Buffer; @@ -251,10 +250,6 @@ got('todomvc', { cache: new Keyv(), }).then(res => res.fromCache); -got('todomvc', { - cache: new QuickLRU({maxSize: 10}), -}).then(res => res.fromCache); - got(new url.URL('http://todomvc.com')); got(url.parse('http://todomvc.com')); diff --git a/types/humanize-string/humanize-string-tests.ts b/types/humanize-string/humanize-string-tests.ts deleted file mode 100644 index 851746f088..0000000000 --- a/types/humanize-string/humanize-string-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import humanizeString = require('humanize-string'); - -humanizeString('UnicornsAndRainbows'); -humanizeString('unicorns_and-Rainbows_andPonies '); diff --git a/types/humanize-string/index.d.ts b/types/humanize-string/index.d.ts deleted file mode 100644 index ba8bc4e867..0000000000 --- a/types/humanize-string/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for humanize-string 1.0 -// Project: https://github.com/sindresorhus/humanize-string/ -// Definitions by: Kevin Nacios -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function humanizeString(text: string): string; - -export = humanizeString; diff --git a/types/humanize-string/tsconfig.json b/types/humanize-string/tsconfig.json deleted file mode 100644 index 715a620e55..0000000000 --- a/types/humanize-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", - "humanize-string-tests.ts" - ] -} \ No newline at end of file diff --git a/types/humanize-string/tslint.json b/types/humanize-string/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/humanize-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/image-type/image-type-tests.ts b/types/image-type/image-type-tests.ts deleted file mode 100644 index ea9951d6f2..0000000000 --- a/types/image-type/image-type-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import imageType = require('file-type'); - -imageType(new Buffer([0xFF, 0xD8, 0xFF])); -imageType(new Uint8Array([0xFF, 0xD8, 0xFF])); diff --git a/types/image-type/index.d.ts b/types/image-type/index.d.ts deleted file mode 100644 index 2c5abcfd87..0000000000 --- a/types/image-type/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for image-type 3.0 -// Project: https://github.com/sindresorhus/image-type#readme -// Definitions by: Florian Keller -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -import FileType = require('file-type'); - -declare function ImageType(buf: Buffer | Uint8Array): FileType.FileTypeResult | null; - -export = ImageType; diff --git a/types/image-type/tsconfig.json b/types/image-type/tsconfig.json deleted file mode 100644 index 2c7c57ebba..0000000000 --- a/types/image-type/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", - "image-type-tests.ts" - ] -} diff --git a/types/image-type/tslint.json b/types/image-type/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/image-type/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-svg/index.d.ts b/types/is-svg/index.d.ts deleted file mode 100644 index 54ebb84457..0000000000 --- a/types/is-svg/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for is-svg 3.0 -// Project: https://github.com/sindresorhus/is-svg#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare function isSvg(input?: string | Buffer | false | null): boolean; - -// So that `import * as X` is possible -declare namespace isSvg {} - -export = isSvg; diff --git a/types/is-svg/is-svg-tests.ts b/types/is-svg/is-svg-tests.ts deleted file mode 100644 index 73ba29062c..0000000000 --- a/types/is-svg/is-svg-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as isSvg from 'is-svg'; - -const data = ''; -let result = false; - -result = isSvg(data); -result = isSvg(Buffer.from(data)); -result = isSvg(false); -result = isSvg(null); -result = isSvg(undefined); -result = isSvg(); diff --git a/types/is-svg/tsconfig.json b/types/is-svg/tsconfig.json deleted file mode 100644 index 2621a88907..0000000000 --- a/types/is-svg/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-svg-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-svg/tslint.json b/types/is-svg/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-svg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/keyv/keyv-tests.ts b/types/keyv/keyv-tests.ts index d8b0ccd910..0ab7236f80 100644 --- a/types/keyv/keyv-tests.ts +++ b/types/keyv/keyv-tests.ts @@ -1,5 +1,4 @@ import Keyv = require('keyv'); -import QuickLRU = require('quick-lru'); new Keyv({ uri: 'redis://user:pass@localhost:6379', @@ -21,10 +20,6 @@ new Keyv({ deserialize: JSON.parse }); new Keyv({ store: new Map() }); -const lru = new QuickLRU({ maxSize: 1000 }); -const opts: Keyv.Options = { store: lru }; -new Keyv(opts); - new Keyv('mongodb://user:pass@localhost:27017/dbname', { namespace: 'mongodb' }); new Keyv('redis://user:pass@localhost:6379'); new Keyv('sqlite://path/to/database.sqlite'); diff --git a/types/npm-name/index.d.ts b/types/npm-name/index.d.ts deleted file mode 100644 index e4830f377e..0000000000 --- a/types/npm-name/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for npm-name 5.0 -// Project: https://github.com/sindresorhus/npm-name#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = npmName; - -declare function npmName(name: string): Promise; - -declare namespace npmName { - function many(names: T[]): Promise>; -} diff --git a/types/npm-name/npm-name-tests.ts b/types/npm-name/npm-name-tests.ts deleted file mode 100644 index cb8283699c..0000000000 --- a/types/npm-name/npm-name-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -import npmName = require('npm-name'); - -// $ExpectType Promise -npmName('chalk'); - -npmName.many(['chalk', '@sindresorhus/is', 'abc123']).then(result => { - // $ExpectType Map<"chalk" | "@sindresorhus/is" | "abc123", boolean> - result; - - // $ExpectType boolean | undefined - result.get('chalk'); -}); diff --git a/types/npm-name/tsconfig.json b/types/npm-name/tsconfig.json deleted file mode 100644 index c60a7df652..0000000000 --- a/types/npm-name/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", - "npm-name-tests.ts" - ] -} diff --git a/types/npm-name/tslint.json b/types/npm-name/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/npm-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/npm-run-path/index.d.ts b/types/npm-run-path/index.d.ts deleted file mode 100644 index 6a052e0450..0000000000 --- a/types/npm-run-path/index.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -// Type definitions for npm-run-path 2.0 -// Project: https://github.com/sindresorhus/npm-run-path#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = npmRunPath; - -/** - * Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries. - */ -declare function npmRunPath(options?: npmRunPath.Options): string; - -declare namespace npmRunPath { - function env(options?: EnvOptions): ProcessEnv; - - interface Options { - /** - * Working directory. - */ - cwd?: string; - /** - * PATH to be appended. - * Set it to an empty string to exclude the default [PATH](https://github.com/sindresorhus/path-key). - * @default PATH - */ - path?: string; - } - - interface EnvOptions { - /** - * Working directory. - */ - cwd?: string; - /** - * Accepts an object of environment variables, like `process.env`, and modifies the PATH using the correct - * [PATH key](https://github.com/sindresorhus/path-key). Use this if you're modifying the PATH for use - * in the `child_process` options. - */ - env?: ProcessEnv; - } - - interface ProcessEnv { - [key: string]: string | undefined; - } -} diff --git a/types/npm-run-path/npm-run-path-tests.ts b/types/npm-run-path/npm-run-path-tests.ts deleted file mode 100644 index 4cff236373..0000000000 --- a/types/npm-run-path/npm-run-path-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// - -import childProcess = require('child_process'); -import npmRunPath = require('npm-run-path'); - -npmRunPath(); // $ExpectType string -npmRunPath({ cwd: '/foo' }); // $ExpectType string -npmRunPath({ path: '/usr/local/bin' }); // $ExpectType string - -npmRunPath.env(); // $ExpectType ProcessEnv -npmRunPath.env({ cwd: '/foo' }); // $ExpectType ProcessEnv -npmRunPath.env({ env: process.env }); // $ExpectType ProcessEnv - -childProcess.execFileSync('foo', { - env: npmRunPath.env(), -}); diff --git a/types/npm-run-path/tsconfig.json b/types/npm-run-path/tsconfig.json deleted file mode 100644 index d6738a23ca..0000000000 --- a/types/npm-run-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", - "npm-run-path-tests.ts" - ] -} diff --git a/types/npm-run-path/tslint.json b/types/npm-run-path/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/npm-run-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-some/index.d.ts b/types/p-some/index.d.ts deleted file mode 100644 index e22fd8d7ea..0000000000 --- a/types/p-some/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Type definitions for p-some 2.0 -// Project: https://github.com/sindresorhus/p-some#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import AggregateErrorModule = require('aggregate-error'); - -export = pSome; - -declare function pSome(values: Array> | Iterable>, options: pSome.Options): Promise; - -type Value = T | PromiseLike; - -declare namespace pSome { - interface Options { - count: number; - filter?(value: T): boolean; - } - - const AggregateError: typeof AggregateErrorModule; -} diff --git a/types/p-some/p-some-tests.ts b/types/p-some/p-some-tests.ts deleted file mode 100644 index d3ea9aa3b0..0000000000 --- a/types/p-some/p-some-tests.ts +++ /dev/null @@ -1,34 +0,0 @@ -import got = require('got'); -import pSome = require('p-some'); - -pSome([ - got.head('github.com').then(() => 'github'), - got.head('google.com').then(() => 'google'), - got.head('twitter.com').then(() => 'twitter'), - got.head('medium.com').then(() => 'medium') -], {count: 2}).then(([first, second]) => { - console.log(first, second); -}); - -pSome([ - got.head('github.com').then(() => 1), - got.head('google.com').then(() => 'google'), -], {count: 2}).then(([first, second]) => { - const str: string | number = first; -}); - -pSome(new Set([ - got.head('github.com').then(() => 'github'), - got.head('google.com').then(() => 'google'), - got.head('twitter.com').then(() => 'twitter'), - got.head('medium.com').then(() => 'medium') -]), { - count: 3, - filter(str: string) { - return false; - } -}).then(first => { - const str: string[] = first; -}); - -throw new pSome.AggregateError([]); diff --git a/types/p-some/tsconfig.json b/types/p-some/tsconfig.json deleted file mode 100644 index d8bca7e13a..0000000000 --- a/types/p-some/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", - "p-some-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-some/tslint.json b/types/p-some/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-some/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/path-key/index.d.ts b/types/path-key/index.d.ts deleted file mode 100644 index e93e334248..0000000000 --- a/types/path-key/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for path-key 2.0 -// Project: https://github.com/sindresorhus/path-key#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -export = pathKey; - -declare function pathKey(options?: pathKey.Options): string; - -declare namespace pathKey { - interface Options { - env?: { [key: string]: any }; - platform?: NodeJS.Platform; - } -} diff --git a/types/path-key/path-key-tests.ts b/types/path-key/path-key-tests.ts deleted file mode 100644 index 820a8431de..0000000000 --- a/types/path-key/path-key-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import pathKey = require('path-key'); - -pathKey(); // $ExpectType string -pathKey({ env: {} }); // $ExpectType string -pathKey({ platform: 'win32' }); // $ExpectType string diff --git a/types/path-key/tsconfig.json b/types/path-key/tsconfig.json deleted file mode 100644 index 3e1f0bf50f..0000000000 --- a/types/path-key/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", - "path-key-tests.ts" - ] -} diff --git a/types/path-key/tslint.json b/types/path-key/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/path-key/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ps-list/index.d.ts b/types/ps-list/index.d.ts deleted file mode 100644 index 2ace498667..0000000000 --- a/types/ps-list/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Type definitions for ps-list 6.0 -// Project: https://github.com/sindresorhus/ps-list#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -export = psList; - -declare function psList(options?: psList.Options): Promise; - -declare namespace psList { - interface Options { - all?: boolean; - } - - interface ProcessDescriptor { - pid: number; - name: string; - ppid: number; - cmd?: string; - cpu?: number; - memory?: number; - } -} diff --git a/types/ps-list/ps-list-tests.ts b/types/ps-list/ps-list-tests.ts deleted file mode 100644 index 17ecffe4ff..0000000000 --- a/types/ps-list/ps-list-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import psList = require('ps-list'); - -(async () => { - const processes: psList.ProcessDescriptor[] = await psList(); - psList({ all: false }); - - processes[0].pid; // $ExpectType number - processes[0].name; // $ExpectType string - processes[0].ppid; // $ExpectType number - processes[0].cmd; // $ExpectType string | undefined - processes[0].cpu; // $ExpectType number | undefined - processes[0].memory; // $ExpectType number | undefined -})(); diff --git a/types/ps-list/tsconfig.json b/types/ps-list/tsconfig.json deleted file mode 100644 index 4138547b6c..0000000000 --- a/types/ps-list/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", - "ps-list-tests.ts" - ] -} diff --git a/types/ps-list/tslint.json b/types/ps-list/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ps-list/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/quick-lru/index.d.ts b/types/quick-lru/index.d.ts deleted file mode 100644 index 65e15c60a4..0000000000 --- a/types/quick-lru/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for quick-lru 2.0 -// Project: https://github.com/sindresorhus/quick-lru#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = QuickLRU; - -declare class QuickLRU implements Iterable<[K, V]> { - readonly size: number; - constructor(options: QuickLRU.Options); - [Symbol.iterator](): Iterator<[K, V]>; - set(key: K, value: V): this; - get(key: K): V | undefined; - has(key: K): boolean; - peek(key: K): V | undefined; - delete(key: K): boolean; - clear(): void; - keys(): Iterable; - values(): Iterable; -} - -declare namespace QuickLRU { - interface Options { - maxSize: number; - } -} diff --git a/types/quick-lru/quick-lru-tests.ts b/types/quick-lru/quick-lru-tests.ts deleted file mode 100644 index 5a3c5fb8f8..0000000000 --- a/types/quick-lru/quick-lru-tests.ts +++ /dev/null @@ -1,25 +0,0 @@ -import QuickLRU = require('quick-lru'); - -const lru = new QuickLRU({ maxSize: 1000 }); -new QuickLRU(); // $ExpectError - -lru.set('🦄', 1).set('🌈', 2); // $ExpectType QuickLRU -lru.get('🦄'); // $ExpectType number | undefined -lru.has('🦄'); // $ExpectType boolean -lru.peek('🦄'); // $ExpectType number | undefined -lru.delete('🦄'); // $ExpectType boolean -lru.clear(); // $ExpectType void -lru.size; // $ExpectType number - -for (const [key, value] of lru) { - key; // $ExpectType string - value; // $ExpectType number -} - -for (const key of lru.keys()) { - key; // $ExpectType string -} - -for (const value of lru.values()) { - value; // $ExpectType number -} diff --git a/types/quick-lru/tsconfig.json b/types/quick-lru/tsconfig.json deleted file mode 100644 index 788f560163..0000000000 --- a/types/quick-lru/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es2015", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "quick-lru-tests.ts" - ] -} diff --git a/types/quick-lru/tslint.json b/types/quick-lru/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/quick-lru/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/quick-lru/v1/index.d.ts b/types/quick-lru/v1/index.d.ts deleted file mode 100644 index 7ce12e397c..0000000000 --- a/types/quick-lru/v1/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for quick-lru 1.1 -// Project: https://github.com/sindresorhus/quick-lru#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = QuickLRU; - -declare class QuickLRU implements Iterable<[K, V]> { - readonly size: number; - constructor(options?: QuickLRU.Options); - [Symbol.iterator](): Iterator<[K, V]>; - set(key: K, value: V): this; - get(key: K): V | undefined; - has(key: K): boolean; - peek(key: K): V | undefined; - delete(key: K): void; - clear(): void; - keys(): Iterable; - values(): Iterable; -} - -declare namespace QuickLRU { - interface Options { - maxSize: number; - } -} diff --git a/types/quick-lru/v1/quick-lru-tests.ts b/types/quick-lru/v1/quick-lru-tests.ts deleted file mode 100644 index 140e25bcd8..0000000000 --- a/types/quick-lru/v1/quick-lru-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import QuickLRU = require('quick-lru'); - -let num: number; -let numu: number | undefined; -let str: string; -let bool: boolean; - -const lru = new QuickLRU({maxSize: 1000}); - -lru.set('🦄', 1).set('🌈', 2); -numu = lru.get('🦄'); -bool = lru.has('🦄'); -numu = lru.peek('🦄'); -lru.delete('🦄'); -lru.clear(); -num = lru.size; - -for (const [key, value] of lru) { - str = key; - num = value; -} - -for (const key of lru.keys()) { - str = key; -} - -for (const value of lru.values()) { - num = value; -} diff --git a/types/quick-lru/v1/tsconfig.json b/types/quick-lru/v1/tsconfig.json deleted file mode 100644 index ae4a2956c7..0000000000 --- a/types/quick-lru/v1/tsconfig.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es2015", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "quick-lru": [ - "quick-lru/v1" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "quick-lru-tests.ts" - ] -} diff --git a/types/quick-lru/v1/tslint.json b/types/quick-lru/v1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/quick-lru/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/read-chunk/index.d.ts b/types/read-chunk/index.d.ts deleted file mode 100644 index d11a7a334b..0000000000 --- a/types/read-chunk/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Type definitions for read-chunk v2.1.0 -// Project: https://github.com/sindresorhus/read-chunk -// Definitions by: crispybee -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -export = ReadChunk; - - /** - * Asynchronous: Reads a chunk from a file. Returns a Promise. - * @param {string} filePath The path to the file. - * @param {number} startingPosition Position to start reading. - * @param {number} length Number of bytes to read. - * @return {Promise} Returns a Promise. - */ -declare function ReadChunk(filePath: string, startingPosition: number, length: number): Promise; - -declare namespace ReadChunk { - /** - * Synchronous: Reads a chunk from a file. Returns a Buffer. - * @param {string} filePath The path to the file. - * @param {number} startingPosition Position to start reading. - * @param {number} length Number of bytes to read. - * @return {Buffer} Returns a Buffer. - */ - function sync(filePath: string, startingPosition: number, length: number): Buffer; -} - diff --git a/types/read-chunk/read-chunk-tests.ts b/types/read-chunk/read-chunk-tests.ts deleted file mode 100644 index 187d1a02b1..0000000000 --- a/types/read-chunk/read-chunk-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import readChunk = require('read-chunk'); - -let chunk: Buffer = readChunk.sync('foo.txt', 1, 3); - -readChunk('foo.txt', 1, 3).then(value => { - console.log(value); -}).catch(error => { - console.log(error); -}); diff --git a/types/read-chunk/tsconfig.json b/types/read-chunk/tsconfig.json deleted file mode 100644 index 041ee0f648..0000000000 --- a/types/read-chunk/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", - "read-chunk-tests.ts" - ] -} \ No newline at end of file diff --git a/types/read-chunk/tslint.json b/types/read-chunk/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/read-chunk/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/sindresorhus__slugify/index.d.ts b/types/sindresorhus__slugify/index.d.ts deleted file mode 100644 index e3cecc77f2..0000000000 --- a/types/sindresorhus__slugify/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Type definitions for @sindresorhus/slugify 0.6 -// Project: https://github.com/sindresorhus/slugify -// Definitions by: Carlos Precioso -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace slugify { - interface Options { - /** - * @default "-" - */ - separator?: string; - - /** - * Make the slug lowercase. - * @default true - */ - lowercase?: boolean; - - /** - * Convert camelcase to separate words. Internally it does `fooBar` → `foo bar`. - * @default true - */ - decamelize?: boolean; - - /** - * Specifying this only replaces the default if you set an item with the same key, like &. - * The replacements are run on the original string before any other transformations. - * - * Add a leading and trailing space to the replacement to have it separated by dashes. - * - * @default [ ['&', ' and '], ['🦄', ' unicorn '], ['♥', ' love '] ] - */ - customReplacements?: ReadonlyArray<[string, string]>; - } -} - -/** - * Slugify a string - */ -declare function slugify(input: string, options?: slugify.Options): string; - -export = slugify; diff --git a/types/sindresorhus__slugify/sindresorhus__slugify-tests.ts b/types/sindresorhus__slugify/sindresorhus__slugify-tests.ts deleted file mode 100644 index 50a45a2ba0..0000000000 --- a/types/sindresorhus__slugify/sindresorhus__slugify-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import slugify = require("@sindresorhus/slugify"); - -slugify("I ♥ Dogs"); - -slugify(" Déjà Vu! "); - -slugify("fooBar 123 $#%"); - -slugify("I ♥ 🦄 & 🐶", { customReplacements: [["🐶", "dog"]] }); - -slugify("BAR and baz"); - -slugify("BAR and baz", { separator: "_" }); - -slugify("Déjà Vu!"); - -slugify("Déjà Vu!", { lowercase: false }); - -slugify("fooBar"); - -slugify("fooBar", { decamelize: false }); - -slugify("Foo@unicorn", { - customReplacements: [["@", "at"]] -}); - -slugify("foo@unicorn", { - customReplacements: [["@", " at "]] -}); diff --git a/types/sindresorhus__slugify/tsconfig.json b/types/sindresorhus__slugify/tsconfig.json deleted file mode 100644 index 24230965e5..0000000000 --- a/types/sindresorhus__slugify/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": ["es6"], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": ["../"], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "paths": { - "@sindresorhus/slugify": ["sindresorhus__slugify"] - } - }, - "files": ["index.d.ts", "sindresorhus__slugify-tests.ts"] -} diff --git a/types/sindresorhus__slugify/tslint.json b/types/sindresorhus__slugify/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sindresorhus__slugify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/time-span/index.d.ts b/types/time-span/index.d.ts deleted file mode 100644 index 327c3fd189..0000000000 --- a/types/time-span/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for time-span 2.0 -// Project: https://github.com/sindresorhus/time-span#readme -// Definitions by: BendingBender -// Mike Dvorscak -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace timeSpan { - interface TimeSpanObject { - (): number; - rounded(): number; - sec(): number; - nano(): number; - } -} - -declare function timeSpan(): timeSpan.TimeSpanObject; - -export = timeSpan; diff --git a/types/time-span/time-span-tests.ts b/types/time-span/time-span-tests.ts deleted file mode 100644 index de5e8dfc53..0000000000 --- a/types/time-span/time-span-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import timeSpan = require('time-span'); - -const end = timeSpan(); - -let endTime: number; -endTime = end(); -endTime = end.rounded(); -endTime = end.sec(); -endTime = end.nano(); diff --git a/types/time-span/tsconfig.json b/types/time-span/tsconfig.json deleted file mode 100644 index b17a400526..0000000000 --- a/types/time-span/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", - "time-span-tests.ts" - ] -} \ No newline at end of file diff --git a/types/time-span/tslint.json b/types/time-span/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/time-span/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/trash/index.d.ts b/types/trash/index.d.ts deleted file mode 100644 index 07852a80fd..0000000000 --- a/types/trash/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Type definitions for trash 4.3 -// Project: https://github.com/sindresorhus/trash#readme -// Definitions by: Matthew James -// Keiichiro Amemiya -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Move files and folders to the trash - * - * @param paths Accepts paths and [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns). - * @param options.glob Enable globbing when matching file paths - */ -declare function trash(paths: string | string[], options?: trash.Options): Promise; - -declare namespace trash { - interface Options { - glob: boolean; - } -} - -export = trash; diff --git a/types/trash/trash-tests.ts b/types/trash/trash-tests.ts deleted file mode 100644 index fb040e2c8f..0000000000 --- a/types/trash/trash-tests.ts +++ /dev/null @@ -1,20 +0,0 @@ -import trash = require('trash'); - -async function testTrashNoArgsSinglePath() { - await trash('/path/to/item1'); -} - -async function testTrashNoArgsMultiPath() { - await trash(['/path/to/item1', '/path/to/item2']); -} - -async function testTrashWithArgs() { - const options: trash.Options = { glob: false }; - await trash(['/path/to/item1', '/path/to/item2'], options); -} - -function testTrashPerDocumentation() { - (async () => { - await trash(['*.png', '!rainbow.png']); - })(); -} diff --git a/types/trash/tsconfig.json b/types/trash/tsconfig.json deleted file mode 100644 index c60478e474..0000000000 --- a/types/trash/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "target": "es2015", - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "trash-tests.ts" - ] -} diff --git a/types/trash/tslint.json b/types/trash/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/trash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }