diff --git a/notNeededPackages.json b/notNeededPackages.json index 4577575a0b..efc37adc2c 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -30,6 +30,18 @@ "sourceRepoURL": "https://github.com/epoberezkin/ajv", "asOfVersion": "1.0.0" }, + { + "libraryName": "all-keys", + "typingsPackageName": "all-keys", + "sourceRepoURL": "https://github.com/sindresorhus/all-keys", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "all-keys", + "typingsPackageName": "all-property-names", + "sourceRepoURL": "https://github.com/sindresorhus/all-keys", + "asOfVersion": "3.0.0" + }, { "libraryName": "angular-touchspin", "typingsPackageName": "angular-touchspin", @@ -48,6 +60,12 @@ "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal", "asOfVersion": "0.0.11" }, + { + "libraryName": "ansi-escapes", + "typingsPackageName": "ansi-escapes", + "sourceRepoURL": "https://github.com/sindresorhus/ansi-escapes", + "asOfVersion": "4.0.0" + }, { "libraryName": "antd", "typingsPackageName": "antd", @@ -84,6 +102,24 @@ "sourceRepoURL": "https://github.com/ranisalt/node-argon2", "asOfVersion": "0.15.0" }, + { + "libraryName": "array-move", + "typingsPackageName": "array-move", + "sourceRepoURL": "https://github.com/sindresorhus/array-move", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "array-uniq", + "typingsPackageName": "array-uniq", + "sourceRepoURL": "https://github.com/sindresorhus/array-uniq", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "arrify", + "typingsPackageName": "arrify", + "sourceRepoURL": "https://github.com/sindresorhus/arrify", + "asOfVersion": "2.0.0" + }, { "libraryName": "artyom.js", "typingsPackageName": "artyom.js", @@ -870,6 +906,12 @@ "sourceRepoURL": "https://handsontable.com/", "asOfVersion": "0.35.0" }, + { + "libraryName": "hard-rejection", + "typingsPackageName": "hard-rejection", + "sourceRepoURL": "https://github.com/sindresorhus/hard-rejection", + "asOfVersion": "2.0.0" + }, { "libraryName": "has-yarn", "typingsPackageName": "has-yarn", @@ -1008,6 +1050,18 @@ "sourceRepoURL": "http://ionicframework.com", "asOfVersion": "3.19.0" }, + { + "libraryName": "is-absolute-url", + "typingsPackageName": "is-absolute-url", + "sourceRepoURL": "https://github.com/sindresorhus/is-absolute-url", + "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-lower-case", "typingsPackageName": "is-lower-case", @@ -1026,6 +1080,12 @@ "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", "asOfVersion": "2.0.4" }, + { + "libraryName": "is-relative-url", + "typingsPackageName": "is-relative-url", + "sourceRepoURL": "https://github.com/sindresorhus/is-relative-url", + "asOfVersion": "3.0.0" + }, { "libraryName": "is-scoped", "typingsPackageName": "is-scoped", @@ -1110,6 +1170,12 @@ "sourceRepoURL": "https://github.com/jsplumb/jsPlumb", "asOfVersion": "2.5.7" }, + { + "libraryName": "junk", + "typingsPackageName": "junk", + "sourceRepoURL": "https://github.com/sindresorhus/junk", + "asOfVersion": "3.0.0" + }, { "libraryName": "keycloak-js", "typingsPackageName": "keycloak-js", @@ -1188,6 +1254,12 @@ "sourceRepoURL": "https://github.com/brunolm/LinqSharp", "asOfVersion": "1.0.0" }, + { + "libraryName": "load-json-file", + "typingsPackageName": "load-json-file", + "sourceRepoURL": "https://github.com/sindresorhus/load-json-file", + "asOfVersion": "5.1.0" + }, { "libraryName": "localforage", "typingsPackageName": "localforage", @@ -1224,6 +1296,12 @@ "sourceRepoURL": "https://github.com/nomiddlename/log4js-node", "asOfVersion": "2.3.5" }, + { + "libraryName": "loud-rejection", + "typingsPackageName": "loud-rejection", + "sourceRepoURL": "https://github.com/sindresorhus/loud-rejection", + "asOfVersion": "2.0.0" + }, { "libraryName": "lower-case", "typingsPackageName": "lower-case", @@ -1434,6 +1512,18 @@ "sourceRepoURL": "https://github.com/sindresorhus/ora", "asOfVersion": "3.2.0" }, + { + "libraryName": "os-name", + "typingsPackageName": "os-name", + "sourceRepoURL": "https://github.com/sindresorhus/os-name", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "p-all", + "typingsPackageName": "p-all", + "sourceRepoURL": "https://github.com/sindresorhus/p-all", + "asOfVersion": "2.0.0" + }, { "libraryName": "p-any", "typingsPackageName": "p-any", @@ -1458,6 +1548,18 @@ "sourceRepoURL": "https://github.com/sindresorhus/p-debounce", "asOfVersion": "2.0.0" }, + { + "libraryName": "p-defer", + "typingsPackageName": "p-defer", + "sourceRepoURL": "https://github.com/sindresorhus/p-defer", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "p-do-whilst", + "typingsPackageName": "p-do-whilst", + "sourceRepoURL": "https://github.com/sindresorhus/p-do-whilst", + "asOfVersion": "1.0.0" + }, { "libraryName": "p-each-series", "typingsPackageName": "p-each-series", @@ -1476,6 +1578,24 @@ "sourceRepoURL": "https://github.com/kevva/p-every", "asOfVersion": "2.0.0" }, + { + "libraryName": "p-forever", + "typingsPackageName": "p-forever", + "sourceRepoURL": "https://github.com/sindresorhus/p-forever", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "p-is-promise", + "typingsPackageName": "p-is-promise", + "sourceRepoURL": "https://github.com/sindresorhus/p-is-promise", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "p-lazy", + "typingsPackageName": "p-lazy", + "sourceRepoURL": "https://github.com/sindresorhus/p-lazy", + "asOfVersion": "2.0.0" + }, { "libraryName": "p-limit", "typingsPackageName": "p-limit", @@ -1512,6 +1632,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/p-memoize", "asOfVersion": "3.0.0" }, + { + "libraryName": "p-min-delay", + "typingsPackageName": "p-min-delay", + "sourceRepoURL": "https://github.com/sindresorhus/p-min-delay", + "asOfVersion": "3.0.0" + }, { "libraryName": "p-one", "typingsPackageName": "p-one", @@ -1548,6 +1674,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/p-reduce", "asOfVersion": "2.0.0" }, + { + "libraryName": "p-reflect", + "typingsPackageName": "p-reflect", + "sourceRepoURL": "https://github.com/sindresorhus/p-reflect", + "asOfVersion": "2.0.0" + }, { "libraryName": "p-retry", "typingsPackageName": "p-retry", @@ -1560,6 +1692,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/p-series", "asOfVersion": "2.0.0" }, + { + "libraryName": "p-settle", + "typingsPackageName": "p-settle", + "sourceRepoURL": "https://github.com/sindresorhus/p-settle", + "asOfVersion": "3.0.0" + }, { "libraryName": "p-some", "typingsPackageName": "p-some", @@ -1578,12 +1716,48 @@ "sourceRepoURL": "https://github.com/sindresorhus/p-throttle", "asOfVersion": "2.1.0" }, + { + "libraryName": "p-time", + "typingsPackageName": "p-time", + "sourceRepoURL": "https://github.com/sindresorhus/p-time", + "asOfVersion": "2.0.0" + }, { "libraryName": "p-timeout", "typingsPackageName": "p-timeout", "sourceRepoURL": "https://github.com/sindresorhus/p-timeout", "asOfVersion": "3.0.0" }, + { + "libraryName": "p-times", + "typingsPackageName": "p-times", + "sourceRepoURL": "https://github.com/sindresorhus/p-times", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "p-try", + "typingsPackageName": "p-try", + "sourceRepoURL": "https://github.com/sindresorhus/p-try", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "p-wait-for", + "typingsPackageName": "p-wait-for", + "sourceRepoURL": "https://github.com/sindresorhus/p-wait-for", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "p-waterfall", + "typingsPackageName": "p-waterfall", + "sourceRepoURL": "https://github.com/sindresorhus/p-waterfall", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "p-whilst", + "typingsPackageName": "p-whilst", + "sourceRepoURL": "https://github.com/sindresorhus/p-whilst", + "asOfVersion": "2.0.0" + }, { "libraryName": "package-json", "typingsPackageName": "package-json", @@ -2034,6 +2208,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/screenfull.js", "asOfVersion": "4.1.0" }, + { + "libraryName": "sdbm", + "typingsPackageName": "sdbm", + "sourceRepoURL": "https://github.com/sindresorhus/sdbm", + "asOfVersion": "1.1.0" + }, { "libraryName": "sendgrid", "typingsPackageName": "sendgrid", @@ -2046,6 +2226,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/sentence-case", "asOfVersion": "1.1.3" }, + { + "libraryName": "serialize-error", + "typingsPackageName": "serialize-error", + "sourceRepoURL": "https://github.com/sindresorhus/serialize-error", + "asOfVersion": "4.0.0" + }, { "libraryName": "sharp-timer", "typingsPackageName": "sharp-timer", @@ -2076,12 +2262,36 @@ "sourceRepoURL": "https://github.com/sindresorhus/df", "asOfVersion": "3.0.0" }, + { + "libraryName": "djb2a", + "typingsPackageName": "sindresorhus__djb2a", + "sourceRepoURL": "https://github.com/sindresorhus/djb2a", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "@sindresorhus/fnv1a", + "typingsPackageName": "sindresorhus__fnv1a", + "sourceRepoURL": "https://github.com/sindresorhus/fnv1a", + "asOfVersion": "1.1.0" + }, { "libraryName": "@sindresorhus/slugify", "typingsPackageName": "sindresorhus__slugify", "sourceRepoURL": "https://github.com/sindresorhus/slugify", "asOfVersion": "0.9.1" }, + { + "libraryName": "@sindresorhus/string-hash", + "typingsPackageName": "sindresorhus__string-hash", + "sourceRepoURL": "https://github.com/sindresorhus/string-hash", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "@sindresorhus/to-milliseconds", + "typingsPackageName": "sindresorhus__to-milliseconds", + "sourceRepoURL": "https://github.com/sindresorhus/to-milliseconds", + "asOfVersion": "1.1.0" + }, { "libraryName": "sip.js", "typingsPackageName": "sip.js", @@ -2148,12 +2358,36 @@ "sourceRepoURL": "https://github.com/storybooks/storybook", "asOfVersion": "5.0.0" }, + { + "libraryName": "string-length", + "typingsPackageName": "string-length", + "sourceRepoURL": "https://github.com/sindresorhus/string-length", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "string-width", + "typingsPackageName": "string-width", + "sourceRepoURL": "https://github.com/sindresorhus/string-width", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "strip-ansi", + "typingsPackageName": "strip-ansi", + "sourceRepoURL": "https://github.com/chalk/strip-ansi", + "asOfVersion": "5.2.0" + }, { "libraryName": "striptags", "typingsPackageName": "striptags", "sourceRepoURL": "https://github.com/ericnorris/striptags", "asOfVersion": "3.1.1" }, + { + "libraryName": "subsume", + "typingsPackageName": "subsume", + "sourceRepoURL": "https://github.com/sindresorhus/subsume", + "asOfVersion": "2.1.0" + }, { "libraryName": "Sugar", "typingsPackageName": "sugar", @@ -2460,6 +2694,12 @@ "sourceRepoURL": "none", "asOfVersion": "2.1.0" }, + { + "libraryName": "yn", + "typingsPackageName": "yn", + "sourceRepoURL": "https://github.com/sindresorhus/yn", + "asOfVersion": "3.1.0" + }, { "libraryName": "zapier-platform-core", "typingsPackageName": "zapier-platform-core", diff --git a/types/all-keys/all-keys-tests.ts b/types/all-keys/all-keys-tests.ts deleted file mode 100644 index 6bbb6021c7..0000000000 --- a/types/all-keys/all-keys-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import allKeys = require('all-keys'); - -allKeys(Symbol.prototype); // $ExpectType Set -allKeys(Symbol.prototype, { includeObjectPrototype: false }); // $ExpectType Set -allKeys(Symbol.prototype, { includeSymbols: false }); // $ExpectType Set diff --git a/types/all-keys/index.d.ts b/types/all-keys/index.d.ts deleted file mode 100644 index 9301c8f929..0000000000 --- a/types/all-keys/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Type definitions for all-keys 2.0 -// Project: https://github.com/sindresorhus/all-keys#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = allKeys; - -/** - * Get all property keys of an object including non-enumerable and inherited ones. - * Like [Reflect.ownKeys()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys) - * but traverses up the prototype-chain. - */ -declare function allKeys(obj: object, options?: allKeys.Options): Set; - -declare namespace allKeys { - interface Options { - /** - * Include `Object.prototype` properties like `isPrototypeOf`. - * @default true - */ - includeObjectPrototype?: boolean; - /** - * Include [Symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) keys. - * @default true - */ - includeSymbols?: boolean; - } -} diff --git a/types/all-keys/tsconfig.json b/types/all-keys/tsconfig.json deleted file mode 100644 index a6f20f786f..0000000000 --- a/types/all-keys/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", - "all-keys-tests.ts" - ] -} diff --git a/types/all-keys/tslint.json b/types/all-keys/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/all-keys/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/all-property-names/all-property-names-tests.ts b/types/all-property-names/all-property-names-tests.ts deleted file mode 100644 index b32daa59a3..0000000000 --- a/types/all-property-names/all-property-names-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import allPropertyNames = require('all-property-names'); - -// $ExpectType Set -allPropertyNames(Symbol.prototype); diff --git a/types/all-property-names/index.d.ts b/types/all-property-names/index.d.ts deleted file mode 100644 index 0b396ec94d..0000000000 --- a/types/all-property-names/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for all-property-names 1.0 -// Project: https://github.com/sindresorhus/all-property-names#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = allPropertyNames; - -declare function allPropertyNames(input: object): Set; diff --git a/types/all-property-names/tsconfig.json b/types/all-property-names/tsconfig.json deleted file mode 100644 index 394cd3bb53..0000000000 --- a/types/all-property-names/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", - "all-property-names-tests.ts" - ] -} diff --git a/types/all-property-names/tslint.json b/types/all-property-names/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/all-property-names/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ansi-escapes/ansi-escapes-tests.ts b/types/ansi-escapes/ansi-escapes-tests.ts deleted file mode 100644 index 7de77e797f..0000000000 --- a/types/ansi-escapes/ansi-escapes-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as ansi from "ansi-escapes"; - -console.log(ansi.cursorUp(2) + ansi.cursorLeft === "\u001B[2A\u001B[1000D"); diff --git a/types/ansi-escapes/index.d.ts b/types/ansi-escapes/index.d.ts deleted file mode 100644 index d01e74661a..0000000000 --- a/types/ansi-escapes/index.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -// Type definitions for ansi-escapes 3.0 -// Project: https://github.com/sindresorhus/ansi-escapes -// Definitions by: Rong Shen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare namespace Ansi { - interface ImageOptions { - width?: number; - height?: number; - preserveAspectRatio?: boolean; - } - - interface Term { - setCwd(cwd: string): string; - } - - interface AnsiEscapes { - cursorTo(x: number, y?: number): string; - cursorMove(x: number, y?: number): string; - cursorUp(count?: number): string; - cursorDown(count?: number): string; - cursorForward(count?: number): string; - cursorBackward(count?: number): string; - - cursorLeft: string; - cursorSavePosition: string; - cursorRestorePosition: string; - cursorGetPosition: string; - cursorNextLine: string; - cursorPrevLine: string; - cursorHide: string; - cursorShow: string; - - eraseLines(count: number): string; - - eraseEndLine: string; - eraseStartLine: string; - eraseLine: string; - eraseDown: string; - eraseUp: string; - eraseScreen: string; - scrollUp: string; - scrollDown: string; - - clearScreen: string; - beep: string; - - link(text: string, url: string): string; - image(buf: Buffer, opts?: ImageOptions): string; - iTerm: Term; - } -} - -declare const ansiEscapes: Ansi.AnsiEscapes; -export = ansiEscapes; diff --git a/types/ansi-escapes/tsconfig.json b/types/ansi-escapes/tsconfig.json deleted file mode 100644 index 210be31288..0000000000 --- a/types/ansi-escapes/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", "ansi-escapes-tests.ts"] -} diff --git a/types/ansi-escapes/tslint.json b/types/ansi-escapes/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ansi-escapes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/array-move/array-move-tests.ts b/types/array-move/array-move-tests.ts deleted file mode 100644 index 0bf720b751..0000000000 --- a/types/array-move/array-move-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import arrayMove = require('array-move'); - -const input = ['a', 'b', 'c']; -const input2 = [1, 2, 3]; - -arrayMove(input, 1, 2); // $ExpectType string[] -arrayMove(input2, 1, 2); // $ExpectType number[] -arrayMove.mut(input, 1, 2); // $ExpectType void diff --git a/types/array-move/index.d.ts b/types/array-move/index.d.ts deleted file mode 100644 index 9b9aae938a..0000000000 --- a/types/array-move/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Type definitions for array-move 1.0 -// Project: https://github.com/sindresorhus/array-move -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = arrayMove; - -/** - * Move an array item to a different position. - * - * @param from Index of item to move. If negative, it will begin that many elements from the end. - * @param to Index of where to move the item. If negative, it will begin that many elements from the end. - * @returns A new array with the item moved to the new position. - */ -declare function arrayMove(input: T, from: number, to: number): T; - -declare namespace arrayMove { - /** - * Moves the item to the new position in the input array. - * - * Useful for huge arrays where absolute performance is needed. - * - * @param from Index of item to move. If negative, it will begin that many elements from the end. - * @param to Index of where to move the item. If negative, it will begin that many elements from the end. - */ - function mut(input: any[], from: number, to: number): void; -} diff --git a/types/array-move/tsconfig.json b/types/array-move/tsconfig.json deleted file mode 100644 index 6b4a5d5bb0..0000000000 --- a/types/array-move/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", - "array-move-tests.ts" - ] -} diff --git a/types/array-move/tslint.json b/types/array-move/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/array-move/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/array-uniq/array-uniq-tests.ts b/types/array-uniq/array-uniq-tests.ts deleted file mode 100644 index b6c90c620a..0000000000 --- a/types/array-uniq/array-uniq-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import arrayUniq = require("array-uniq"); - -arrayUniq([1, 1, 2, 3, 3]); - -arrayUniq(["foo", "foo", "bar", "foo"]); diff --git a/types/array-uniq/index.d.ts b/types/array-uniq/index.d.ts deleted file mode 100644 index d05ad76072..0000000000 --- a/types/array-uniq/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for array-uniq 1.0 -// Project: https://github.com/sindresorhus/array-uniq -// Definitions by: Daniel Rosenwasser -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function arrayUniq(arr: T[]): T[]; - -export = arrayUniq; diff --git a/types/array-uniq/tsconfig.json b/types/array-uniq/tsconfig.json deleted file mode 100644 index 71557f6481..0000000000 --- a/types/array-uniq/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", - "array-uniq-tests.ts" - ] -} \ No newline at end of file diff --git a/types/array-uniq/tslint.json b/types/array-uniq/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/array-uniq/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/arrify/arrify-tests.ts b/types/arrify/arrify-tests.ts deleted file mode 100644 index 3fee89133d..0000000000 --- a/types/arrify/arrify-tests.ts +++ /dev/null @@ -1,86 +0,0 @@ -import * as arrify from 'arrify'; - -/***************** arrify *****************/ -arrify(null); -arrify(null); - -arrify(undefined); -arrify(undefined); - -arrify(1); -arrify([2, 3]); - -function test(val?: string | string[]) { - arrify(val); -} -/***************** arrify *****************/ - -/***************** arrify *****************/ -arrify(undefined); // returns [] - -arrify(null); // returns [] - -{ - const value: number | string[] = 2018; - arrify(value); // returns [2018] -} - -{ - const value: number[] | string | string[] = ['a', 'b']; - arrify(value); // returns ['a', 'b'] -} -/***************** arrify *****************/ - -/***************** arrify *****************/ -arrify(undefined); - -arrify(null); - -{ - const value: boolean | number[] | string[] = true; - // returns [true] - arrify(value); -} - -{ - const value: boolean[] | number | string[] = ['a', 'b']; - // returns ['a', 'b'] - arrify(value); -} -/***************** arrify *****************/ - -/***************** arrify *****************/ -arrify(undefined); - -arrify(null); - -{ - const value: boolean | Date | number[] | string[] = new Date(2018); - // returns [ new Date(2018) ] - arrify(value); -} - -{ - const value: boolean[] | Date[] | number | string = [true, false]; - // returns [true, false] - arrify(value); -} -/***************** arrify *****************/ - -/***************** arrify *****************/ -arrify(undefined); - -arrify(null); - -{ - const value: boolean | Date | number[] | RegExp | string[] = /test/; - // returns [ /test/ ] - arrify(value); -} - -{ - const value: boolean[] | Date[] | number | RegExp[] | string = [/test1/, /test2/]; - // returns [/test1/, /test2/] - arrify(value); -} -/***************** arrify *****************/ diff --git a/types/arrify/index.d.ts b/types/arrify/index.d.ts deleted file mode 100644 index 7c3c588ea6..0000000000 --- a/types/arrify/index.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -// Type definitions for arrify 1.0 -// Project: https://github.com/sindresorhus/arrify -// Definitions by: AnJun Wang -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * @example - * arrify(undefined) // returns [] - * @example - * arrify(null) // returns [] - * @example - * arrify(1) // returns [1] - * @example - * arrify([2, 3]) // returns [2, 3] - */ -declare function arrify(val: undefined | null | T | T[]): T[]; - -/** - * @example - * // returns [] - * arrify(undefined); - * @example - * // returns [] - * arrify(null); - * @example - * let value: number | string[] = 2018; - * // returns [2018] - * arrify(value); - * @example - * let value: number[] | string | string[] = ['a', 'b']; - * // returns ['a', 'b'] - * arrify(value); - */ -declare function arrify(val: undefined | null | T1 | T2 | T1[] | T2[]): T1[] | T2[]; - -/** - * @example - * // returns [] - * arrify(undefined); - * @example - * // returns [] - * arrify(null); - * @example - * let value: boolean | number[] | string[] = true; - * // returns [true] - * arrify(value); - * @example - * let value: boolean[] | number | string[] = ['a', 'b']; - * // returns ['a', 'b'] - * arrify(value); - */ -declare function arrify(val: undefined | null | T1 | T2 | T3 | T1[] | T2[] | T3[]): T1[] | T2[] | T3[]; - -/** - * @example - * // returns [] - * arrify(undefined); - * @example - * // returns [] - * arrify(null); - * @example - * let value: boolean | Date | number[] | string[] = new Date(2018); - * // returns [ new Date(2018) ] - * arrify(value); - * @example - * let value: boolean[] | Date[] | number | string = [true, false]; - * // returns [true, false] - * arrify(value); - */ -declare function arrify(val: undefined | null | T1 | T2 | T3 | T4 | T1[] | T2[] | T3[] | T4[]): T1[] | T2[] | T3[] | T4[]; - -/** - * @example - * // returns [] - * arrify(undefined); - * @example - * // returns [] - * arrify(null); - * @example - * let value: boolean | Date | number[] | RegExp | string[] = /test/; - * // returns [ /test/ ] - * arrify(value); - * @example - * let value: boolean[] | Date[] | number | RegExp[] | string = [/test1/, /test2/]; - * // returns [/test1/, /test2/] - * arrify(value); - */ -declare function arrify(val: undefined | null | T1 | T2 | T3 | T4 | T5 | T1[] | T2[] | T3[] | T4[] | T5[]): T1[] | T2[] | T3[] | T4[] | T5[]; - -declare namespace arrify {} -export = arrify; diff --git a/types/arrify/tsconfig.json b/types/arrify/tsconfig.json deleted file mode 100644 index 63d89a9c7f..0000000000 --- a/types/arrify/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", - "arrify-tests.ts" - ] -} \ No newline at end of file diff --git a/types/arrify/tslint.json b/types/arrify/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/arrify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/hard-rejection/hard-rejection-tests.ts b/types/hard-rejection/hard-rejection-tests.ts deleted file mode 100644 index f83e17a5b1..0000000000 --- a/types/hard-rejection/hard-rejection-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import hardRejection = require('hard-rejection'); -import 'hard-rejection/register'; - -hardRejection(); -hardRejection(stack => { - stack; // $ExpectType string | undefined -}); diff --git a/types/hard-rejection/index.d.ts b/types/hard-rejection/index.d.ts deleted file mode 100644 index 5036f30923..0000000000 --- a/types/hard-rejection/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for hard-rejection 1.0 -// Project: https://github.com/sindresorhus/hard-rejection#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = hardRejection; - -declare function hardRejection(log?: (stack?: string) => void): void; diff --git a/types/hard-rejection/tsconfig.json b/types/hard-rejection/tsconfig.json deleted file mode 100644 index 6c83946da7..0000000000 --- a/types/hard-rejection/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", - "hard-rejection-tests.ts" - ] -} \ No newline at end of file diff --git a/types/hard-rejection/tslint.json b/types/hard-rejection/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/hard-rejection/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-absolute-url/index.d.ts b/types/is-absolute-url/index.d.ts deleted file mode 100644 index eecb3998e0..0000000000 --- a/types/is-absolute-url/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-absolute-url 2.1 -// Project: https://github.com/sindresorhus/is-absolute-url#readme -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_absolute_url; -declare function is_absolute_url(url: string): boolean; diff --git a/types/is-absolute-url/is-absolute-url-tests.ts b/types/is-absolute-url/is-absolute-url-tests.ts deleted file mode 100644 index 4f8a225dad..0000000000 --- a/types/is-absolute-url/is-absolute-url-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import isAbsoluteUrl = require('is-absolute-url'); - -isAbsoluteUrl('http://sindresorhus.com/foo/bar'); -// => true - -isAbsoluteUrl('//sindresorhus.com'); -// => false - -isAbsoluteUrl('foo/bar'); -// => false diff --git a/types/is-absolute-url/tsconfig.json b/types/is-absolute-url/tsconfig.json deleted file mode 100644 index 57c46bb32b..0000000000 --- a/types/is-absolute-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", - "is-absolute-url-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-absolute-url/tslint.json b/types/is-absolute-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-absolute-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-fullwidth-code-point/index.d.ts b/types/is-fullwidth-code-point/index.d.ts deleted file mode 100644 index e5e666ad30..0000000000 --- a/types/is-fullwidth-code-point/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for is-fullwidth-code-point 2.0 -// Project: https://github.com/sindresorhus/is-fullwidth-code-point#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isFullwidthCodePoint; - -declare function isFullwidthCodePoint(input: number): boolean; diff --git a/types/is-fullwidth-code-point/is-fullwidth-code-point-tests.ts b/types/is-fullwidth-code-point/is-fullwidth-code-point-tests.ts deleted file mode 100644 index 6d2b6a6882..0000000000 --- a/types/is-fullwidth-code-point/is-fullwidth-code-point-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import isFullwidthCodePoint = require('is-fullwidth-code-point'); - -const codePoint = '谢'.codePointAt(0) as number; -isFullwidthCodePoint(codePoint); // $ExpectType boolean diff --git a/types/is-fullwidth-code-point/tsconfig.json b/types/is-fullwidth-code-point/tsconfig.json deleted file mode 100644 index 6915fd60a7..0000000000 --- a/types/is-fullwidth-code-point/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-fullwidth-code-point-tests.ts" - ] -} diff --git a/types/is-fullwidth-code-point/tslint.json b/types/is-fullwidth-code-point/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-fullwidth-code-point/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-relative-url/index.d.ts b/types/is-relative-url/index.d.ts deleted file mode 100644 index ac28dc0d9f..0000000000 --- a/types/is-relative-url/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for is-relative-url 2.0 -// Project: https://github.com/sindresorhus/is-relative-url -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = is_relative_url; -declare function is_relative_url(url: string): boolean; diff --git a/types/is-relative-url/is-relative-url-tests.ts b/types/is-relative-url/is-relative-url-tests.ts deleted file mode 100644 index 2e93e6f4ed..0000000000 --- a/types/is-relative-url/is-relative-url-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import isRelativeUrl = require('is-relative-url'); - -isRelativeUrl('foo/bar'); -// => true - -isRelativeUrl('http://sindresorhus.com/foo/bar'); -// => false - -isRelativeUrl('//sindresorhus.com'); -// => true diff --git a/types/is-relative-url/tsconfig.json b/types/is-relative-url/tsconfig.json deleted file mode 100644 index 1a85dcf51a..0000000000 --- a/types/is-relative-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", - "is-relative-url-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-relative-url/tslint.json b/types/is-relative-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-relative-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/junk/index.d.ts b/types/junk/index.d.ts deleted file mode 100644 index 390847e1c0..0000000000 --- a/types/junk/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for junk 2.1 -// Project: https://github.com/sindresorhus/junk#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Returns `true` if `filename` matches a junk file. - */ -export function is(filename: string): boolean; -/** - * Returns `true` if `filename` doesn't match a junk file. - */ -export function not(filename: string): boolean; -/** - * Regex used for matching. - */ -export const regex: RegExp; diff --git a/types/junk/junk-tests.ts b/types/junk/junk-tests.ts deleted file mode 100644 index 848eded660..0000000000 --- a/types/junk/junk-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// - -import fs = require('fs'); -import * as junk from 'junk'; - -junk.is('foo'); // $ExpectType boolean -junk.not('foo'); // $ExpectType boolean -junk.regex; // $ExpectType RegExp - -fs.readdir('some/path', (err, files) => { - files.filter(junk.not); -}); diff --git a/types/junk/tsconfig.json b/types/junk/tsconfig.json deleted file mode 100644 index 06710a9591..0000000000 --- a/types/junk/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", - "junk-tests.ts" - ] -} diff --git a/types/junk/tslint.json b/types/junk/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/junk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/load-json-file/index.d.ts b/types/load-json-file/index.d.ts deleted file mode 100644 index ec554289a5..0000000000 --- a/types/load-json-file/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for load-json-file 2.0 -// Project: https://github.com/sindresorhus/load-json-file -// Definitions by: Sam Verschueren -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface LoadJsonFile { - /** - * Returns a promise for the parsed JSON. - */ - (filepath: string): Promise; - - /** - * Returns the parsed JSON. - */ - sync(filepath: string): any; -} - -declare const loadJsonFile: LoadJsonFile; - -export = loadJsonFile; diff --git a/types/load-json-file/load-json-file-tests.ts b/types/load-json-file/load-json-file-tests.ts deleted file mode 100644 index ad44fe3df2..0000000000 --- a/types/load-json-file/load-json-file-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ -import * as loadJsonFile from 'load-json-file'; - -function assert(actual: string, expected: string): void { - if (actual !== expected) { - throw new Error(`${JSON.stringify(actual)} !== ${JSON.stringify(expected)}`); - } -} - -loadJsonFile('../package.json').then(pkg => { - assert(pkg.name, 'definitely-typed'); -}); - -const pkg = loadJsonFile.sync('../package.json'); -assert(pkg.name, 'definitely-typed'); diff --git a/types/load-json-file/tsconfig.json b/types/load-json-file/tsconfig.json deleted file mode 100644 index 9cbafc8746..0000000000 --- a/types/load-json-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", - "load-json-file-tests.ts" - ] -} \ No newline at end of file diff --git a/types/load-json-file/tslint.json b/types/load-json-file/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/load-json-file/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/loud-rejection/index.d.ts b/types/loud-rejection/index.d.ts deleted file mode 100644 index 7cbd354df2..0000000000 --- a/types/loud-rejection/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for loud-rejection 1.6 -// Project: https://github.com/sindresorhus/loud-rejection#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = loudRejection; - -declare function loudRejection(log?: (stack: string) => void): void; diff --git a/types/loud-rejection/loud-rejection-tests.ts b/types/loud-rejection/loud-rejection-tests.ts deleted file mode 100644 index 26bd151d4a..0000000000 --- a/types/loud-rejection/loud-rejection-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import loudRejection = require('loud-rejection'); -import 'loud-rejection/register'; - -loudRejection(); -loudRejection(stack => { - stack; // $ExpectType string -}); diff --git a/types/loud-rejection/tsconfig.json b/types/loud-rejection/tsconfig.json deleted file mode 100644 index 56909e692c..0000000000 --- a/types/loud-rejection/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", - "loud-rejection-tests.ts" - ] -} \ No newline at end of file diff --git a/types/loud-rejection/tslint.json b/types/loud-rejection/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/loud-rejection/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/os-name/index.d.ts b/types/os-name/index.d.ts deleted file mode 100644 index 4e974a251f..0000000000 --- a/types/os-name/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Type definitions for os-name 2.0 -// Project: https://github.com/sindresorhus/os-name#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -export = osName; - -declare function osName(): string; -declare function osName(platform: NodeJS.Platform, release: string): string; diff --git a/types/os-name/os-name-tests.ts b/types/os-name/os-name-tests.ts deleted file mode 100644 index 43c9cbad9e..0000000000 --- a/types/os-name/os-name-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as os from 'os'; -import osName = require('os-name'); - -osName(); -osName(os.platform(), os.release()); -osName('darwin', '14.0.0'); -osName('linux', '3.13.0-24-generic'); -osName('win32', '6.3.9600'); diff --git a/types/os-name/tsconfig.json b/types/os-name/tsconfig.json deleted file mode 100644 index f48355e962..0000000000 --- a/types/os-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", - "os-name-tests.ts" - ] -} \ No newline at end of file diff --git a/types/os-name/tslint.json b/types/os-name/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/os-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-all/index.d.ts b/types/p-all/index.d.ts deleted file mode 100644 index 8abf47f672..0000000000 --- a/types/p-all/index.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Type definitions for p-all 1.0 -// Project: https://github.com/sindresorhus/p-all#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pAll; - -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, - PromiseFactory, PromiseFactory, PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, - PromiseFactory, PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, - PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4, T5, T6, T7]>; -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4, T5, T6]>; -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4, T5]>; -declare function pAll( - tasks: [PromiseFactory, PromiseFactory, PromiseFactory, PromiseFactory], - options?: pAll.Options): Promise<[T1, T2, T3, T4]>; -declare function pAll(tasks: [PromiseFactory, PromiseFactory, PromiseFactory], options?: pAll.Options): Promise<[T1, T2, T3]>; -declare function pAll(tasks: [PromiseFactory, PromiseFactory], options?: pAll.Options): Promise<[T1, T2]>; -declare function pAll(tasks: [PromiseFactory], options?: pAll.Options): Promise<[T1]>; -declare function pAll(tasks: Iterable> | Array>, options?: pAll.Options): Promise; - -type PromiseFactory = () => Promise | PromiseLike; - -declare namespace pAll { - interface Options { - concurrency?: number; - } -} diff --git a/types/p-all/p-all-tests.ts b/types/p-all/p-all-tests.ts deleted file mode 100644 index 955b7a041f..0000000000 --- a/types/p-all/p-all-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ -import pAll = require('p-all'); - -const actions: [() => Promise, () => Promise, () => Promise, () => Promise] = [ - () => Promise.resolve('sindresorhus.com'), - () => Promise.resolve('ava.li'), - () => Promise.resolve(), - () => Promise.resolve(1) -]; - -pAll(actions, {concurrency: 2}).then(result => { - const str: string = result[0]; - const str2: string = result[1]; - const num: number = result[3]; -}); diff --git a/types/p-all/tsconfig.json b/types/p-all/tsconfig.json deleted file mode 100644 index 5cc346c4e3..0000000000 --- a/types/p-all/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-all-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-all/tslint.json b/types/p-all/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-all/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-defer/index.d.ts b/types/p-defer/index.d.ts deleted file mode 100644 index 8386706d89..0000000000 --- a/types/p-defer/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for p-defer 1.0 -// Project: https://github.com/sindresorhus/p-defer -// Definitions by: Sam Verschueren -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pDefer; - -declare function pDefer(): pDefer.DeferredPromise; - -declare namespace pDefer { - interface DeferredPromise { - resolve(value?: T | PromiseLike): void; - reject(reason: any): void; - promise: Promise; - } -} diff --git a/types/p-defer/p-defer-tests.ts b/types/p-defer/p-defer-tests.ts deleted file mode 100644 index f61bce624b..0000000000 --- a/types/p-defer/p-defer-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import pDefer = require('p-defer'); - -function delay(deferred: pDefer.DeferredPromise, ms: number) { - setTimeout(deferred.resolve, ms, '🦄'); - return deferred.promise; -} - -const s: Promise = delay(pDefer(), 100); - -// $ExpectType void -pDefer().resolve(); -// $ExpectType void -pDefer().reject('oh no'); diff --git a/types/p-defer/tsconfig.json b/types/p-defer/tsconfig.json deleted file mode 100644 index 06eb650dbe..0000000000 --- a/types/p-defer/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "p-defer-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-defer/tslint.json b/types/p-defer/tslint.json deleted file mode 100644 index 71ee04c4e1..0000000000 --- a/types/p-defer/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-unnecessary-generics": false - } -} diff --git a/types/p-do-whilst/index.d.ts b/types/p-do-whilst/index.d.ts deleted file mode 100644 index 221be35f12..0000000000 --- a/types/p-do-whilst/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for p-do-whilst 0.1 -// Project: https://github.com/sindresorhus/p-do-whilst#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pDoWhilst; - -declare function pDoWhilst(action: () => any, condition: () => boolean): Promise; diff --git a/types/p-do-whilst/p-do-whilst-tests.ts b/types/p-do-whilst/p-do-whilst-tests.ts deleted file mode 100644 index b63218ec29..0000000000 --- a/types/p-do-whilst/p-do-whilst-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import pDoWhilst = require('p-do-whilst'); - -let count = 0; - -pDoWhilst(() => count++, () => count < 5).then(() => {}); diff --git a/types/p-do-whilst/tsconfig.json b/types/p-do-whilst/tsconfig.json deleted file mode 100644 index 87392769da..0000000000 --- a/types/p-do-whilst/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-do-whilst-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-do-whilst/tslint.json b/types/p-do-whilst/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-do-whilst/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-forever/index.d.ts b/types/p-forever/index.d.ts deleted file mode 100644 index df95c88217..0000000000 --- a/types/p-forever/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Type definitions for p-forever 1.0 -// Project: https://github.com/sindresorhus/p-forever#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.7 - -export = pForever; - -declare function pForever( - fn: (previousValue?: T) => T | PromiseLike | typeof pForever.end -): Promise; -declare function pForever( - fn: (previousValue: T) => T | PromiseLike | typeof pForever.end, - initialValue: T -): Promise; - -declare namespace pForever { - const end: unique symbol; -} diff --git a/types/p-forever/p-forever-tests.ts b/types/p-forever/p-forever-tests.ts deleted file mode 100644 index d6d931799b..0000000000 --- a/types/p-forever/p-forever-tests.ts +++ /dev/null @@ -1,33 +0,0 @@ -import pForever = require('p-forever'); - -// $ExpectType Promise -pForever(i => { - // $ExpectType number - i; - i++; - return i <= 100 ? i : pForever.end; -}, 0); -// $ExpectType Promise -pForever(i => { - // $ExpectType number - i; - i++; - return i <= 100 ? Promise.resolve(i) : pForever.end; -}, 0); - -let i = 0; - -// $ExpectType Promise -pForever(prevI => { - // $ExpectType number | undefined - prevI; - i++; - return i <= 100 ? i : pForever.end; -}); -// $ExpectType Promise -pForever(prevI => { - // $ExpectType number | undefined - prevI; - i++; - return i <= 100 ? Promise.resolve(i) : pForever.end; -}); diff --git a/types/p-forever/tsconfig.json b/types/p-forever/tsconfig.json deleted file mode 100644 index 0bf6e83d7f..0000000000 --- a/types/p-forever/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-forever-tests.ts" - ] -} diff --git a/types/p-forever/tslint.json b/types/p-forever/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-forever/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-is-promise/index.d.ts b/types/p-is-promise/index.d.ts deleted file mode 100644 index 5fd5791038..0000000000 --- a/types/p-is-promise/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for p-is-promise 2.0 -// Project: https://github.com/sindresorhus/p-is-promise#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pIsPromise; - -declare function pIsPromise(promise: any): promise is Promise; diff --git a/types/p-is-promise/p-is-promise-tests.ts b/types/p-is-promise/p-is-promise-tests.ts deleted file mode 100644 index 3abe1f1115..0000000000 --- a/types/p-is-promise/p-is-promise-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pIsPromise = require('p-is-promise'); - -// $ExpectType boolean -pIsPromise(Promise.resolve('🦄')); -// $ExpectType boolean -pIsPromise('🦄'); diff --git a/types/p-is-promise/tsconfig.json b/types/p-is-promise/tsconfig.json deleted file mode 100644 index 37d295b57d..0000000000 --- a/types/p-is-promise/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-is-promise-tests.ts" - ] -} diff --git a/types/p-is-promise/tslint.json b/types/p-is-promise/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-is-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-lazy/index.d.ts b/types/p-lazy/index.d.ts deleted file mode 100644 index e64cfa6fc6..0000000000 --- a/types/p-lazy/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Type definitions for p-lazy 1.0 -// Project: https://github.com/sindresorhus/p-lazy#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = PLazy; - -declare class PLazy extends Promise { - static from(fn: () => T | PromiseLike): PLazy; -} diff --git a/types/p-lazy/p-lazy-tests.ts b/types/p-lazy/p-lazy-tests.ts deleted file mode 100644 index 16ab9e466b..0000000000 --- a/types/p-lazy/p-lazy-tests.ts +++ /dev/null @@ -1,23 +0,0 @@ -import PLazy = require('p-lazy'); - -const lazyPromise = new PLazy((resolve, reject) => { - if (!true) { - resolve('foo'); - } else { - reject(new Error()); - } -}); - -let str: string; - -lazyPromise.then(result => str = result); - -Promise.resolve() - .then(() => lazyPromise) - .then(value => str = value); - -let num: number; -PLazy.from(() => Promise.resolve(1)) - .then(value => num = value); -PLazy.from(() => 1) - .then(value => num = value); diff --git a/types/p-lazy/tsconfig.json b/types/p-lazy/tsconfig.json deleted file mode 100644 index 73b2e31142..0000000000 --- a/types/p-lazy/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-lazy-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-lazy/tslint.json b/types/p-lazy/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-lazy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-min-delay/index.d.ts b/types/p-min-delay/index.d.ts deleted file mode 100644 index ad3e8b52cc..0000000000 --- a/types/p-min-delay/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for p-min-delay 2.0 -// Project: https://github.com/sindresorhus/p-min-delay#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pMinDelay; - -declare function pMinDelay( - input: PromiseLike, - minimumDelay: number, - options?: pMinDelay.Options -): Promise; - -declare namespace pMinDelay { - interface Options { - delayRejection?: boolean; - } -} diff --git a/types/p-min-delay/p-min-delay-tests.ts b/types/p-min-delay/p-min-delay-tests.ts deleted file mode 100644 index 039ff5d28a..0000000000 --- a/types/p-min-delay/p-min-delay-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pMinDelay = require('p-min-delay'); - -// $ExpectType Promise -pMinDelay(Promise.resolve(1), 1000); -// $ExpectType Promise -pMinDelay(Promise.resolve("1"), 1000, { delayRejection: false }); diff --git a/types/p-min-delay/tsconfig.json b/types/p-min-delay/tsconfig.json deleted file mode 100644 index 60cae5f27a..0000000000 --- a/types/p-min-delay/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-min-delay-tests.ts" - ] -} diff --git a/types/p-min-delay/tslint.json b/types/p-min-delay/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-min-delay/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-reflect/index.d.ts b/types/p-reflect/index.d.ts deleted file mode 100644 index e3f12f2a77..0000000000 --- a/types/p-reflect/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Type definitions for p-reflect 1.0 -// Project: https://github.com/sindresorhus/p-reflect#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pReflect; - -declare function pReflect(promise: PromiseLike): Promise>; - -declare namespace pReflect { - type PromiseResult = PromiseFulfilledResult | PromiseRejectedResult; - - interface PromiseFulfilledResult { - isFulfilled: true; - isRejected: false; - value: T; - } - - interface PromiseRejectedResult { - isFulfilled: false; - isRejected: true; - reason: any; - } -} diff --git a/types/p-reflect/p-reflect-tests.ts b/types/p-reflect/p-reflect-tests.ts deleted file mode 100644 index 506c275fd0..0000000000 --- a/types/p-reflect/p-reflect-tests.ts +++ /dev/null @@ -1,15 +0,0 @@ -import pReflect = require('p-reflect'); - -pReflect(Promise.resolve('foo')).then(result => { - if (result.isFulfilled) { - const fulfilled: true = result.isFulfilled; - const rejected: false = result.isRejected; - const str: string = result.value; - result.reason; // $ExpectError - } else { - const fulfilled: false = result.isFulfilled; - const rejected: true = result.isRejected; - const err: any = result.reason; - result.value; // $ExpectError - } -}); diff --git a/types/p-reflect/tsconfig.json b/types/p-reflect/tsconfig.json deleted file mode 100644 index 0bd514215f..0000000000 --- a/types/p-reflect/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-reflect-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-reflect/tslint.json b/types/p-reflect/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-reflect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-settle/index.d.ts b/types/p-settle/index.d.ts deleted file mode 100644 index 7298ea055e..0000000000 --- a/types/p-settle/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Type definitions for p-settle 2.0 -// Project: https://github.com/sindresorhus/p-settle#readme -// Definitions by: Nate Silva -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace pSettle { - interface SettledResult { - isFulfilled: boolean; - isRejected: boolean; - /** If the promise was fulfilled, the resolved value */ - value?: T; - /** If the promise was rejected, the reason */ - reason?: any; - } -} - -/** - * Returns a Promise that is fulfilled when all promises in `input` are settled. - * - * The fulfilled value is an array of objects with the following properties: - * - * * `isFulfilled` - * * `isRejected` - * * `value` or `reason` (Depending on whether the promise fulfilled or rejected) - */ -declare function pSettle(input: Iterable>): Promise>>; - -export = pSettle; diff --git a/types/p-settle/p-settle-tests.ts b/types/p-settle/p-settle-tests.ts deleted file mode 100644 index c762d3cc8c..0000000000 --- a/types/p-settle/p-settle-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import pSettle = require('p-settle'); - -async function f() { - const promises: Array> = []; - for (let index = 0; index < 10; ++index) { - if (index % 3 === 0) { - promises.push(Promise.reject(new Error('i reject you'))); - } else { - promises.push(Promise.resolve('🦄')); - } - } - const results = await pSettle(promises); -} diff --git a/types/p-settle/tsconfig.json b/types/p-settle/tsconfig.json deleted file mode 100644 index ba288104e0..0000000000 --- a/types/p-settle/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "target": "es6", - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "p-settle-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-settle/tslint.json b/types/p-settle/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-settle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-time/index.d.ts b/types/p-time/index.d.ts deleted file mode 100644 index dd9cb80709..0000000000 --- a/types/p-time/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Type definitions for p-time 1.0 -// Project: https://github.com/sindresorhus/p-time#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 - -export = pTime; - -declare function pTime( - fn: (...args: TArgs) => PromiseLike -): (...args: TArgs) => pTime.PromiseWithTime; - -declare namespace pTime { - const log: typeof pTime; - - interface PromiseWithTime extends Promise { - time?: number; - } -} diff --git a/types/p-time/p-time-tests.ts b/types/p-time/p-time-tests.ts deleted file mode 100644 index 5f5102787c..0000000000 --- a/types/p-time/p-time-tests.ts +++ /dev/null @@ -1,24 +0,0 @@ -import pTime = require('p-time'); - -const wrappedFn = pTime(async (input: number) => { - return input; -}); - -// $ExpectType (input: number) => PromiseWithTime -wrappedFn; - -// $ExpectType number | undefined -wrappedFn(1).time; - -// $ExpectError -pTime((input: number) => { - return input; -}); - -// $ExpectError -wrappedFn('foo'); - -// $ExpectType (input: number) => PromiseWithTime -pTime.log(async (input: number) => { - return input; -}); diff --git a/types/p-time/tsconfig.json b/types/p-time/tsconfig.json deleted file mode 100644 index 13daf0f62a..0000000000 --- a/types/p-time/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-time-tests.ts" - ] -} diff --git a/types/p-time/tslint.json b/types/p-time/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-time/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-times/index.d.ts b/types/p-times/index.d.ts deleted file mode 100644 index aded44388a..0000000000 --- a/types/p-times/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for p-times 1.0 -// Project: https://github.com/sindresorhus/p-times#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pTimes; - -declare function pTimes( - count: number, - mapper: (index: number) => T | PromiseLike, - options?: pTimes.Options -): Promise; - -declare namespace pTimes { - interface Options { - concurrency?: number; - } -} diff --git a/types/p-times/p-times-tests.ts b/types/p-times/p-times-tests.ts deleted file mode 100644 index a506d03423..0000000000 --- a/types/p-times/p-times-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pTimes = require('p-times'); - -// $ExpectType Promise -pTimes(5, i => `🦄-${i + 1}`); -// $ExpectType Promise -pTimes(5, i => `🦄-${i + 1}`, { concurrency: 1 }); diff --git a/types/p-times/tsconfig.json b/types/p-times/tsconfig.json deleted file mode 100644 index 318aa53466..0000000000 --- a/types/p-times/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-times-tests.ts" - ] -} diff --git a/types/p-times/tslint.json b/types/p-times/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-times/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-try/index.d.ts b/types/p-try/index.d.ts deleted file mode 100644 index 9c76ef19e1..0000000000 --- a/types/p-try/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for p-try 2.0 -// Project: https://github.com/sindresorhus/p-try#readme -// Definitions by: BendingBender -// Linus Unnebäck -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pTry; - -declare function pTry(cb: (a: A, b: B, c: C, d: D, e: E, f: F, ...args: any[]) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D, e: E, f: F, ...args: any[]): Promise; -declare function pTry(cb: (a: A, b: B, c: C, d: D, e: E, f: F) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D, e: E, f: F): Promise; -declare function pTry(cb: (a: A, b: B, c: C, d: D, e: E) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D, e: E): Promise; -declare function pTry(cb: (a: A, b: B, c: C, d: D) => Promise | PromiseLike | T, a: A, b: B, c: C, d: D): Promise; -declare function pTry(cb: (a: A, b: B, c: C) => Promise | PromiseLike | T, a: A, b: B, c: C): Promise; -declare function pTry(cb: (a: A, b: B) => Promise | PromiseLike | T, a: A, b: B): Promise; -declare function pTry(cb: (a: A) => Promise | PromiseLike | T, a: A): Promise; -declare function pTry(cb: () => Promise | PromiseLike | T): Promise; diff --git a/types/p-try/p-try-tests.ts b/types/p-try/p-try-tests.ts deleted file mode 100644 index d4db28020e..0000000000 --- a/types/p-try/p-try-tests.ts +++ /dev/null @@ -1,36 +0,0 @@ -import pTry = require('p-try'); - -function throws(): never { - throw new Error('foo'); -} - -let str: string; -pTry(() => 'foo').then(value => { - str = value; -}); -pTry(() => Promise.resolve('foo')).then(value => { - str = value; -}); -pTry(throws).then(value => { - str = value; -}); - -declare function a(a: string): string; -declare function b(a: string, b: number): string; -declare function c(a: string, b: number, c: boolean): string; -declare function d(a: string, b: number, c: boolean, d: symbol): string; -declare function e(a: string, b: number, c: boolean, d: symbol, e: 'yes' | 'no'): string; -declare function f(a: string, b: number, c: boolean, d: symbol, e: 'yes' | 'no', f: 1 | 2): string; -declare function g(a: string, b: number, c: boolean, d: symbol, e: 'yes' | 'no', f: 1 | 2, g: true): string; - -pTry(a, 'test').then(v => { str = v; }); -pTry(b, 'test', 1).then(v => { str = v; }); -pTry(c, 'test', 1, false).then(v => { str = v; }); -pTry(d, 'test', 1, false, Symbol('test')).then(v => { str = v; }); -pTry(e, 'test', 1, false, Symbol('test'), 'no').then(v => { str = v; }); -pTry(f, 'test', 1, false, Symbol('test'), 'no', 2).then(v => { str = v; }); -pTry(g, 'test', 1, false, Symbol('test'), 'no', 2, true).then(v => { str = v; }); - -declare function add(...args: number[]): number; - -pTry(add, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13).then(v => (v === 91)); diff --git a/types/p-try/tsconfig.json b/types/p-try/tsconfig.json deleted file mode 100644 index b8ca67f073..0000000000 --- a/types/p-try/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-try-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-try/tslint.json b/types/p-try/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-try/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-wait-for/index.d.ts b/types/p-wait-for/index.d.ts deleted file mode 100644 index d7fa76e016..0000000000 --- a/types/p-wait-for/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for p-wait-for 2.0 -// Project: https://github.com/sindresorhus/p-wait-for#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pWaitFor; - -declare function pWaitFor(condition: () => PromiseLike | boolean, options?: pWaitFor.Options): Promise; - -declare namespace pWaitFor { - interface Options { - interval?: number; - timeout?: number; - } -} diff --git a/types/p-wait-for/p-wait-for-tests.ts b/types/p-wait-for/p-wait-for-tests.ts deleted file mode 100644 index ef23ef6526..0000000000 --- a/types/p-wait-for/p-wait-for-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import pWaitFor = require('p-wait-for'); - -pWaitFor(() => Promise.resolve(false)).then(() => {}); -pWaitFor(() => Promise.resolve(true), { interval: 1 }).then(() => {}); -pWaitFor(() => Promise.resolve(true), { timeout: 1 }).then(() => {}); -pWaitFor(() => false).then(() => {}); -pWaitFor(() => true, { interval: 1 }).then(() => {}); -pWaitFor(() => true, { timeout: 1 }).then(() => {}); diff --git a/types/p-wait-for/tsconfig.json b/types/p-wait-for/tsconfig.json deleted file mode 100644 index 7df0af64a1..0000000000 --- a/types/p-wait-for/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-wait-for-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-wait-for/tslint.json b/types/p-wait-for/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-wait-for/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-wait-for/v1/index.d.ts b/types/p-wait-for/v1/index.d.ts deleted file mode 100644 index 5e8f88d413..0000000000 --- a/types/p-wait-for/v1/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for p-wait-for 1.0 -// Project: https://github.com/sindresorhus/p-wait-for#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pWaitFor; - -declare function pWaitFor(condition: () => PromiseLike | boolean, interval?: number): Promise; diff --git a/types/p-wait-for/v1/p-wait-for-tests.ts b/types/p-wait-for/v1/p-wait-for-tests.ts deleted file mode 100644 index 587d08d5a5..0000000000 --- a/types/p-wait-for/v1/p-wait-for-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pWaitFor = require('p-wait-for'); - -pWaitFor(() => Promise.resolve(false)).then(() => {}); -pWaitFor(() => Promise.resolve(true), 1).then(() => {}); -pWaitFor(() => false).then(() => {}); -pWaitFor(() => true, 1).then(() => {}); diff --git a/types/p-wait-for/v1/tsconfig.json b/types/p-wait-for/v1/tsconfig.json deleted file mode 100644 index 2d81275cae..0000000000 --- a/types/p-wait-for/v1/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "p-wait-for": [ "p-wait-for/v1" ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "p-wait-for-tests.ts" - ] -} diff --git a/types/p-wait-for/v1/tslint.json b/types/p-wait-for/v1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-wait-for/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-waterfall/index.d.ts b/types/p-waterfall/index.d.ts deleted file mode 100644 index d78f1928dd..0000000000 --- a/types/p-waterfall/index.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -// Type definitions for p-waterfall 1.0 -// Project: https://github.com/sindresorhus/p-waterfall#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 - -export = pWaterfall; - -type Task = (previousValue: T) => R | PromiseLike; -type InitialTask = () => R | PromiseLike; - -declare function pWaterfall(tasks: [InitialTask]): Promise; -declare function pWaterfall(tasks: [InitialTask, Task]): Promise; -declare function pWaterfall( - tasks: [InitialTask, Task, Task] -): Promise; -declare function pWaterfall( - tasks: [InitialTask, Task, Task, Task] -): Promise; -declare function pWaterfall( - tasks: [InitialTask, Task, Task, Task, Task] -): Promise; -declare function pWaterfall( - tasks: [InitialTask, Task, Task, Task, Task, Task] -): Promise; -declare function pWaterfall( - tasks: [ - InitialTask, - Task, - Task, - Task, - Task, - Task, - Task - ] -): Promise; -declare function pWaterfall( - tasks: [ - InitialTask, - Task, - Task, - Task, - Task, - Task, - Task, - Task - ] -): Promise; - -declare function pWaterfall(tasks: [Task], initialValue: T1): Promise; -declare function pWaterfall( - tasks: [Task, Task], - initialValue: T1 -): Promise; -declare function pWaterfall( - tasks: [Task, Task, Task], - initialValue: T1 -): Promise; -declare function pWaterfall( - tasks: [Task, Task, Task, Task], - initialValue: T1 -): Promise; -declare function pWaterfall( - tasks: [Task, Task, Task, Task, Task], - initialValue: T1 -): Promise; -declare function pWaterfall( - tasks: [Task, Task, Task, Task, Task, Task], - initialValue: T1 -): Promise; -declare function pWaterfall( - tasks: [ - Task, - Task, - Task, - Task, - Task, - Task, - Task - ], - initialValue: T1 -): Promise; -declare function pWaterfall( - tasks: [ - Task, - Task, - Task, - Task, - Task, - Task, - Task, - Task - ], - initialValue: T1 -): Promise; - -declare function pWaterfall(tasks: Iterable>, initialValue?: any): Promise; diff --git a/types/p-waterfall/p-waterfall-tests.ts b/types/p-waterfall/p-waterfall-tests.ts deleted file mode 100644 index f05587acc1..0000000000 --- a/types/p-waterfall/p-waterfall-tests.ts +++ /dev/null @@ -1,171 +0,0 @@ -import pWaterfall = require('p-waterfall'); - -pWaterfall([() => `I ❤️ unicorn`]).then(finalValue => { - // $ExpectType string - finalValue; -}); -pWaterfall([() => `I ❤️ unicorn`, (str: string) => true]).then(finalValue => { - // $ExpectType boolean - finalValue; -}); -pWaterfall([() => `I ❤️ unicorn`, (str: string) => true, (bool: boolean) => 1]).then(finalValue => { - // $ExpectType number - finalValue; -}); -pWaterfall([ - () => `I ❤️ unicorn`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, -]).then(finalValue => { - // $ExpectType null - finalValue; -}); -pWaterfall([ - () => `I ❤️ unicorn`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, -]).then(finalValue => { - // $ExpectType undefined - finalValue; -}); -pWaterfall([ - () => `I ❤️ unicorn`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - (u: undefined) => ({}), -]).then(finalValue => { - // $ExpectType {} - finalValue; -}); -pWaterfall([ - () => `I ❤️ unicorn`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - (u: undefined) => ({}), - (o: {}) => 'foo', -]).then(finalValue => { - // $ExpectType string - finalValue; -}); -pWaterfall([ - () => `I ❤️ unicorn`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - (u: undefined) => ({}), - (o: {}) => 'foo', - (s: string) => 1, -]).then(finalValue => { - // $ExpectType number - finalValue; -}); - -pWaterfall([previousValue => `I ❤️ ${previousValue}`], 'unicorn').then(finalValue => { - // $ExpectType string - finalValue; -}); -pWaterfall([previousValue => `I ❤️ ${previousValue}`, (str: string) => true], 'unicorn').then( - finalValue => { - // $ExpectType boolean - finalValue; - } -); -pWaterfall( - [previousValue => `I ❤️ ${previousValue}`, (str: string) => true, (bool: boolean) => 1], - 'unicorn' -).then(finalValue => { - // $ExpectType number - finalValue; -}); -pWaterfall( - [ - previousValue => `I ❤️ ${previousValue}`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - ], - 'unicorn' -).then(finalValue => { - // $ExpectType null - finalValue; -}); -pWaterfall( - [ - previousValue => `I ❤️ ${previousValue}`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - ], - 'unicorn' -).then(finalValue => { - // $ExpectType undefined - finalValue; -}); -pWaterfall( - [ - previousValue => `I ❤️ ${previousValue}`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - (u: undefined) => ({}), - ], - 'unicorn' -).then(finalValue => { - // $ExpectType {} - finalValue; -}); -pWaterfall( - [ - previousValue => `I ❤️ ${previousValue}`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - (u: undefined) => ({}), - (o: {}) => 'foo', - ], - 'unicorn' -).then(finalValue => { - // $ExpectType string - finalValue; -}); -pWaterfall( - [ - previousValue => `I ❤️ ${previousValue}`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - (u: undefined) => ({}), - (o: {}) => 'foo', - (s: string) => 1, - ], - 'unicorn' -).then(finalValue => { - // $ExpectType number - finalValue; -}); - -pWaterfall( - new Set([ - (previousValue: string) => `I ❤️ ${previousValue}`, - (str: string) => true, - (bool: boolean) => 1, - (num: number) => null, - (n: null) => undefined, - ]), - 'unicorn' -).then(finalValue => { - // $ExpectType any - finalValue; -}); diff --git a/types/p-waterfall/tsconfig.json b/types/p-waterfall/tsconfig.json deleted file mode 100644 index 9907fc1223..0000000000 --- a/types/p-waterfall/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-waterfall-tests.ts" - ] -} diff --git a/types/p-waterfall/tslint.json b/types/p-waterfall/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-waterfall/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/p-whilst/index.d.ts b/types/p-whilst/index.d.ts deleted file mode 100644 index 26efc254fa..0000000000 --- a/types/p-whilst/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for p-whilst 1.0 -// Project: https://github.com/sindresorhus/p-whilst#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pWhilst; - -declare function pWhilst(condition: () => boolean, action: () => any): Promise; diff --git a/types/p-whilst/p-whilst-tests.ts b/types/p-whilst/p-whilst-tests.ts deleted file mode 100644 index fe9caa86a3..0000000000 --- a/types/p-whilst/p-whilst-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import pWhilst = require('p-whilst'); - -let count = 0; - -pWhilst(() => count < 5, () => count++).then(() => {}); diff --git a/types/p-whilst/tsconfig.json b/types/p-whilst/tsconfig.json deleted file mode 100644 index 3309a228fc..0000000000 --- a/types/p-whilst/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-whilst-tests.ts" - ] -} \ No newline at end of file diff --git a/types/p-whilst/tslint.json b/types/p-whilst/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/p-whilst/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sdbm/index.d.ts b/types/sdbm/index.d.ts deleted file mode 100644 index e2edb994d0..0000000000 --- a/types/sdbm/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for sdbm 1.0 -// Project: https://github.com/sindresorhus/sdbm#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = sdbm; - -declare function sdbm(string: string): number; diff --git a/types/sdbm/sdbm-tests.ts b/types/sdbm/sdbm-tests.ts deleted file mode 100644 index 6b586efff1..0000000000 --- a/types/sdbm/sdbm-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import sdbm = require('sdbm'); - -// $ExpectType number -sdbm('🦄🌈'); diff --git a/types/sdbm/tsconfig.json b/types/sdbm/tsconfig.json deleted file mode 100644 index cad9717aae..0000000000 --- a/types/sdbm/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", - "sdbm-tests.ts" - ] -} diff --git a/types/sdbm/tslint.json b/types/sdbm/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sdbm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/serialize-error/index.d.ts b/types/serialize-error/index.d.ts deleted file mode 100644 index 56ae34df60..0000000000 --- a/types/serialize-error/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for serialize-error 2.1 -// Project: https://github.com/sindresorhus/serialize-error -// Definitions by: Thomas Thiebaud -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function SerializeError(error: any): SerializeError.ErrorObject; - -declare namespace SerializeError { - interface ErrorObject { - name: string; - stack: string; - message: string; - [keyof: string]: string; - } -} - -export = SerializeError; diff --git a/types/serialize-error/serialize-error-tests.ts b/types/serialize-error/serialize-error-tests.ts deleted file mode 100644 index 721fae45f4..0000000000 --- a/types/serialize-error/serialize-error-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import serializeError = require('serialize-error'); - -const error = new Error('unicorn'); - -const serializedError = serializeError(error); diff --git a/types/serialize-error/tsconfig.json b/types/serialize-error/tsconfig.json deleted file mode 100644 index 83731d0922..0000000000 --- a/types/serialize-error/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true - }, - "files": [ - "index.d.ts", - "serialize-error-tests.ts" - ] -} diff --git a/types/serialize-error/tslint.json b/types/serialize-error/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/serialize-error/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sindresorhus__djb2a/index.d.ts b/types/sindresorhus__djb2a/index.d.ts deleted file mode 100644 index 2b29644bb6..0000000000 --- a/types/sindresorhus__djb2a/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for non-npm package @sindresorhus/djb2a 1.0 -// Project: https://github.com/sindresorhus/djb2a -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = djb2a; - -declare function djb2a(string: string): number; diff --git a/types/sindresorhus__djb2a/sindresorhus__djb2a-tests.ts b/types/sindresorhus__djb2a/sindresorhus__djb2a-tests.ts deleted file mode 100644 index 8af200101e..0000000000 --- a/types/sindresorhus__djb2a/sindresorhus__djb2a-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import djb2a = require('@sindresorhus/djb2a'); - -// $ExpectType number -djb2a('🦄🌈'); diff --git a/types/sindresorhus__djb2a/tsconfig.json b/types/sindresorhus__djb2a/tsconfig.json deleted file mode 100644 index e88751963c..0000000000 --- a/types/sindresorhus__djb2a/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "paths": { - "@sindresorhus/djb2a": [ - "sindresorhus__djb2a" - ] - }, - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sindresorhus__djb2a-tests.ts" - ] -} diff --git a/types/sindresorhus__djb2a/tslint.json b/types/sindresorhus__djb2a/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sindresorhus__djb2a/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sindresorhus__fnv1a/index.d.ts b/types/sindresorhus__fnv1a/index.d.ts deleted file mode 100644 index 732d8cbd52..0000000000 --- a/types/sindresorhus__fnv1a/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for @sindresorhus/fnv1a 1.0 -// Project: https://github.com/sindresorhus/fnv1a -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = fnv1a; - -declare function fnv1a(string: string): number; diff --git a/types/sindresorhus__fnv1a/sindresorhus__fnv1a-tests.ts b/types/sindresorhus__fnv1a/sindresorhus__fnv1a-tests.ts deleted file mode 100644 index 9c5a525d85..0000000000 --- a/types/sindresorhus__fnv1a/sindresorhus__fnv1a-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import fnv1a = require('@sindresorhus/fnv1a'); - -// $ExpectType number -fnv1a('🦄🌈'); diff --git a/types/sindresorhus__fnv1a/tsconfig.json b/types/sindresorhus__fnv1a/tsconfig.json deleted file mode 100644 index 6ac527a578..0000000000 --- a/types/sindresorhus__fnv1a/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "paths": { - "@sindresorhus/fnv1a": [ - "sindresorhus__fnv1a" - ] - }, - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sindresorhus__fnv1a-tests.ts" - ] -} diff --git a/types/sindresorhus__fnv1a/tslint.json b/types/sindresorhus__fnv1a/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sindresorhus__fnv1a/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sindresorhus__string-hash/index.d.ts b/types/sindresorhus__string-hash/index.d.ts deleted file mode 100644 index 84b0de28a5..0000000000 --- a/types/sindresorhus__string-hash/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for @sindresorhus/string-hash 1.0 -// Project: https://github.com/sindresorhus/string-hash -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = stringHash; - -declare function stringHash(input: string): number; diff --git a/types/sindresorhus__string-hash/sindresorhus__string-hash-tests.ts b/types/sindresorhus__string-hash/sindresorhus__string-hash-tests.ts deleted file mode 100644 index 4a685a476d..0000000000 --- a/types/sindresorhus__string-hash/sindresorhus__string-hash-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import stringHash = require('@sindresorhus/string-hash'); - -stringHash('🦄🌈'); // $ExpectType number diff --git a/types/sindresorhus__string-hash/tsconfig.json b/types/sindresorhus__string-hash/tsconfig.json deleted file mode 100644 index c0464c0e42..0000000000 --- a/types/sindresorhus__string-hash/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "paths": { - "@sindresorhus/string-hash": [ - "sindresorhus__string-hash" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sindresorhus__string-hash-tests.ts" - ] -} diff --git a/types/sindresorhus__string-hash/tslint.json b/types/sindresorhus__string-hash/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sindresorhus__string-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sindresorhus__to-milliseconds/index.d.ts b/types/sindresorhus__to-milliseconds/index.d.ts deleted file mode 100644 index 8eb44b2a7b..0000000000 --- a/types/sindresorhus__to-milliseconds/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for @sindresorhus/to-milliseconds 1.0 -// Project: https://github.com/sindresorhus/to-milliseconds -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = toMilliseconds; - -declare function toMilliseconds(input: toMilliseconds.TimeSpec): number; - -declare namespace toMilliseconds { - interface TimeSpec { - days?: number; - hours?: number; - minutes?: number; - seconds?: number; - milliseconds?: number; - microseconds?: number; - nanoseconds?: number; - } -} diff --git a/types/sindresorhus__to-milliseconds/sindresorhus__to-milliseconds-tests.ts b/types/sindresorhus__to-milliseconds/sindresorhus__to-milliseconds-tests.ts deleted file mode 100644 index aff7ba6fe0..0000000000 --- a/types/sindresorhus__to-milliseconds/sindresorhus__to-milliseconds-tests.ts +++ /dev/null @@ -1,24 +0,0 @@ -import toMilliseconds = require('@sindresorhus/to-milliseconds'); - -// $ExpectType number -toMilliseconds({ - days: 15, -}); -toMilliseconds({ - hours: 11, -}); -toMilliseconds({ - minutes: 23, -}); -toMilliseconds({ - seconds: 20, -}); -toMilliseconds({ - milliseconds: 1, -}); -toMilliseconds({ - microseconds: 1, -}); -toMilliseconds({ - nanoseconds: 1, -}); diff --git a/types/sindresorhus__to-milliseconds/tsconfig.json b/types/sindresorhus__to-milliseconds/tsconfig.json deleted file mode 100644 index be9b1a9bec..0000000000 --- a/types/sindresorhus__to-milliseconds/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "paths": { - "@sindresorhus/to-milliseconds": [ - "sindresorhus__to-milliseconds" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sindresorhus__to-milliseconds-tests.ts" - ] -} diff --git a/types/sindresorhus__to-milliseconds/tslint.json b/types/sindresorhus__to-milliseconds/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sindresorhus__to-milliseconds/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/string-length/index.d.ts b/types/string-length/index.d.ts deleted file mode 100644 index 4f4ce92f3c..0000000000 --- a/types/string-length/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for string-length 2.0 -// Project: https://github.com/sindresorhus/string-length#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = stringLength; - -declare function stringLength(input: string): number; diff --git a/types/string-length/string-length-tests.ts b/types/string-length/string-length-tests.ts deleted file mode 100644 index aea7a4a4ce..0000000000 --- a/types/string-length/string-length-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import stringLength = require('string-length'); - -stringLength('🐴'); // $ExpectType number -stringLength('\u001B[1municorn\u001B[22m'); // $ExpectType number diff --git a/types/string-length/tsconfig.json b/types/string-length/tsconfig.json deleted file mode 100644 index 33d5f5e197..0000000000 --- a/types/string-length/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", - "string-length-tests.ts" - ] -} diff --git a/types/string-length/tslint.json b/types/string-length/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/string-length/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/string-width/index.d.ts b/types/string-width/index.d.ts deleted file mode 100644 index d896fe3c79..0000000000 --- a/types/string-width/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for string-width 2.0 -// Project: https://github.com/sindresorhus/string-width -// Definitions by: Rong Shen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare function stringWidth(text: string): number; -export = stringWidth; diff --git a/types/string-width/string-width-tests.ts b/types/string-width/string-width-tests.ts deleted file mode 100644 index f48fb647af..0000000000 --- a/types/string-width/string-width-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import stringWidth = require("string-width"); - -stringWidth("古"); -// => 2 diff --git a/types/string-width/tsconfig.json b/types/string-width/tsconfig.json deleted file mode 100644 index bc216bafd3..0000000000 --- a/types/string-width/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", "string-width-tests.ts"] -} diff --git a/types/string-width/tslint.json b/types/string-width/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/string-width/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/strip-ansi/index.d.ts b/types/strip-ansi/index.d.ts deleted file mode 100644 index c31ee6aa8c..0000000000 --- a/types/strip-ansi/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for strip-ansi 3.0 -// Project: https://github.com/chalk/strip-ansi -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = strip_ansi; -declare function strip_ansi(str: string): string; diff --git a/types/strip-ansi/strip-ansi-tests.ts b/types/strip-ansi/strip-ansi-tests.ts deleted file mode 100644 index a39d45bd86..0000000000 --- a/types/strip-ansi/strip-ansi-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import stripAnsi = require('strip-ansi'); - -stripAnsi('\u001b[4mcake\u001b[0m'); -// => 'cake' diff --git a/types/strip-ansi/tsconfig.json b/types/strip-ansi/tsconfig.json deleted file mode 100644 index 6653db94fb..0000000000 --- a/types/strip-ansi/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-ansi-tests.ts" - ] -} \ No newline at end of file diff --git a/types/strip-ansi/tslint.json b/types/strip-ansi/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/strip-ansi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/subsume/index.d.ts b/types/subsume/index.d.ts deleted file mode 100644 index e42c97cd4f..0000000000 --- a/types/subsume/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Type definitions for subsume 2.0 -// Project: https://github.com/sindresorhus/subsume#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = Subsume; - -declare class Subsume { - static parse(text: string, id: string): Subsume.ParseResult; - static parseAll(text: string, ids?: string[]): Subsume.ParseResults; - - id: string; - prefix: string; - postfix: string; - regex: RegExp; - - constructor(id?: string); - compose(text: string): string; - parse(text: string): Subsume.ParseResult; -} - -declare namespace Subsume { - interface ParseResult { - data?: string; - rest: string; - } - - interface ParseResults { - data: Map; - rest: string; - } -} diff --git a/types/subsume/subsume-tests.ts b/types/subsume/subsume-tests.ts deleted file mode 100644 index 56234d275b..0000000000 --- a/types/subsume/subsume-tests.ts +++ /dev/null @@ -1,30 +0,0 @@ -import Subsume = require('subsume'); - -const subsume = new Subsume(); -new Subsume('foo'); - -subsume.id; // $ExpectType string -subsume.prefix; // $ExpectType string -subsume.postfix; // $ExpectType string -subsume.regex; // $ExpectType RegExp - -const text = subsume.compose('🦄'); -text; // $ExpectType string - -const output = `some${text} random text`; - -const res = subsume.parse(output); -res; // $ExpectType ParseResult -res.data; // $ExpectType string | undefined -res.rest; // $ExpectType string - -const input = - 'some@@[7febcd0b3806fbc48c01d7cea4ed1219]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1219]## random text'; -Subsume.parse(input, '7febcd0b3806fbc48c01d7cea4ed1219'); // $ExpectType ParseResult - -const input2 = - 'some@@[7febcd0b3806fbc48c01d7cea4ed1219]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1219]## ' + - 'random@@[7febcd0b3806fbc48c01d7cea4ed1218]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1218]## ' + - 'text@@[7febcd0b3806fbc48c01d7cea4ed1217]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1217]##'; -Subsume.parseAll(input2); // $ExpectType ParseResults -Subsume.parseAll(input2, ['7febcd0b3806fbc48c01d7cea4ed1219']); // $ExpectType ParseResults diff --git a/types/subsume/tsconfig.json b/types/subsume/tsconfig.json deleted file mode 100644 index 7eefbf76e9..0000000000 --- a/types/subsume/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", - "subsume-tests.ts" - ] -} diff --git a/types/subsume/tslint.json b/types/subsume/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/subsume/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/subsume/v1/index.d.ts b/types/subsume/v1/index.d.ts deleted file mode 100644 index 7ec2f9d568..0000000000 --- a/types/subsume/v1/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for subsume 1.0 -// Project: https://github.com/sindresorhus/subsume#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = Subsume; - -declare class Subsume { - static parse(text: string, id: string): Subsume.ParseResult; - - id: string; - prefix: string; - postfix: string; - regex: RegExp; - - constructor(id?: string); - compose(text: string): string; - parse(text: string): Subsume.ParseResult; -} - -declare namespace Subsume { - interface ParseResult { - data?: string; - rest: string; - } -} diff --git a/types/subsume/v1/subsume-tests.ts b/types/subsume/v1/subsume-tests.ts deleted file mode 100644 index 263553733a..0000000000 --- a/types/subsume/v1/subsume-tests.ts +++ /dev/null @@ -1,22 +0,0 @@ -import Subsume = require('subsume'); - -const subsume = new Subsume(); -new Subsume('foo'); - -subsume.id; // $ExpectType string -subsume.prefix; // $ExpectType string -subsume.postfix; // $ExpectType string -subsume.regex; // $ExpectType RegExp - -const text = subsume.compose('🦄'); -text; // $ExpectType string - -const output = `some${text} random text`; - -const res = subsume.parse(output); -res; // $ExpectType ParseResult -res.data; // $ExpectType string | undefined -res.rest; // $ExpectType string - -const input = 'some@@[7febcd0b3806fbc48c01d7cea4ed1219]@@🦄##[7febcd0b3806fbc48c01d7cea4ed1219]## random text'; -Subsume.parse(text, '7febcd0b3806fbc48c01d7cea4ed1219'); // $ExpectType ParseResult diff --git a/types/subsume/v1/tsconfig.json b/types/subsume/v1/tsconfig.json deleted file mode 100644 index 0e0565e161..0000000000 --- a/types/subsume/v1/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "subsume": [ - "subsume/v1" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "subsume-tests.ts" - ] -} diff --git a/types/subsume/v1/tslint.json b/types/subsume/v1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/subsume/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/yn/index.d.ts b/types/yn/index.d.ts deleted file mode 100644 index 7c7ab0be1e..0000000000 --- a/types/yn/index.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Type definitions for yn 3.0 -// Project: https://github.com/sindresorhus/yn#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = yn; - -/** - * Parse yes/no like values. Useful for validating answers of a CLI prompt. - * - * @param input Value that should be converted. The following case-insensitive values are recognized: - * `'y'`, `'yes'`, `'true'`, `true`, `'1'`, `1`, `'n'`, `'no'`, `'false'`, `false`, `'0'`, `0` - * @param options - */ -declare function yn(input: any, options: yn.OptionsWithDefault): boolean; -declare function yn(input: any, options?: yn.Options): boolean | null; - -declare namespace yn { - interface OptionsWithDefault extends Options { - default: boolean; - } - - interface Options { - /** - * Use a key distance-based score to leniently accept typos of `yes` and `no`. - * @default false - */ - lenient?: boolean; - - /** - * Default value if no match was found. - * @default null - */ - default?: boolean | null; - } -} diff --git a/types/yn/tsconfig.json b/types/yn/tsconfig.json deleted file mode 100644 index b30bfa490e..0000000000 --- a/types/yn/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", - "yn-tests.ts" - ] -} diff --git a/types/yn/tslint.json b/types/yn/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/yn/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/yn/yn-tests.ts b/types/yn/yn-tests.ts deleted file mode 100644 index 62996be5f5..0000000000 --- a/types/yn/yn-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import yn = require('yn'); - -yn('y'); // $ExpectType boolean | null -yn('mo', { lenient: true }); // $ExpectType boolean | null -yn('abomasum', { default: false }); // $ExpectType boolean