From e85330bab6a337f61cd7a245086df16bf22fdb88 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 18 Jul 2017 00:53:41 -0600 Subject: [PATCH 001/166] Updated merge streams to simply use readablestream rather than readwritestream because readablestream is a much better super type of the type of streams supported --- types/merge2/index.d.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 3e9c30b6c9..67b2688058 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -1,23 +1,21 @@ -// Type definitions for merge2 v0.3.6 +// Type definitions for merge2 v1.1.0 // Project: https://github.com/teambition/merge2 // Definitions by: Tanguy Krotoff +// Chigozirim C. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +import {DuplexOptions} from 'stream'; -interface IOptions { - end?: boolean; - objectMode?: boolean; -} +type StreamType = NodeJS.ReadableStream | IMerge2Stream; interface IMerge2Stream extends NodeJS.ReadWriteStream { - add(...args: Array>): IMerge2Stream; + add(...args: Array>): IMerge2Stream; } -interface IMerge2 { - (...args: Array | IOptions>): IMerge2Stream; -} +declare function IMerge2 (...args: Array | DuplexOptions>): IMerge2Stream; -declare var _tmp: IMerge2; -export = _tmp; +declare namespace IMerge2 {} + +export = IMerge2; From eba786d187dabe0517ac57225624809bb923254f Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 18 Jul 2017 00:54:17 -0600 Subject: [PATCH 002/166] Updated imports within the tests --- types/merge2/merge2-tests.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/types/merge2/merge2-tests.ts b/types/merge2/merge2-tests.ts index 8f95b82bda..c21db879a1 100644 --- a/types/merge2/merge2-tests.ts +++ b/types/merge2/merge2-tests.ts @@ -1,8 +1,5 @@ - - - -import gulp = require('gulp'); -import * as merge2 from "merge2"; +import * as gulp from 'gulp'; +import * as merge2 from 'merge2'; gulp.task('app-js', () => merge2( From 58a0af925b9f00bcb46514ed1cde3b402745b046 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 18 Jul 2017 01:08:29 -0600 Subject: [PATCH 003/166] Committing line feed changes --- types/css-modules/css-modules-tests.ts | 42 +++++++------- types/css-modules/index.d.ts | 76 +++++++++++++------------- types/css-modules/tsconfig.json | 42 +++++++------- 3 files changed, 80 insertions(+), 80 deletions(-) diff --git a/types/css-modules/css-modules-tests.ts b/types/css-modules/css-modules-tests.ts index 5876f5beae..e6479ba2d5 100644 --- a/types/css-modules/css-modules-tests.ts +++ b/types/css-modules/css-modules-tests.ts @@ -1,21 +1,21 @@ -import styles from './main.sass'; -import * as classNames from 'classnames'; - -class App { - private theme: string; - constructor(theme: string) { - this.theme = theme; - } - - render() { - // as a style tag (using webpack's css-loader) - const tpl = `
`; - // or as scoped unique classes, also latest typescript versions allow prop access using dot like styles.darkUI instead of styles['darkUI'] - return ` -
-
- `; - } -} +import styles from './main.sass'; +import * as classNames from 'classnames'; + +class App { + private theme: string; + constructor(theme: string) { + this.theme = theme; + } + + render() { + // as a style tag (using webpack's css-loader) + const tpl = `
`; + // or as scoped unique classes, also latest typescript versions allow prop access using dot like styles.darkUI instead of styles['darkUI'] + return ` +
+
+ `; + } +} diff --git a/types/css-modules/index.d.ts b/types/css-modules/index.d.ts index 7d7bd52abd..832ae27406 100644 --- a/types/css-modules/index.d.ts +++ b/types/css-modules/index.d.ts @@ -1,38 +1,38 @@ -// Type definitions for css-modules 1.0 -// Project: https://github.com/css-modules/css-modules -// Definitions by: NeekSandhu -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -interface Stringifyable { - /** - * Stringifies the imported stylesheet for use with inline style tags - */ - toString(): string; -} -interface SelectorNode { - /** - * Returns the specific selector from imported stylesheet as string - */ - [key: string]: string; -} - -declare module '*.css' { - const styles: SelectorNode & Stringifyable; - export default styles; -} - -declare module '*.scss' { - const styles: SelectorNode & Stringifyable; - export default styles; -} - -declare module '*.sass' { - const styles: SelectorNode & Stringifyable; - export default styles; -} - -declare module '*.less' { - const styles: SelectorNode & Stringifyable; - export default styles; -} +// Type definitions for css-modules 1.0 +// Project: https://github.com/css-modules/css-modules +// Definitions by: NeekSandhu +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +interface Stringifyable { + /** + * Stringifies the imported stylesheet for use with inline style tags + */ + toString(): string; +} +interface SelectorNode { + /** + * Returns the specific selector from imported stylesheet as string + */ + [key: string]: string; +} + +declare module '*.css' { + const styles: SelectorNode & Stringifyable; + export default styles; +} + +declare module '*.scss' { + const styles: SelectorNode & Stringifyable; + export default styles; +} + +declare module '*.sass' { + const styles: SelectorNode & Stringifyable; + export default styles; +} + +declare module '*.less' { + const styles: SelectorNode & Stringifyable; + export default styles; +} diff --git a/types/css-modules/tsconfig.json b/types/css-modules/tsconfig.json index aff10df5a6..40a428a927 100644 --- a/types/css-modules/tsconfig.json +++ b/types/css-modules/tsconfig.json @@ -1,22 +1,22 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "css-modules-tests.ts" - ] +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "css-modules-tests.ts" + ] } \ No newline at end of file From c14f282ad2b02ffdc381b3fc8b9865a58bcb1817 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 18 Jul 2017 01:31:58 -0600 Subject: [PATCH 004/166] Added comments to the functions --- types/merge2/index.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 67b2688058..44b3aeaf21 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -11,9 +11,24 @@ import {DuplexOptions} from 'stream'; type StreamType = NodeJS.ReadableStream | IMerge2Stream; interface IMerge2Stream extends NodeJS.ReadWriteStream { + /** + * @brief Add more streams to an existing merged stream + * + * @param args streams to add + * + * @return The merged stream + */ add(...args: Array>): IMerge2Stream; } +/** + * @brief This function takes an arbitrary number of streams, but the duplexoption + * has to be the last parameter of the function. + * + * @param args The arguments + * + * @return A merged duplex stream + */ declare function IMerge2 (...args: Array | DuplexOptions>): IMerge2Stream; declare namespace IMerge2 {} From d4f6232b4ae7adcdb44afd8962ecaec236a40620 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 18 Jul 2017 12:27:04 -0600 Subject: [PATCH 005/166] Fixed indentation to use space rather than mixed tab and space --- types/merge2/index.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 44b3aeaf21..f5664bbd7e 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for merge2 v1.1.0 // Project: https://github.com/teambition/merge2 // Definitions by: Tanguy Krotoff -// Chigozirim C. +// Chigozirim C. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -11,24 +11,24 @@ import {DuplexOptions} from 'stream'; type StreamType = NodeJS.ReadableStream | IMerge2Stream; interface IMerge2Stream extends NodeJS.ReadWriteStream { - /** - * @brief Add more streams to an existing merged stream - * - * @param args streams to add - * - * @return The merged stream - */ + /** + * @brief Add more streams to an existing merged stream + * + * @param args streams to add + * + * @return The merged stream + */ add(...args: Array>): IMerge2Stream; } /** * @brief This function takes an arbitrary number of streams, but the duplexoption - * has to be the last parameter of the function. - * + * has to be the last parameter of the function. + * * @param args The arguments * * @return A merged duplex stream - */ + */ declare function IMerge2 (...args: Array | DuplexOptions>): IMerge2Stream; declare namespace IMerge2 {} From e38ce5be8d4fbf756ac69480e0b98996b2a69f53 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 1 Aug 2017 16:56:11 -0600 Subject: [PATCH 006/166] Added tslint.json as requested --- types/merge2/tslint.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 types/merge2/tslint.json diff --git a/types/merge2/tslint.json b/types/merge2/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/merge2/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 6dea529a3a7404dfe791ff93d4dd550a37137d97 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 1 Aug 2017 17:54:55 -0600 Subject: [PATCH 007/166] Fixed errors with files --- types/merge2/index.d.ts | 12 +++++------- types/merge2/merge2-tests.ts | 30 +++++++++++++++--------------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index f5664bbd7e..41b126d1d5 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for merge2 v1.1.0 +// Type definitions for merge2 1.1.0 // Project: https://github.com/teambition/merge2 // Definitions by: Tanguy Krotoff // Chigozirim C. @@ -10,7 +10,7 @@ import {DuplexOptions} from 'stream'; type StreamType = NodeJS.ReadableStream | IMerge2Stream; -interface IMerge2Stream extends NodeJS.ReadWriteStream { +interface Merge2Stream extends NodeJS.ReadWriteStream { /** * @brief Add more streams to an existing merged stream * @@ -18,18 +18,16 @@ interface IMerge2Stream extends NodeJS.ReadWriteStream { * * @return The merged stream */ - add(...args: Array>): IMerge2Stream; + add(...args: (StreamType | Array)[]): Merge2Stream; } /** * @brief This function takes an arbitrary number of streams, but the duplexoption * has to be the last parameter of the function. - * * @param args The arguments - * * @return A merged duplex stream - */ -declare function IMerge2 (...args: Array | DuplexOptions>): IMerge2Stream; + */ +declare function IMerge2 (...args: (StreamType | Array | DuplexOptions)[]): Merge2Stream; declare namespace IMerge2 {} diff --git a/types/merge2/merge2-tests.ts b/types/merge2/merge2-tests.ts index c21db879a1..660f166eea 100644 --- a/types/merge2/merge2-tests.ts +++ b/types/merge2/merge2-tests.ts @@ -19,24 +19,24 @@ gulp.task('app-js', () => ); -var stream1 = gulp.src('*.html'); -var stream2 = gulp.src('*.html'); -var stream3 = gulp.src('*.html'); -var stream4 = gulp.src('*.html'); -var stream5 = gulp.src('*.html'); -var stream6 = gulp.src('*.html'); -var stream7 = gulp.src('*.html'); +const stream1 = gulp.src('*.html'); +const stream2 = gulp.src('*.html'); +const stream3 = gulp.src('*.html'); +const stream4 = gulp.src('*.html'); +const stream5 = gulp.src('*.html'); +const stream6 = gulp.src('*.html'); +const stream7 = gulp.src('*.html'); -var stream = merge2([stream1, stream2], stream3, {end: false}) -//... +let stream = merge2([stream1, stream2], stream3, {end: false}); +// ... stream.add(stream4, stream5); -//.. +// .. stream.end(); // equal to merge2([stream1, stream2], stream3) -var stream = merge2(); +stream = merge2(); stream.add([stream1, stream2]); stream.add(stream3); @@ -45,7 +45,7 @@ stream.add(stream3); // 1. merge `stream1`; // 2. merge `stream2` and `stream3` in parallel after `stream1` merged; // 3. merge 'stream4' after `stream2` and `stream3` merged; -var stream = merge2(stream1, [stream2, stream3], stream4); +stream = merge2(stream1, [stream2, stream3], stream4); // merge order: // 1. merge `stream5` and `stream6` in parallel after `stream4` merged; @@ -55,7 +55,7 @@ stream.add([stream5, stream6], stream7); // nest merge // equal to merge2(stream1, stream2, stream6, stream3, [stream4, stream5]); -var streamA = merge2(stream1, stream2); -var streamB = merge2(stream3, [stream4, stream5]); -var stream = merge2(streamA, streamB); +const streamA = merge2(stream1, stream2); +const streamB = merge2(stream3, [stream4, stream5]); +stream = merge2(streamA, streamB); streamA.add(stream6); From c7cd721b3d5a457adedc96814416183c0756d7ae Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 1 Aug 2017 22:19:12 -0600 Subject: [PATCH 008/166] Fixed even more errors --- types/merge2/index.d.ts | 8 ++++---- types/merge2/merge2-tests.ts | 7 +------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 41b126d1d5..8046a20a32 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -6,9 +6,9 @@ /// -import {DuplexOptions} from 'stream'; +import { DuplexOptions } from 'stream'; -type StreamType = NodeJS.ReadableStream | IMerge2Stream; +type StreamType = NodeJS.ReadableStream | Merge2Stream; interface Merge2Stream extends NodeJS.ReadWriteStream { /** @@ -18,7 +18,7 @@ interface Merge2Stream extends NodeJS.ReadWriteStream { * * @return The merged stream */ - add(...args: (StreamType | Array)[]): Merge2Stream; + add(...args: Array): Merge2Stream; } /** @@ -27,7 +27,7 @@ interface Merge2Stream extends NodeJS.ReadWriteStream { * @param args The arguments * @return A merged duplex stream */ -declare function IMerge2 (...args: (StreamType | Array | DuplexOptions)[]): Merge2Stream; +declare function IMerge2(...args: Array): Merge2Stream; declare namespace IMerge2 {} diff --git a/types/merge2/merge2-tests.ts b/types/merge2/merge2-tests.ts index 660f166eea..823ef8f389 100644 --- a/types/merge2/merge2-tests.ts +++ b/types/merge2/merge2-tests.ts @@ -1,5 +1,5 @@ import * as gulp from 'gulp'; -import * as merge2 from 'merge2'; +import * as merge2 from 'merge2'; gulp.task('app-js', () => merge2( @@ -18,7 +18,6 @@ gulp.task('app-js', () => .pipe(gulp.dest('static/dist/js/')) ); - const stream1 = gulp.src('*.html'); const stream2 = gulp.src('*.html'); const stream3 = gulp.src('*.html'); @@ -27,20 +26,17 @@ const stream5 = gulp.src('*.html'); const stream6 = gulp.src('*.html'); const stream7 = gulp.src('*.html'); - let stream = merge2([stream1, stream2], stream3, {end: false}); // ... stream.add(stream4, stream5); // .. stream.end(); - // equal to merge2([stream1, stream2], stream3) stream = merge2(); stream.add([stream1, stream2]); stream.add(stream3); - // merge order: // 1. merge `stream1`; // 2. merge `stream2` and `stream3` in parallel after `stream1` merged; @@ -52,7 +48,6 @@ stream = merge2(stream1, [stream2, stream3], stream4); // 2. merge 'stream7' after `stream5` and `stream6` merged; stream.add([stream5, stream6], stream7); - // nest merge // equal to merge2(stream1, stream2, stream6, stream3, [stream4, stream5]); const streamA = merge2(stream1, stream2); From 803914b0a37c5e26f1920d18c21ff427e52f704f Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 1 Aug 2017 22:24:43 -0600 Subject: [PATCH 009/166] Fixed major minor PITA! --- types/merge2/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 8046a20a32..fcc93d76b9 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for merge2 1.1.0 +// Type definitions for merge2 1.1 // Project: https://github.com/teambition/merge2 // Definitions by: Tanguy Krotoff // Chigozirim C. From 4a9466fcb0d426ac7a2ae8cada1edca7e212c645 Mon Sep 17 00:00:00 2001 From: smac89 Date: Wed, 2 Aug 2017 08:06:05 -0600 Subject: [PATCH 010/166] Fixed jsdocs and added an event emitted by the stream --- types/merge2/index.d.ts | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index fcc93d76b9..0f503e48d1 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -12,20 +12,39 @@ type StreamType = NodeJS.ReadableStream | Merge2Stream; interface Merge2Stream extends NodeJS.ReadWriteStream { /** - * @brief Add more streams to an existing merged stream + * @summary Add more streams to an existing merged stream * - * @param args streams to add + * @param {...(StreamType|StreamType[])} args streams to add * * @return The merged stream */ add(...args: Array): Merge2Stream; + + /** + * @summary It will emit 'queueDrain' when all streams merged. + * If you set end === false in options, this event give you a notice that + * you should add more streams to merge, or end the mergedStream. + * + * @param {string} event The 'queueDrain' event + * + * @return This stream + */ + on(event: 'queueDrain', callback: () => void): this; } /** - * @brief This function takes an arbitrary number of streams, but the duplexoption - * has to be the last parameter of the function. - * @param args The arguments - * @return A merged duplex stream + * @summary This function takes an arbitrary number of streams and returns a + * Merge2Stream. + * + * @description If a DuplexOption is specified, it has to be specified last in the + * argument list + * + * @see { @link https://github.com/teambition/merge2#api } + * + * @param {...(StreamType|StreamType[])} args StreamTypes + * @param {DuplexOptions} opts Optional DuplexOption to be specified last + * + * @return A merged duplex stream */ declare function IMerge2(...args: Array): Merge2Stream; From 82a8308296cdebd5221c411a2d4ff54230e5af2d Mon Sep 17 00:00:00 2001 From: Matt Rollins Date: Wed, 2 Aug 2017 12:02:33 -0600 Subject: [PATCH 011/166] add iso-3166-2 typings (#18525) * iso-3166-2 typings * requested changes for iso-3166-2 --- types/iso-3166-2/index.d.ts | 52 ++++++++++++++++++++++++++++ types/iso-3166-2/iso-3166-2-tests.ts | 50 ++++++++++++++++++++++++++ types/iso-3166-2/tsconfig.json | 22 ++++++++++++ types/iso-3166-2/tslint.json | 3 ++ 4 files changed, 127 insertions(+) create mode 100644 types/iso-3166-2/index.d.ts create mode 100644 types/iso-3166-2/iso-3166-2-tests.ts create mode 100644 types/iso-3166-2/tsconfig.json create mode 100644 types/iso-3166-2/tslint.json diff --git a/types/iso-3166-2/index.d.ts b/types/iso-3166-2/index.d.ts new file mode 100644 index 0000000000..42129fb444 --- /dev/null +++ b/types/iso-3166-2/index.d.ts @@ -0,0 +1,52 @@ +// Type definitions for iso-3166-2 0.6 +// Project: https://github.com/olahol/iso-3166-2.js +// Definitions by: Matt Rollins +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export type InfoOrEmptyRecord = T | {}; + +export namespace CountryInfo { + interface Partial { + name: string; + sub: SubdivisionInfo.Map; + } + interface Full extends Partial { + code: string; + } + + interface Map { + // full data if this country has been retrieved with country() at least once + [code: string]: Full | Partial; + } +} +export type CountryInfo = CountryInfo.Full; + +export namespace SubdivisionInfo { + interface Partial { + type: string; + name: string; + } + interface Full extends Partial { + countryName: string; + countryCode: string; + code: string; + regionCode: string; + } + + interface Map { + // full data if this subdivision has been retrieved with subdivision() at least once + [code: string]: Full | Partial; + } +} +export type SubdivisionInfo = SubdivisionInfo.Full; + +export function subdivision(countryCodeOrFullSubdivisionCode: string, subdivisionCodeOrName?: string): InfoOrEmptyRecord; + +export function country(countryCodeOrName: string): InfoOrEmptyRecord; + +export const data: CountryInfo.Map; + +// map of alpha 3 codes to alpha 3 codes +export const codes: { + [alpha3: string]: string +}; diff --git a/types/iso-3166-2/iso-3166-2-tests.ts b/types/iso-3166-2/iso-3166-2-tests.ts new file mode 100644 index 0000000000..0a0bca345a --- /dev/null +++ b/types/iso-3166-2/iso-3166-2-tests.ts @@ -0,0 +1,50 @@ +import * as iso3166 from "iso-3166-2"; + +// subdivision() and country() return {} on failure, which is nearly impossible to separate from a valid response in TypeScript; +// until a PR can be accepted on the original repo, this workaround makes accessing the original type possible. +function wrap(rawResult: T|{}): T|null { + if (Object.keys(rawResult).length) + return rawResult as T; + else + return null; +} + +iso3166.subdivision("SE-O"); +iso3166.subdivision("US-IN"); + +iso3166.subdivision("SWE", "O"); +iso3166.subdivision("US", "Indiana"); + +const indiana = wrap(iso3166.subdivision("US-IN")); +if (indiana) { + const name: string = indiana.name; + const type: string = indiana.type; + const code: string = indiana.code; + const regionCode: string = indiana.regionCode; + const countryCode: string = indiana.countryCode; + const countryName: string = indiana.countryName; +} + +iso3166.country("US"); +iso3166.country("SE"); +iso3166.country("SWE"); + +iso3166.country("United States"); +iso3166.country("Sweden"); + +const sweden = wrap(iso3166.country("SE")); +if (sweden) { + const name: string = sweden.name; + const subNameO: string = sweden.sub["SE-O"].name; + const code: string = sweden.code; +} + +const unitedStates = iso3166.data["US"]; +{ + const name: string = unitedStates.name; + const subNameIN: string = unitedStates.sub["US-IN"].name; +} + +const alpha3 = "SWE"; +const alpha2 = "SE"; +const codesWork = (alpha2 === iso3166.codes[alpha3]); diff --git a/types/iso-3166-2/tsconfig.json b/types/iso-3166-2/tsconfig.json new file mode 100644 index 0000000000..7ed345dd25 --- /dev/null +++ b/types/iso-3166-2/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "iso-3166-2-tests.ts" + ] +} diff --git a/types/iso-3166-2/tslint.json b/types/iso-3166-2/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/iso-3166-2/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 1f6ae7189d84c508f9f66f0e0a1b9f8df935e104 Mon Sep 17 00:00:00 2001 From: Chigozirim C Date: Wed, 2 Aug 2017 13:03:12 -0500 Subject: [PATCH 012/166] Updated types for merge2 v1.1.0 (#18165) * Updated merge streams to simply use readablestream rather than readwritestream because readablestream is a much better super type of the type of streams supported * Updated imports within the tests * Committing line feed changes * Added comments to the functions * Fixed indentation to use space rather than mixed tab and space * Added tslint.json as requested * Fixed errors with files * Fixed even more errors * Fixed major minor PITA! * Fixed jsdocs and added an event emitted by the stream --- types/merge2/index.d.ts | 54 ++++++++++++++++++++++++++++-------- types/merge2/merge2-tests.ts | 42 ++++++++++++---------------- types/merge2/tslint.json | 1 + 3 files changed, 60 insertions(+), 37 deletions(-) create mode 100644 types/merge2/tslint.json diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 3e9c30b6c9..0f503e48d1 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -1,23 +1,53 @@ -// Type definitions for merge2 v0.3.6 +// Type definitions for merge2 1.1 // Project: https://github.com/teambition/merge2 // Definitions by: Tanguy Krotoff +// Chigozirim C. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +import { DuplexOptions } from 'stream'; -interface IOptions { - end?: boolean; - objectMode?: boolean; +type StreamType = NodeJS.ReadableStream | Merge2Stream; + +interface Merge2Stream extends NodeJS.ReadWriteStream { + /** + * @summary Add more streams to an existing merged stream + * + * @param {...(StreamType|StreamType[])} args streams to add + * + * @return The merged stream + */ + add(...args: Array): Merge2Stream; + + /** + * @summary It will emit 'queueDrain' when all streams merged. + * If you set end === false in options, this event give you a notice that + * you should add more streams to merge, or end the mergedStream. + * + * @param {string} event The 'queueDrain' event + * + * @return This stream + */ + on(event: 'queueDrain', callback: () => void): this; } -interface IMerge2Stream extends NodeJS.ReadWriteStream { - add(...args: Array>): IMerge2Stream; -} +/** + * @summary This function takes an arbitrary number of streams and returns a + * Merge2Stream. + * + * @description If a DuplexOption is specified, it has to be specified last in the + * argument list + * + * @see { @link https://github.com/teambition/merge2#api } + * + * @param {...(StreamType|StreamType[])} args StreamTypes + * @param {DuplexOptions} opts Optional DuplexOption to be specified last + * + * @return A merged duplex stream + */ +declare function IMerge2(...args: Array): Merge2Stream; -interface IMerge2 { - (...args: Array | IOptions>): IMerge2Stream; -} +declare namespace IMerge2 {} -declare var _tmp: IMerge2; -export = _tmp; +export = IMerge2; diff --git a/types/merge2/merge2-tests.ts b/types/merge2/merge2-tests.ts index 8f95b82bda..823ef8f389 100644 --- a/types/merge2/merge2-tests.ts +++ b/types/merge2/merge2-tests.ts @@ -1,8 +1,5 @@ - - - -import gulp = require('gulp'); -import * as merge2 from "merge2"; +import * as gulp from 'gulp'; +import * as merge2 from 'merge2'; gulp.task('app-js', () => merge2( @@ -21,44 +18,39 @@ gulp.task('app-js', () => .pipe(gulp.dest('static/dist/js/')) ); +const stream1 = gulp.src('*.html'); +const stream2 = gulp.src('*.html'); +const stream3 = gulp.src('*.html'); +const stream4 = gulp.src('*.html'); +const stream5 = gulp.src('*.html'); +const stream6 = gulp.src('*.html'); +const stream7 = gulp.src('*.html'); -var stream1 = gulp.src('*.html'); -var stream2 = gulp.src('*.html'); -var stream3 = gulp.src('*.html'); -var stream4 = gulp.src('*.html'); -var stream5 = gulp.src('*.html'); -var stream6 = gulp.src('*.html'); -var stream7 = gulp.src('*.html'); - - -var stream = merge2([stream1, stream2], stream3, {end: false}) -//... +let stream = merge2([stream1, stream2], stream3, {end: false}); +// ... stream.add(stream4, stream5); -//.. +// .. stream.end(); - // equal to merge2([stream1, stream2], stream3) -var stream = merge2(); +stream = merge2(); stream.add([stream1, stream2]); stream.add(stream3); - // merge order: // 1. merge `stream1`; // 2. merge `stream2` and `stream3` in parallel after `stream1` merged; // 3. merge 'stream4' after `stream2` and `stream3` merged; -var stream = merge2(stream1, [stream2, stream3], stream4); +stream = merge2(stream1, [stream2, stream3], stream4); // merge order: // 1. merge `stream5` and `stream6` in parallel after `stream4` merged; // 2. merge 'stream7' after `stream5` and `stream6` merged; stream.add([stream5, stream6], stream7); - // nest merge // equal to merge2(stream1, stream2, stream6, stream3, [stream4, stream5]); -var streamA = merge2(stream1, stream2); -var streamB = merge2(stream3, [stream4, stream5]); -var stream = merge2(streamA, streamB); +const streamA = merge2(stream1, stream2); +const streamB = merge2(stream3, [stream4, stream5]); +stream = merge2(streamA, streamB); streamA.add(stream6); diff --git a/types/merge2/tslint.json b/types/merge2/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/merge2/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 692b49b0701c5eff37050f2eb6394f8760bf3ba5 Mon Sep 17 00:00:00 2001 From: Riku Ayanokozy Date: Thu, 3 Aug 2017 02:10:15 +0800 Subject: [PATCH 013/166] Add react-dom/node-stream (#18493) --- types/react-dom/node-stream/index.d.ts | 20 ++++++++++++++++++++ types/react-dom/react-dom-tests.ts | 12 ++++++++++++ types/react-dom/tsconfig.json | 3 ++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 types/react-dom/node-stream/index.d.ts diff --git a/types/react-dom/node-stream/index.d.ts b/types/react-dom/node-stream/index.d.ts new file mode 100644 index 0000000000..449d45b46d --- /dev/null +++ b/types/react-dom/node-stream/index.d.ts @@ -0,0 +1,20 @@ +/// +import { ReactElement } from 'react'; +import * as stream from 'stream'; + +/** + * Render a ReactElement to its initial HTML. This should only be used on the + * server. + * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostream + */ +export function renderToStream(element: ReactElement): stream.Readable; + +/** + * Similar to renderToStream, except this doesn't create extra DOM attributes + * such as data-react-id that React uses internally. + * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticstream + */ +export function renderToStaticStream(element: ReactElement): stream.Readable; +export const version: string; + +export as namespace ReactDOMNodeStream; diff --git a/types/react-dom/react-dom-tests.ts b/types/react-dom/react-dom-tests.ts index 534b847787..9a60724dae 100644 --- a/types/react-dom/react-dom-tests.ts +++ b/types/react-dom/react-dom-tests.ts @@ -1,7 +1,9 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as ReactDOMServer from 'react-dom/server'; +import * as ReactDOMNodeStream from 'react-dom/node-stream'; import * as ReactTestUtils from 'react-dom/test-utils'; +import * as stream from 'stream'; declare function describe(desc: string, f: () => void): void; declare function it(desc: string, f: () => void): void; @@ -37,6 +39,16 @@ describe('ReactDOMServer', () => { }); }); +describe('ReactDOMNodeStream', () => { + it('renderToStream', () => { + const content: stream.Readable = ReactDOMNodeStream.renderToStream(React.createElement('div')); + }); + + it('renderToStaticStream', () => { + const content: stream.Readable = ReactDOMNodeStream.renderToStaticStream(React.createElement('div')); + }); +}); + describe('React dom test utils', () => { it('Simulate', () => { const element = document.createElement('div'); diff --git a/types/react-dom/tsconfig.json b/types/react-dom/tsconfig.json index c93c6f8195..8c270fabed 100644 --- a/types/react-dom/tsconfig.json +++ b/types/react-dom/tsconfig.json @@ -3,6 +3,7 @@ "index.d.ts", "react-dom-tests.ts", "server/index.d.ts", + "node-stream/index.d.ts", "test-utils/index.d.ts" ], "compilerOptions": { @@ -22,4 +23,4 @@ "noEmit": true, "forceConsistentCasingInFileNames": true } -} \ No newline at end of file +} From e1c56878a4c65edbe1572176d99fb55693276aa4 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Wed, 2 Aug 2017 15:11:08 -0300 Subject: [PATCH 014/166] [electron-packager] clarify the signatures for platform-specific options (#18521) * clarify the optional arguments that Win32Metadata supports * protocol supports an array of strings --- types/electron-packager/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/electron-packager/index.d.ts b/types/electron-packager/index.d.ts index 99b232388b..7a4504c386 100644 --- a/types/electron-packager/index.d.ts +++ b/types/electron-packager/index.d.ts @@ -63,8 +63,8 @@ declare namespace electronPackager { OriginalFilename?: string; ProductName?: string; InternalName?: string; - "requested-execution-level": any; - "application-manifest": any; + "requested-execution-level"?: "asInvoker" | "highestAvailable" | "requireAdministrator"; + "application-manifest"?: string; } /** Electron-packager Options. */ @@ -188,7 +188,7 @@ declare namespace electronPackager { /** * The URL protocol scheme(s) to associate the app with */ - protocol?: string; + protocol?: string[]; /** * The descriptive name(s) of the URL protocol scheme(s) specified via the protocol option. * Maps to the CFBundleURLName metadata property. From 2425a019f21bcad5b9105587aad00ad42025d48c Mon Sep 17 00:00:00 2001 From: remisery <20260860+remisery@users.noreply.github.com> Date: Wed, 2 Aug 2017 20:12:27 +0200 Subject: [PATCH 015/166] [gulp-size] Update type definitions to v2.1.0 (#18551) * extend api * Add tslint.json and fix lint errors --- types/gulp-size/gulp-size-tests.ts | 7 +------ types/gulp-size/index.d.ts | 6 ++++-- types/gulp-size/tsconfig.json | 4 ++-- types/gulp-size/tslint.json | 3 +++ 4 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 types/gulp-size/tslint.json diff --git a/types/gulp-size/gulp-size-tests.ts b/types/gulp-size/gulp-size-tests.ts index 9aea965329..4a325abe27 100644 --- a/types/gulp-size/gulp-size-tests.ts +++ b/types/gulp-size/gulp-size-tests.ts @@ -1,6 +1,3 @@ - - - import * as gulp from 'gulp'; import * as size from 'gulp-size'; import * as debug from 'gulp-debug'; @@ -11,9 +8,8 @@ gulp.task('default', () => .pipe(gulp.dest('dist')) ); - gulp.task('default', () => { - var s = size(); + let s = size(); return gulp.src('fixture.js') .pipe(s) @@ -21,6 +17,5 @@ gulp.task('default', () => { .pipe(debug({title: 'Total size ' + s.prettySize})); }); - size(); size({showFiles: true, gzip: true}); diff --git a/types/gulp-size/index.d.ts b/types/gulp-size/index.d.ts index 374c58565e..088b916984 100644 --- a/types/gulp-size/index.d.ts +++ b/types/gulp-size/index.d.ts @@ -1,16 +1,18 @@ -// Type definitions for gulp-size v1.2.3 +// Type definitions for gulp-size 2.1 // Project: https://github.com/sindresorhus/gulp-size // Definitions by: Tanguy Krotoff +// Remisery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// - declare namespace size { interface Options { showFiles?: boolean; gzip?: boolean; title?: string; + pretty?: boolean; + showTotal?: boolean; } interface SizeStream extends NodeJS.ReadWriteStream { diff --git a/types/gulp-size/tsconfig.json b/types/gulp-size/tsconfig.json index fe93b09ba6..0e924d2b94 100644 --- a/types/gulp-size/tsconfig.json +++ b/types/gulp-size/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -22,4 +22,4 @@ "index.d.ts", "gulp-size-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/gulp-size/tslint.json b/types/gulp-size/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/gulp-size/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 24c1979c3bcd210e79360101a14657e2332276cb Mon Sep 17 00:00:00 2001 From: bryanjjohnson Date: Wed, 2 Aug 2017 12:20:55 -0600 Subject: [PATCH 016/166] add types for LngLatLike, LngLatBoundsLike and PointLike (#18390) --- types/mapbox-gl/index.d.ts | 58 ++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index 10974f11a2..e18f375eb7 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -11,6 +11,10 @@ declare namespace mapboxgl { export function supported(options?: {failIfMajorPerformanceCaveat?: boolean}): boolean; export function setRTLTextPlugin(pluginURL: string, callback: Function): void; + type LngLatLike = number[] | LngLat; + type LngLatBoundsLike = number[][] | LngLatLike[] | LngLatBounds; + type PointLike = number[] | Point; + /** * Map */ @@ -35,7 +39,7 @@ declare namespace mapboxgl { getBounds(): mapboxgl.LngLatBounds; - setMaxBounds(lnglatbounds?: mapboxgl.LngLatBounds | number[][]): this; + setMaxBounds(lnglatbounds?: LngLatBoundsLike): this; setMinZoom(minZoom?: number): this; @@ -45,11 +49,11 @@ declare namespace mapboxgl { getMaxZoom(): number; - project(lnglat: mapboxgl.LngLat | number[]): mapboxgl.Point; + project(lnglat: LngLatLike): mapboxgl.Point; - unproject(point: mapboxgl.Point | number[]): mapboxgl.LngLat; + unproject(point: PointLike): mapboxgl.LngLat; - queryRenderedFeatures(pointOrBox?: mapboxgl.Point|number[]|mapboxgl.Point[]|number[][], parameters?: {layers?: string[], filter?: any[]}): GeoJSON.Feature[]; + queryRenderedFeatures(pointOrBox?: PointLike | PointLike[], parameters?: {layers?: string[], filter?: any[]}): GeoJSON.Feature[]; querySourceFeatures(sourceID: string, parameters?: {sourceLayer?: string, filter?: any[]}): GeoJSON.Feature[]; @@ -121,11 +125,11 @@ declare namespace mapboxgl { getCenter(): mapboxgl.LngLat; - setCenter(center: LngLat|number[], eventData?: mapboxgl.EventData): this; + setCenter(center: LngLatLike, eventData?: mapboxgl.EventData): this; panBy(offset: number[], options?: mapboxgl.AnimationOptions, eventData?: mapboxgl.EventData): this; - panTo(lnglat: mapboxgl.LngLat, options?: mapboxgl.AnimationOptions, eventdata?: mapboxgl.EventData): this; + panTo(lnglat: LngLatLike, options?: mapboxgl.AnimationOptions, eventdata?: mapboxgl.EventData): this; getZoom(): number; @@ -151,7 +155,7 @@ declare namespace mapboxgl { setPitch(pitch: number, eventData?: EventData): this; - fitBounds(bounds: mapboxgl.LngLatBounds | number[][], options?: { linear?: boolean, easing?: Function, padding?: number | mapboxgl.PaddingOptions, offset?: Point|number[],maxZoom?: number }, eventData?: mapboxgl.EventData): this; + fitBounds(bounds: LngLatBoundsLike, options?: { linear?: boolean, easing?: Function, padding?: number | mapboxgl.PaddingOptions, offset?: PointLike, maxZoom?: number }, eventData?: mapboxgl.EventData): this; jumpTo(options: mapboxgl.CameraOptions, eventData?: mapboxgl.EventData): this; @@ -191,7 +195,7 @@ declare namespace mapboxgl { boxZoom?: boolean; /** initial map center */ - center?: mapboxgl.LngLat | number[]; + center?: LngLatLike; /** Style class names with which to initialize the map */ classes?: string[]; @@ -223,7 +227,7 @@ declare namespace mapboxgl { logoPosition?: boolean; /** If set, the map is constrained to the given bounds. */ - maxBounds?: mapboxgl.LngLatBounds | number[][]; + maxBounds?: LngLatBoundsLike; /** Maximum zoom of the map */ maxZoom?: number; @@ -434,7 +438,7 @@ declare namespace mapboxgl { getLngLat(): mapboxgl.LngLat; - setLngLat(lnglat: mapboxgl.LngLat | number[]): this; + setLngLat(lnglat: LngLatLike): this; setText(text: string): this; @@ -450,7 +454,7 @@ declare namespace mapboxgl { anchor?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; - offset?: number | Point | number[] | { [key:string]: Point | number[];}; + offset?: number | PointLike | { [key:string]: PointLike;}; } export interface Style { @@ -613,16 +617,22 @@ declare namespace mapboxgl { /** Return a LngLat as a string */ toString(): string; - static convert(input: number[]|mapboxgl.LngLat): mapboxgl.LngLat; + toBounds(radius: number): LngLatBounds; + + static convert(input: LngLatLike): mapboxgl.LngLat; } /** * LngLatBounds */ export class LngLatBounds { - sw: LngLat | number[]; - ne: LngLat | number[]; - constructor(sw?: LngLat, ne?: LngLat); + sw: LngLatLike; + ne: LngLatLike; + constructor(sw?: LngLatLike, ne?: LngLatLike); + + setNorthEast(ne: LngLatLike): this; + + setSouthWest(sw: LngLatLike): this; /** Extend the bounds to include a given LngLat or LngLatBounds. */ extend(obj: mapboxgl.LngLat | mapboxgl.LngLatBounds): this; @@ -661,7 +671,7 @@ declare namespace mapboxgl { toString(): string; /** Convert an array to a LngLatBounds object, or return an existing LngLatBounds object unchanged. */ - static convert(input: mapboxgl.LngLatBounds | number[] | number[][]): mapboxgl.LngLatBounds; + static convert(input: LngLatBoundsLike): mapboxgl.LngLatBounds; } /** @@ -710,11 +720,11 @@ declare namespace mapboxgl { angleWithSep(x: number, y: number): number; - static convert(a: Array | Point): Point; + static convert(a: PointLike): Point; } export class Marker { - constructor(element?: HTMLElement, options?: { offset?: Point | number[] }); + constructor(element?: HTMLElement, options?: { offset?: PointLike }); addTo(map: Map): this; @@ -722,7 +732,7 @@ declare namespace mapboxgl { getLngLat(): LngLat; - setLngLat(lngLat: LngLat | number[]): this; + setLngLat(lngLat: LngLatLike): this; setPopup(popup?: Popup): this; @@ -807,7 +817,7 @@ declare namespace mapboxgl { duration?: number; easing?: Function; /** point, origin of movement relative to map center */ - offset?: Point | number[]; + offset?: PointLike; /** When set to false, no animation happens */ animate?: boolean; } @@ -817,7 +827,7 @@ declare namespace mapboxgl { */ export interface CameraOptions { /** Map center */ - center?: mapboxgl.LngLat | number[]; + center?: LngLatLike; /** Map zoom level */ zoom?: number; /** Map rotation bearing in degrees counter-clockwise from north */ @@ -825,7 +835,7 @@ declare namespace mapboxgl { /** Map angle in degrees at which the camera is looking at the ground */ pitch?: number; /** If zooming, the zoom center (defaults to map center) */ - around?: mapboxgl.LngLat | number[]; + around?: LngLatLike; } /** @@ -959,10 +969,10 @@ declare namespace mapboxgl { } export interface LinePaint { "line-opacity"?: number | StyleFunction; - "line-color"?: string| StyleFunction; + "line-color"?: string | StyleFunction; "line-translate"?: number[]; "line-translate-anchor"?: "map" | "viewport"; - "line-width"?: number; + "line-width"?: number | StyleFunction; "line-gap-width"?: number | StyleFunction; "line-offset"?: number | StyleFunction; "line-blur"?: number | StyleFunction; From fc7a45f9ea1d354f57e498c01c7e6b09ab1011cc Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Thu, 3 Aug 2017 02:21:19 +0800 Subject: [PATCH 017/166] [is-url-superb]: Add initial type definition (#18531) * [is-url-superb]: Add initial type definition * [is-url-superb] Remove namespace declaration --- types/is-url-superb/index.d.ts | 8 ++++++++ types/is-url-superb/is-url-superb-tests.ts | 5 +++++ types/is-url-superb/tsconfig.json | 22 ++++++++++++++++++++++ types/is-url-superb/tslint.json | 1 + 4 files changed, 36 insertions(+) create mode 100644 types/is-url-superb/index.d.ts create mode 100644 types/is-url-superb/is-url-superb-tests.ts create mode 100644 types/is-url-superb/tsconfig.json create mode 100644 types/is-url-superb/tslint.json diff --git a/types/is-url-superb/index.d.ts b/types/is-url-superb/index.d.ts new file mode 100644 index 0000000000..9369edc65e --- /dev/null +++ b/types/is-url-superb/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for is-url-superb 2.0 +// Project: https://github.com/sindresorhus/is-url-superb +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = isUrl; + +declare function isUrl(str: string): boolean; diff --git a/types/is-url-superb/is-url-superb-tests.ts b/types/is-url-superb/is-url-superb-tests.ts new file mode 100644 index 0000000000..c804fc1b34 --- /dev/null +++ b/types/is-url-superb/is-url-superb-tests.ts @@ -0,0 +1,5 @@ +import isUrl = require('is-url-superb'); + +const url1: boolean = isUrl('http://todomvc.com'); +const url2: boolean = isUrl('//todomvc.com'); +const url3: boolean = isUrl('unicorn'); diff --git a/types/is-url-superb/tsconfig.json b/types/is-url-superb/tsconfig.json new file mode 100644 index 0000000000..069affddab --- /dev/null +++ b/types/is-url-superb/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-url-superb-tests.ts" + ] +} diff --git a/types/is-url-superb/tslint.json b/types/is-url-superb/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/is-url-superb/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From a0fa31362f2bc6c29b1752dfa641d03a0bb6de8f Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Wed, 2 Aug 2017 20:39:36 +0200 Subject: [PATCH 018/166] [paper] Correct return type for `Rectangle.scale` and `Rectangle.expand` (#18578) The definition for both methods returned void although they return a new Rectangle instance. See https://github.com/paperjs/paper.js/blob/c403c86a23f54f07bb7e9448c7f05df5cebb464c/src/basic/Rectangle.js#L805-L833 --- types/paper/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/paper/index.d.ts b/types/paper/index.d.ts index 45f1ac590f..bce11df130 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -793,27 +793,27 @@ declare module 'paper' { * Expands the rectangle by the specified amount in horizontal and vertical directions. * @param amount - the amount to expand the rectangle in both directions */ - expand(amount: number | Size | Point): void; + expand(amount: number | Size | Point): Rectangle; /** * Expands the rectangle by the specified amounts in horizontal and vertical directions. * @param hor - the amount to expand the rectangle in horizontal direction * @param ver - the amount to expand the rectangle in vertical direction */ - expand(hor: number, ver: number): void; + expand(hor: number, ver: number): Rectangle; /** * Scales the rectangle by the specified amount from its center. * @param amount - the amount to scale by */ - scale(amount: number): void; + scale(amount: number): Rectangle; /** * Scales the rectangle in horizontal direction by the specified hor amount and in vertical direction by the specified ver amount from its center. * @param hor - the amount to scale the rectangle in horizontal direction * @param ver - the amount to scale the rectangle in vertical direction */ - scale(hor: number, ver: number): void; + scale(hor: number, ver: number): Rectangle; } /** From 1e211cd0d490a95e1339f60b0d020f4ed8a96e3d Mon Sep 17 00:00:00 2001 From: Giedrius Grabauskas Date: Wed, 2 Aug 2017 22:03:24 +0300 Subject: [PATCH 019/166] react-select: Fixed renderer handlers return types. (#18574) * Fixed renderer handlers return types. * Added tests to render null or false elements. * Updated tests. * Updated naming. * Created and implemented type `HandlerRendererResult`. --- types/react-select/index.d.ts | 12 +++++++----- types/react-select/react-select-tests.tsx | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/types/react-select/index.d.ts b/types/react-select/index.d.ts index 24ef712a05..abfed81047 100644 --- a/types/react-select/index.d.ts +++ b/types/react-select/index.d.ts @@ -20,14 +20,16 @@ declare namespace ReactSelectClass { class Async extends React.Component { } class AsyncCreatable extends React.Component { } + type HandlerRendererResult = JSX.Element | null | false; + // Handlers type FocusOptionHandler = (option: Option) => void; type SelectValueHandler = (option: Option) => void; - type ArrowRendererHandler = (props: ArrowRendererProps) => JSX.Element; + type ArrowRendererHandler = (props: ArrowRendererProps) => HandlerRendererResult; type FilterOptionHandler = (option: Option, filter: string) => Option; type FilterOptionsHandler = (options: Options, filter: string, currentValues: Options) => Options; - type InputRendererHandler = (props: { [key: string]: any }) => JSX.Element; - type MenuRendererHandler = (props: MenuRendererProps) => JSX.Element; + type InputRendererHandler = (props: { [key: string]: any }) => HandlerRendererResult; + type MenuRendererHandler = (props: MenuRendererProps) => HandlerRendererResult; type OnCloseHandler = () => void; type OnInputChangeHandler = (inputValue: string) => void; type OnInputKeyDownHandler = React.KeyboardEventHandler; @@ -35,8 +37,8 @@ declare namespace ReactSelectClass { type OnOpenHandler = () => void; type OnFocusHandler = React.FocusEventHandler; type OnBlurHandler = React.FocusEventHandler; - type OptionRendererHandler = (option: Option) => JSX.Element; - type ValueRendererHandler = (option: Option) => JSX.Element; + type OptionRendererHandler = (option: Option) => HandlerRendererResult; + type ValueRendererHandler = (option: Option) => HandlerRendererResult; type OnValueClickHandler = (value: string, event: React.MouseEvent) => void; type IsOptionUniqueHandler = (arg: { option: Option, options: Options, labelKey: string, valueKey: string }) => boolean; type IsValidNewOptionHandler = (arg: { label: string }) => boolean; diff --git a/types/react-select/react-select-tests.tsx b/types/react-select/react-select-tests.tsx index 3dd010536f..13d64d32ce 100644 --- a/types/react-select/react-select-tests.tsx +++ b/types/react-select/react-select-tests.tsx @@ -151,4 +151,24 @@ describe("Examples", () => { } } }); + + it("Input render with false renderer props", () => { + false} + inputRenderer={props => false} + menuRenderer={props => false} + optionRenderer={props => false} + valueRenderer={props => false} + />; + }); + + it("Input render with null renderer props", () => { + null} + inputRenderer={props => null} + menuRenderer={props => null} + optionRenderer={props => null} + valueRenderer={props => null} + />; + }); }); From eddbc9e6f9ce18551a07bb68ff3738a86abc675c Mon Sep 17 00:00:00 2001 From: remisery <20260860+remisery@users.noreply.github.com> Date: Wed, 2 Aug 2017 21:06:26 +0200 Subject: [PATCH 020/166] Introduce asenv (#18573) --- types/asenv/asenv-tests.ts | 26 ++++++++++++++++++++++++++ types/asenv/index.d.ts | 18 ++++++++++++++++++ types/asenv/tsconfig.json | 22 ++++++++++++++++++++++ types/asenv/tslint.json | 3 +++ 4 files changed, 69 insertions(+) create mode 100644 types/asenv/asenv-tests.ts create mode 100644 types/asenv/index.d.ts create mode 100644 types/asenv/tsconfig.json create mode 100644 types/asenv/tslint.json diff --git a/types/asenv/asenv-tests.ts b/types/asenv/asenv-tests.ts new file mode 100644 index 0000000000..0448672d10 --- /dev/null +++ b/types/asenv/asenv-tests.ts @@ -0,0 +1,26 @@ +import { unlessProduction, isDevelopment, isTest, isProduction, getEnv, setEnv } from 'asenv'; +import { equal, throws } from 'assert'; + +// Test isDevelopment() +setEnv('development'); +equal(getEnv(), 'development', 'Should return be true'); +equal(isDevelopment(), true, 'NODE_ENV should be "development"'); +equal(isTest(), false, 'NODE_ENV should be "development"'); +equal(isProduction(), false, 'NODE_ENV should be "development"'); +equal(unlessProduction(() => true), true, "Shound return true"); + +// Test isTest() +setEnv('test'); +equal(getEnv(), 'test', 'Should return be true'); +equal(isDevelopment(), false, 'NODE_ENV should be "test"'); +equal(isTest(), true, 'NODE_ENV should be "test"'); +equal(isProduction(), false, 'NODE_ENV should be "test"'); +equal(unlessProduction(() => true), true, "Shound return true"); + +// Test isProduction() +setEnv('production'); +equal(getEnv(), 'production', 'Should return be true'); +equal(isDevelopment(), false, 'NODE_ENV should be "production"'); +equal(isTest(), false, 'NODE_ENV should be "production"'); +equal(isProduction(), true, 'NODE_ENV should be "production"'); +equal(unlessProduction(() => true), false, "Shound return false"); diff --git a/types/asenv/index.d.ts b/types/asenv/index.d.ts new file mode 100644 index 0000000000..f127664d13 --- /dev/null +++ b/types/asenv/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for asenv 1.1 +// Project: https://github.com/a-labo/asenv#readme +// Definitions by: Remisery +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +export function getEnv(): string; + +export function isDevelopment(): boolean; + +export function isProduction(): boolean; + +export function isTest(): boolean; + +export function setEnv(env: string): void; + +export function unlessProduction(handle: () => any): any; diff --git a/types/asenv/tsconfig.json b/types/asenv/tsconfig.json new file mode 100644 index 0000000000..129dd1caf0 --- /dev/null +++ b/types/asenv/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "asenv-tests.ts" + ] +} diff --git a/types/asenv/tslint.json b/types/asenv/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/asenv/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 199b5fd9c341b180e77296ab6ecb7fd3926cc879 Mon Sep 17 00:00:00 2001 From: Vojtech Jasny Date: Wed, 2 Aug 2017 21:09:15 +0200 Subject: [PATCH 021/166] Add correct types for glob options to shelljs (#18567) --- types/shelljs/index.d.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/types/shelljs/index.d.ts b/types/shelljs/index.d.ts index f2a74bc561..d2bc88875c 100644 --- a/types/shelljs/index.d.ts +++ b/types/shelljs/index.d.ts @@ -7,6 +7,7 @@ /// import child = require("child_process"); +import glob = require("glob"); /** * Changes to directory dir for the duration of the script @@ -524,10 +525,6 @@ export function touch(options: touchOptionsArray, files: string[]): void; // Configuration -export interface GlobOptions { - [key: string]: any; -} - export interface ShellConfig { /** * Suppresses all command output if true, except for echo() calls. Default is false. @@ -549,9 +546,9 @@ export interface ShellConfig { /** * Passed to glob.sync() instead of the default options ({}). - * @type {Object} + * @type {glob.IOptions} */ - globOptions: GlobOptions; + globOptions: glob.IOptions; /** * Absolute path of the Node binary. Default is null (inferred). From 4f735463f46a1bf9ef3ebf9bcff36809bec92458 Mon Sep 17 00:00:00 2001 From: Ben Ansell Date: Wed, 2 Aug 2017 20:56:32 +0100 Subject: [PATCH 022/166] =?UTF-8?q?Fix=20minor=20typo=E2=80=99s=20in=20com?= =?UTF-8?q?pilers=20and=20preprocessors=20(#18564)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/wallabyjs/index.d.ts | 6 +++--- types/wallabyjs/wallabyjs-tests.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/wallabyjs/index.d.ts b/types/wallabyjs/index.d.ts index 6c4d332de0..da966291b5 100644 --- a/types/wallabyjs/index.d.ts +++ b/types/wallabyjs/index.d.ts @@ -15,7 +15,7 @@ declare module 'wallabyjs' { * @property {string[] | IWallabyFilePattern[]} files - Specifies an array of source files or file name patterns to copy * to the local cache. * @property {Function=} postprocessor - Function that runs for every batch of file changes after all compilers and preprocessors. - * @property {Function=} preprocessor - Function that runs for every batch of file changes after all compilers. + * @property {Function=} preprocessors - Function that runs for every batch of file changes after all compilers. * @property {string=} testFramework - Specifies the name and version of the testing framework you are using for your tests. * @property {string[] | IWallabyFilePattern[]} tests - Specifies an array of test files or test file name patterns to copy * to the local cache. @@ -24,12 +24,12 @@ declare module 'wallabyjs' { * @see {@link https://wallabyjs.com/docs/config/overview.html} for details. */ export interface IWallabyConfig { - comilers?: IWallabyCompilers; + compilers?: IWallabyCompilers; debug?: boolean; env?: IWallabyEnvironment; files: string[] | IWallabyFilePattern[]; postprocessor?: IWallabyProcessor; - preprocessor?: IWallabyProcessor; + preprocessors?: IWallabyProcessor; testFramework?: string; tests: string[] | IWallabyFilePattern[]; workers?: IWallabyWorkers; diff --git a/types/wallabyjs/wallabyjs-tests.ts b/types/wallabyjs/wallabyjs-tests.ts index 5e6c90e0a4..141e55d708 100644 --- a/types/wallabyjs/wallabyjs-tests.ts +++ b/types/wallabyjs/wallabyjs-tests.ts @@ -21,7 +21,7 @@ export class WallabyConfig implements wallabyjs.IWallabyConfig { '**/*.ts': file => file.content + '\n// this is TypeScript' }; - public postprocessors: wallabyjs.IWallabyProcessor = { + public postprocessor: wallabyjs.IWallabyProcessor = { '**/*.js': file => file.content + '\n// this is JavaScript', '**/*.ts': file => file.content + '\n// this is TypeScript' }; From 928a4568a26d035da496ee7205221e7d62a02ea3 Mon Sep 17 00:00:00 2001 From: MartinVSA Date: Wed, 2 Aug 2017 21:56:55 +0200 Subject: [PATCH 023/166] Added highcharts event drillupall to interface ChartEvents (#18563) * Update index.d.ts Added method drillupall to ChartEvents * added highcharts method drillupall in tests --- types/highcharts/index.d.ts | 5 +++++ types/highcharts/test/index.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index 914fb83f96..f8ae716c13 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -1455,6 +1455,11 @@ declare namespace Highcharts { * @since 3.0.8 */ drillup?(event: Event): void; + /** + * Fires after drilling up from all drilldown series. + * @since 4.2.4 + */ + drillupall?(event: Event): void; /** * Fires when the chart is finished loading. One parameter, event, is passed to the function. This contains common * event information based on jQuery or MooTools depending on which library is used as the base for Highcharts. diff --git a/types/highcharts/test/index.ts b/types/highcharts/test/index.ts index 5ddc56420c..a17ee094c2 100644 --- a/types/highcharts/test/index.ts +++ b/types/highcharts/test/index.ts @@ -242,6 +242,7 @@ function test_ChartOptions() { click: () => { }, drilldown: () => { }, drillup: () => { }, + drillupall: () => { }, load: () => { }, redraw: () => { }, selection: () => { } From 6e8ad8b33244f239100e5c26c493cff486433429 Mon Sep 17 00:00:00 2001 From: huhuanming Date: Thu, 3 Aug 2017 03:59:19 +0800 Subject: [PATCH 024/166] bump to 0.47 (#18561) --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 7e850992fc..2a88c83e42 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native 0.46 +// Type definitions for react-native 0.47 // Project: https://github.com/facebook/react-native // Definitions by: Eloy Durán // Fedor Nezhivoi From 9ce2bb99d082ff62767f0542a372f935ec6a8af8 Mon Sep 17 00:00:00 2001 From: zamb3zi Date: Thu, 3 Aug 2017 02:59:41 +0700 Subject: [PATCH 025/166] Fixed types of debug.names and debug.skips arrays. (#18560) --- types/debug/debug-tests.ts | 1 + types/debug/index.d.ts | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/types/debug/debug-tests.ts b/types/debug/debug-tests.ts index fc8d3c5e56..73a16fe782 100644 --- a/types/debug/debug-tests.ts +++ b/types/debug/debug-tests.ts @@ -12,6 +12,7 @@ log("Formatted test (%d arg)", 1); log("Formatted %s (%d args)", "test", 2); log("Enabled?: %s", debug.enabled("DefinitelyTyped:log")); +log("Name Enabled: %s", debug.names.some(name => name.test("DefinitelyTyped:log"))); log("Namespace: %s", log.namespace); var error:debug.IDebugger = debug("DefinitelyTyped:error"); diff --git a/types/debug/index.d.ts b/types/debug/index.d.ts index 45d3ad02f3..8987b13a26 100644 --- a/types/debug/index.d.ts +++ b/types/debug/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for debug // Project: https://github.com/visionmedia/debug -// Definitions by: Seon-Wook Park , Gal Talmor +// Definitions by: Seon-Wook Park +// Gal Talmor +// John McLaughlin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var debug: debug.IDebug; @@ -16,8 +18,8 @@ declare namespace debug { enable: (namespaces: string) => void, enabled: (namespaces: string) => boolean, - names: string[], - skips: string[], + names: RegExp[], + skips: RegExp[], formatters: IFormatters } From b9382f593da012e865f7d78963155ed5c1cde735 Mon Sep 17 00:00:00 2001 From: samyang-au <30642836+samyang-au@users.noreply.github.com> Date: Thu, 3 Aug 2017 06:01:13 +1000 Subject: [PATCH 026/166] Added "show?: boolean" toIConstructorOptions (#18559) --- types/nightmare/index.d.ts | 2 ++ types/nightmare/nightmare-tests.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index 0dd7b31b97..150cb3e912 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for Nightmare 1.6.5 // Project: https://github.com/segmentio/nightmare // Definitions by: horiuchi +// Sam Yang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -78,6 +79,7 @@ declare namespace Nightmare { proxyAuth?: string; cookiesFile?: string; phantomPath?: string; + show?: boolean; } export interface IRequest { diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index a9251192b3..310cb46067 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -318,3 +318,4 @@ new Nightmare() .use(testTitle('test term')) .run(done); +new Nightmare({show: true}); \ No newline at end of file From 23ebc3e63ed1a6836d1827dc05b0d2b608c26754 Mon Sep 17 00:00:00 2001 From: Neil Gentleman Date: Wed, 2 Aug 2017 13:04:06 -0700 Subject: [PATCH 027/166] [jest] add timeout parameter to lifecycle methods (#18556) --- types/jest/index.d.ts | 2 +- types/jest/jest-tests.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 267f1d4a1a..6506ddbb8e 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -175,7 +175,7 @@ declare namespace jest { type ProvidesCallback = (cb: DoneCallback) => any; - type Lifecycle = (fn: ProvidesCallback) => any; + type Lifecycle = (fn: ProvidesCallback, timeout?: number) => any; /** * Creates a test closure diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index 4f780fd83b..ad63cc0a75 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -480,6 +480,12 @@ describe('strictNullChecks', () => { }); }); +describe('beforeEach with timeout', () => { + beforeEach(() => { + // this shouldn't take more than a second + }, 1000); +}); + class TestApi { constructor() { } testProp: boolean; From c855e42c9f6823d27b3cad1b05505e1f3369d0ab Mon Sep 17 00:00:00 2001 From: Willis Plummer Date: Wed, 2 Aug 2017 16:06:12 -0400 Subject: [PATCH 028/166] add mergeEntityData method to ContentState class (#18553) --- types/draft-js/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/draft-js/index.d.ts b/types/draft-js/index.d.ts index 00c9302740..5516e43559 100644 --- a/types/draft-js/index.d.ts +++ b/types/draft-js/index.d.ts @@ -715,6 +715,8 @@ declare namespace Draft { createEntity(type: DraftEntityType, mutability: DraftEntityMutability, data?: Object): ContentState; getEntity(key: string): EntityInstance; getLastCreatedEntityKey(): string; + mergeEntityData(key: string, toMerge: { [key: string]: any }): ContentState; + getBlockMap(): BlockMap; getSelectionBefore(): SelectionState; From 9334216df7031aec0b9e2b40488432b27317c479 Mon Sep 17 00:00:00 2001 From: Ed Staub Date: Wed, 2 Aug 2017 16:10:45 -0400 Subject: [PATCH 029/166] material-ui: Add missing DropDownMenuProps (#18541) * material-ui: Add missing DropDownMenuProps selectedMenuItemStyle, selectionRenderer, iconButton * Material-ui: DropDownMenuProps: fix missing colon * Nit: use function format rather than arrow --- types/material-ui/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 8373997f5c..204a4f7291 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1234,6 +1234,7 @@ declare namespace __MaterialUI { autoWidth?: boolean; className?: string; disabled?: boolean; + iconButton?: React.ReactNode; iconStyle?: React.CSSProperties; labelStyle?: React.CSSProperties; listStyle?: React.CSSProperties; @@ -1242,6 +1243,8 @@ declare namespace __MaterialUI { onChange?(e: TouchTapEvent, index: number, menuItemValue: any): void; onClose?(e: TouchTapEvent): void; openImmediately?: boolean; + selectedMenuItemStyle?: React.CSSProperties; + selectionRenderer?(value: any, menuItem: any): void; style?: React.CSSProperties; underlineStyle?: React.CSSProperties; value?: any; From 8a10ec02514b29711761a9f3cae7303003c8ca24 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Wed, 2 Aug 2017 22:18:24 +0200 Subject: [PATCH 030/166] Add maxLength type for material ui text field (#18345) * Add maxLength type for material ui text field * Add minlength property and change maxLength to lowercase only --- types/material-ui/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 204a4f7291..9cacfe1136 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1852,6 +1852,8 @@ declare namespace __MaterialUI { autoFocus?: boolean; min?: number; max?: number; + maxlength?: string; + minlegnth?: string; step?: number; autoComplete?: string; } From 63a27f5c42835373859f6c6db08f8430ed276d44 Mon Sep 17 00:00:00 2001 From: Gyula Szalai Date: Wed, 2 Aug 2017 23:44:05 +0200 Subject: [PATCH 031/166] jsonwebtoken.sign function type definition fixed. fixes #18469 (#18470) --- types/jsonwebtoken/index.d.ts | 8 +++++--- types/jsonwebtoken/jsonwebtoken-tests.ts | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/types/jsonwebtoken/index.d.ts b/types/jsonwebtoken/index.d.ts index 246d107dbb..335a6f52b7 100644 --- a/types/jsonwebtoken/index.d.ts +++ b/types/jsonwebtoken/index.d.ts @@ -83,6 +83,8 @@ export interface SignCallback { (err: Error, encoded: string): void; } +export type Secret = string | Buffer | {key: string, passphrase: string} + /** * Synchronously sign the given payload into a JSON Web Token string * @param {String|Object|Buffer} payload - Payload to sign, could be an literal, buffer or string @@ -90,7 +92,7 @@ export interface SignCallback { * @param {SignOptions} [options] - Options for the signature * @returns {String} The JSON Web Token string */ -export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string; +export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, options?: SignOptions): string; /** * Sign the given payload into a JSON Web Token string @@ -99,8 +101,8 @@ export declare function sign(payload: string | Buffer | object, secretOrPrivateK * @param {SignOptions} [options] - Options for the signature * @param {Function} callback - Callback to get the encoded token on */ -export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void; -export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void; +export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, callback: SignCallback): void; +export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, options: SignOptions, callback: SignCallback): void; /** * Synchronously verify given token using a secret or a public key to get a decoded token diff --git a/types/jsonwebtoken/jsonwebtoken-tests.ts b/types/jsonwebtoken/jsonwebtoken-tests.ts index 650f80d2bc..9e495d31cb 100644 --- a/types/jsonwebtoken/jsonwebtoken-tests.ts +++ b/types/jsonwebtoken/jsonwebtoken-tests.ts @@ -36,6 +36,10 @@ token = jwt.sign(testObject, 'shhhhh', { keyid: "theKeyId"}); cert = fs.readFileSync('private.key'); // get private key token = jwt.sign(testObject, cert, { algorithm: 'RS256'}); +// sign with encrypted RSA SHA256 private key (only PEM encoding is supported) +const privKey: Buffer = fs.readFileSync('encrypted_private.key'); // get private key +const secret = {key: privKey.toString(), passphrase: 'keypwd'} +token = jwt.sign(testObject, secret, { algorithm: 'RS256' }); // the algorithm option is mandatory in this case // sign asynchronously jwt.sign(testObject, cert, { algorithm: 'RS256' }, function(err: Error, token: string) { From ad7bc57897317782f7bb3f5173f02e86d354072c Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 3 Aug 2017 00:18:21 +0200 Subject: [PATCH 032/166] [p-lazy] introduce typings (#18590) * [p-lazy] introduce typings * [p-lazy] remove unnecessary TypeScript version restriction * [p-lazy] add test for reject ctor param --- types/p-lazy/index.d.ts | 10 ++++++++++ types/p-lazy/p-lazy-tests.ts | 23 +++++++++++++++++++++++ types/p-lazy/tsconfig.json | 22 ++++++++++++++++++++++ types/p-lazy/tslint.json | 1 + 4 files changed, 56 insertions(+) create mode 100644 types/p-lazy/index.d.ts create mode 100644 types/p-lazy/p-lazy-tests.ts create mode 100644 types/p-lazy/tsconfig.json create mode 100644 types/p-lazy/tslint.json diff --git a/types/p-lazy/index.d.ts b/types/p-lazy/index.d.ts new file mode 100644 index 0000000000..e64cfa6fc6 --- /dev/null +++ b/types/p-lazy/index.d.ts @@ -0,0 +1,10 @@ +// 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 new file mode 100644 index 0000000000..d240ae826e --- /dev/null +++ b/types/p-lazy/p-lazy-tests.ts @@ -0,0 +1,23 @@ +import PLazy = require('p-lazy'); + +const lazyPromise = new PLazy((resolve, reject) => { + if (typeof resolve === 'object') { + 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 new file mode 100644 index 0000000000..3d90d7b320 --- /dev/null +++ b/types/p-lazy/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-lazy-tests.ts" + ] +} diff --git a/types/p-lazy/tslint.json b/types/p-lazy/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-lazy/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From d2ea3d123964aa7a100797691663136af2074ee6 Mon Sep 17 00:00:00 2001 From: remisery <20260860+remisery@users.noreply.github.com> Date: Thu, 3 Aug 2017 00:20:25 +0200 Subject: [PATCH 033/166] [gulp-modernizr] Introduce new typings (#18577) * Introduce gulp-modernizr * Fix revision * Fix revision comments --- types/gulp-modernizr/gulp-modernizr-tests.ts | 8 ++ types/gulp-modernizr/index.d.ts | 79 ++++++++++++++++++++ types/gulp-modernizr/tsconfig.json | 22 ++++++ types/gulp-modernizr/tslint.json | 3 + 4 files changed, 112 insertions(+) create mode 100644 types/gulp-modernizr/gulp-modernizr-tests.ts create mode 100644 types/gulp-modernizr/index.d.ts create mode 100644 types/gulp-modernizr/tsconfig.json create mode 100644 types/gulp-modernizr/tslint.json diff --git a/types/gulp-modernizr/gulp-modernizr-tests.ts b/types/gulp-modernizr/gulp-modernizr-tests.ts new file mode 100644 index 0000000000..86b953b65c --- /dev/null +++ b/types/gulp-modernizr/gulp-modernizr-tests.ts @@ -0,0 +1,8 @@ +import { src, dest } from 'gulp'; +import * as gulpModernizr from 'gulp-modernizr'; + +let s1 = gulpModernizr(); +let s2 = gulpModernizr('filename.js', {}); +let s3 = gulpModernizr({cache: false}); + +src('fixtures.js').pipe(s1).pipe(s2); diff --git a/types/gulp-modernizr/index.d.ts b/types/gulp-modernizr/index.d.ts new file mode 100644 index 0000000000..c9dc3a60b8 --- /dev/null +++ b/types/gulp-modernizr/index.d.ts @@ -0,0 +1,79 @@ +// Type definitions for gulp-modernizr 1.0 +// Project: https://github.com/doctyper/gulp-modernizr +// Definitions by: remisery +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import stream = require('stream'); + +declare function GulpModernizr(parames?: GulpModernizr.Params): stream.Transform; +declare function GulpModernizr(file?: string, parames?: GulpModernizr.Params): stream.Transform; + +declare namespace GulpModernizr { + interface Params { + /** + * Avoid unnecessary builds (see Caching section below) + */ + cache?: boolean; + + /** + * Path to the build you're using for development. + */ + devFile?: string | false; + + /** + * Path to save out the built file + */ + dest?: string | false; + + /** + * Based on default settings on http://modernizr.com/download/ + */ + options?: { + classPrefix: string; + enableJSClass: boolean; + enableClasses: boolean; + }; + + /** + * By default, source is uglified before saving + */ + uglify?: boolean; + + /** + * Define any tests you want to explicitly include + */ + tests?: string[]; + + /** + * Useful for excluding any tests that this tool will match + * e.g. you use .notification class for notification elements, + * but don’t want the test for Notification API + */ + excludeTests?: string[]; + + /** + * By default, will crawl your project for references to Modernizr tests + * Set to false to disable + */ + crawl?: boolean; + + /** + * Set to true to pass in buffers via the "files" parameter below + */ + useBuffers?: boolean; + + /** + * By default, this task will crawl all *.js, *.css, *.scss files. + */ + files?: { src: string[] }; + + /** + * Have custom Modernizr tests? Add them here. + */ + customTests?: string[]; + } +} + +export = GulpModernizr; diff --git a/types/gulp-modernizr/tsconfig.json b/types/gulp-modernizr/tsconfig.json new file mode 100644 index 0000000000..28ad6706e0 --- /dev/null +++ b/types/gulp-modernizr/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "gulp-modernizr-tests.ts" + ] +} diff --git a/types/gulp-modernizr/tslint.json b/types/gulp-modernizr/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/gulp-modernizr/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From b81ce46d6afffa83d14fa265e2eb91524fb72c31 Mon Sep 17 00:00:00 2001 From: remisery <20260860+remisery@users.noreply.github.com> Date: Thu, 3 Aug 2017 00:21:26 +0200 Subject: [PATCH 034/166] [gulp-pug] Introduce new typings (#18575) * Introduce gulp-pug * fix revision comments --- types/gulp-pug/gulp-pug-tests.ts | 8 ++++++++ types/gulp-pug/index.d.ts | 24 ++++++++++++++++++++++++ types/gulp-pug/tsconfig.json | 22 ++++++++++++++++++++++ types/gulp-pug/tslint.json | 3 +++ 4 files changed, 57 insertions(+) create mode 100644 types/gulp-pug/gulp-pug-tests.ts create mode 100644 types/gulp-pug/index.d.ts create mode 100644 types/gulp-pug/tsconfig.json create mode 100644 types/gulp-pug/tslint.json diff --git a/types/gulp-pug/gulp-pug-tests.ts b/types/gulp-pug/gulp-pug-tests.ts new file mode 100644 index 0000000000..1820c2c375 --- /dev/null +++ b/types/gulp-pug/gulp-pug-tests.ts @@ -0,0 +1,8 @@ +import { src, dest } from 'gulp'; +import * as gulpPug from 'gulp-pug'; + +let s1 = gulpPug(); +let s2 = gulpPug({}); +let s3 = gulpPug({ basedir: '.' }); + +src('fixtures.js').pipe(s1).pipe(s2).pipe(s3); diff --git a/types/gulp-pug/index.d.ts b/types/gulp-pug/index.d.ts new file mode 100644 index 0000000000..46a8a79239 --- /dev/null +++ b/types/gulp-pug/index.d.ts @@ -0,0 +1,24 @@ +// Type definitions for gulp-pug 3.3 +// Project: https://github.com/pugjs/gulp-pug#readme +// Definitions by: remisery +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import stream = require('stream'); + +import { Options } from 'pug'; + +declare function GulpPug(params?: GulpPug.Params): stream.Transform; + +declare namespace GulpPug { + interface Params extends Options { + locals?: any; + data?: any; + client?: boolean; + pug?: any; + verbose?: boolean; + } +} + +export = GulpPug; diff --git a/types/gulp-pug/tsconfig.json b/types/gulp-pug/tsconfig.json new file mode 100644 index 0000000000..58c3140198 --- /dev/null +++ b/types/gulp-pug/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "gulp-pug-tests.ts" + ] +} diff --git a/types/gulp-pug/tslint.json b/types/gulp-pug/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/gulp-pug/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 795c365da9940b9289579c71419363e34e4e2a62 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 3 Aug 2017 00:23:40 +0200 Subject: [PATCH 035/166] [p-any] introduce typings (#18592) * [p-any] introduce typings * [p-any] add missing options interface * [p-lazy] add definitions for aggregate-error and expose constructor as prop of pAny --- .../aggregate-error/aggregate-error-tests.ts | 9 +++++ types/aggregate-error/index.d.ts | 12 ++++++ types/aggregate-error/tsconfig.json | 22 ++++++++++ types/aggregate-error/tslint.json | 1 + types/p-any/index.d.ts | 40 +++++++++++++++++++ types/p-any/p-any-tests.ts | 24 +++++++++++ types/p-any/tsconfig.json | 22 ++++++++++ types/p-any/tslint.json | 1 + 8 files changed, 131 insertions(+) create mode 100644 types/aggregate-error/aggregate-error-tests.ts create mode 100644 types/aggregate-error/index.d.ts create mode 100644 types/aggregate-error/tsconfig.json create mode 100644 types/aggregate-error/tslint.json create mode 100644 types/p-any/index.d.ts create mode 100644 types/p-any/p-any-tests.ts create mode 100644 types/p-any/tsconfig.json create mode 100644 types/p-any/tslint.json diff --git a/types/aggregate-error/aggregate-error-tests.ts b/types/aggregate-error/aggregate-error-tests.ts new file mode 100644 index 0000000000..4d434ff746 --- /dev/null +++ b/types/aggregate-error/aggregate-error-tests.ts @@ -0,0 +1,9 @@ +import AggregateError = require('aggregate-error'); + +const err = new AggregateError([new Error('foo'), 'bar']); + +for (const el of Array.from(err)) { + let err: Error = el; +} + +throw err; diff --git a/types/aggregate-error/index.d.ts b/types/aggregate-error/index.d.ts new file mode 100644 index 0000000000..8c8c4cd3b2 --- /dev/null +++ b/types/aggregate-error/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for aggregate-error 1.0 +// Project: https://github.com/sindresorhus/aggregate-error#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = AggregateError; + +declare class AggregateError extends Error implements Iterable { + constructor(errors: Iterable); + + [Symbol.iterator](): Iterator; +} diff --git a/types/aggregate-error/tsconfig.json b/types/aggregate-error/tsconfig.json new file mode 100644 index 0000000000..253c743b98 --- /dev/null +++ b/types/aggregate-error/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "aggregate-error-tests.ts" + ] +} diff --git a/types/aggregate-error/tslint.json b/types/aggregate-error/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/aggregate-error/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/p-any/index.d.ts b/types/p-any/index.d.ts new file mode 100644 index 0000000000..0354ec661a --- /dev/null +++ b/types/p-any/index.d.ts @@ -0,0 +1,40 @@ +// Type definitions for p-any 1.1 +// Project: https://github.com/sindresorhus/p-any#readme +// Definitions by: My Self +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import AggregateErrorModule = require('aggregate-error'); + +export = pAny; + +declare function pAny( + values: [Value, Value, Value, Value, Value, Value, Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny( + values: [Value, Value, Value, Value, Value, Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny( + values: [Value, Value, Value, Value, Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny( + values: [Value, Value, Value, Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny(values: [Value, Value, Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny(values: [Value, Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny(values: [Value, Value, Value, Value], + options?: pAny.Options): Promise; +declare function pAny(values: [Value, Value, Value], options?: pAny.Options): Promise; +declare function pAny(values: [Value, Value], options?: pAny.Options): Promise; +declare function pAny(values: Iterable> | Array>, options?: pAny.Options): Promise; + +type Value = T | PromiseLike; + +declare namespace pAny { + interface Options { + filter?(value: T): boolean; + } + + const AggregateError: typeof AggregateErrorModule; +} diff --git a/types/p-any/p-any-tests.ts b/types/p-any/p-any-tests.ts new file mode 100644 index 0000000000..e2eeda8423 --- /dev/null +++ b/types/p-any/p-any-tests.ts @@ -0,0 +1,24 @@ +import got = require('got'); +import pAny = require('p-any'); + +pAny([ + got.head('github.com').then(() => 'github'), + got.head('google.com').then(() => 'google'), + got.head('twitter.com').then(() => 'twitter'), +]).then(first => { + let str: string = first; +}); + +pAny(new Set([ + got.head('github.com').then(() => 'github'), + got.head('google.com').then(() => 'google'), + got.head('twitter.com').then(() => 'twitter'), +]), { + filter(str: string) { + return true; + } +}).then(first => { + let str: string = first; +}); + +throw new pAny.AggregateError([]); diff --git a/types/p-any/tsconfig.json b/types/p-any/tsconfig.json new file mode 100644 index 0000000000..564eabff80 --- /dev/null +++ b/types/p-any/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-any-tests.ts" + ] +} diff --git a/types/p-any/tslint.json b/types/p-any/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-any/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 17b09d742dac758eeed10a2c1220cb62a5859c00 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 2 Aug 2017 16:08:09 -0700 Subject: [PATCH 036/166] Add missing definitions for source-map (#18482) --- types/source-map/index.d.ts | 456 +++++++++++++++++++-------- types/source-map/source-map-tests.ts | 55 ++-- types/source-map/tslint.json | 1 + 3 files changed, 364 insertions(+), 148 deletions(-) create mode 100644 types/source-map/tslint.json diff --git a/types/source-map/index.d.ts b/types/source-map/index.d.ts index 310b969f14..0bf31eb438 100644 --- a/types/source-map/index.d.ts +++ b/types/source-map/index.d.ts @@ -1,136 +1,332 @@ -// Type definitions for source-map v0.5.6 +// Type definitions for source-map 0.5 // Project: https://github.com/mozilla/source-map -// Definitions by: Morten Houston Ludvigsen +// Definitions by: Morten Houston Ludvigsen , +// Ron Buckton // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = SourceMap; export as namespace sourceMap; -declare namespace SourceMap { - interface StartOfSourceMap { - file?: string; - sourceRoot?: string; - skipValidation?: boolean; - } - - interface RawSourceMap { - version: number; - sources: string[]; - names: string[]; - sourceRoot?: string; - sourcesContent?: string[]; - mappings: string; - file: string; - } - - interface Position { - line: number; - column: number; - } - - interface MappedPosition extends Position { - source: string; - name?: string; - } - - interface MappingItem { - source: string; - generatedLine: number; - generatedColumn: number; - originalLine: number; - originalColumn: number; - name: string; - } - - interface Mapping { - generated: Position; - original: Position; - source: string; - name?: string; - } - - interface CodeWithSourceMap { - code: string; - map: SourceMapGenerator; - } - - class SourceMapConsumer { - public static GENERATED_ORDER: number; - public static ORIGINAL_ORDER: number; - - constructor(rawSourceMap: RawSourceMap | string); - - public computeColumnSpans(): void; - - public originalPositionFor(generatedPosition: Position): MappedPosition; - - public generatedPositionFor(originalPosition: MappedPosition): Position; - - public allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]; - - public hasContentsOfAllSources(): boolean; - - public sourceContentFor(source: string, returnNullOnMissing?: boolean): string; - - public eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void; - } - - class SourceMapGenerator { - constructor(startOfSourceMap?: StartOfSourceMap); - - public static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator; - - public addMapping(mapping: Mapping): void; - - public setSourceContent(sourceFile: string, sourceContent: string): void; - - public applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void; - - public toString(): string; - - public toJSON(): RawSourceMap; - } - - class SourceNode { - children: SourceNode []; - sourceContents: any; - line: number; - column: number; - source: string; - name: string; - - constructor(); - constructor(line: number, column: number, source: string); - constructor( - line: number, - column: number, - source: string, - chunks?: (string | SourceNode)[] | SourceNode | string, - name?: string - ); - - public static fromStringWithSourceMap( - code: string, - sourceMapConsumer: SourceMapConsumer, - relativePath?: string - ): SourceNode; - - public add(chunk: (string | SourceNode)[] | SourceNode | string): SourceNode; - - public prepend(chunk: (string | SourceNode)[] | SourceNode | string): SourceNode; - - public setSourceContent(sourceFile: string, sourceContent: string): void; - - public walk(fn: (chunk: string, mapping: MappedPosition) => void): void; - - public walkSourceContents(fn: (file: string, content: string) => void): void; - - public join(sep: string): SourceNode; - - public replaceRight(pattern: string, replacement: string): SourceNode; - - public toString(): string; - - public toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; - } +export interface StartOfSourceMap { + file?: string; + sourceRoot?: string; + skipValidation?: boolean; +} + +export interface RawSourceMap { + version: number; + sources: string[]; + names: string[]; + sourceRoot?: string; + sourcesContent?: string[]; + mappings: string; + file: string; +} + +export interface RawIndexMap extends StartOfSourceMap { + version: number; + sections: RawSection[]; +} + +export interface RawSection { + offset: Position; + map: RawSourceMap; +} + +export interface Position { + line: number; + column: number; +} + +export interface NullablePosition { + line: number | null; + column: number | null; + lastColumn: number | null; +} + +export interface MappedPosition { + source: string; + line: number; + column: number; + name?: string; +} + +export interface NullableMappedPosition { + source: string | null; + line: number | null; + column: number | null; + name: string | null; +} + +export interface MappingItem { + source: string; + generatedLine: number; + generatedColumn: number; + originalLine: number; + originalColumn: number; + name: string; +} + +export interface Mapping { + generated: Position; + original: Position; + source: string; + name?: string; +} + +export interface CodeWithSourceMap { + code: string; + map: SourceMapGenerator; +} + +export interface SourceMapConsumer { + /** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ + computeColumnSpans(): void; + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. + * - column: The column number in the generated source. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. + * - column: The column number in the original source, or null. + * - name: The original identifier, or null. + */ + originalPositionFor(generatedPosition: Position & { bias?: number }): NullableMappedPosition; + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. + * - column: The column number in the original source. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. + * - column: The column number in the generated source, or null. + */ + generatedPositionFor(originalPosition: MappedPosition & { bias?: number }): NullablePosition; + + /** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. + * - column: Optional. the column number in the original source. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. + * - column: The column number in the generated source, or null. + */ + allGeneratedPositionsFor(originalPosition: MappedPosition): NullablePosition[]; + + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + hasContentsOfAllSources(): boolean; + + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + sourceContentFor(source: string, returnNullOnMissing?: boolean): string | null; + + /** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. + * + * @param callback + * The function that is called with each mapping. + * @param context + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param order + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. + */ + eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void; +} + +export interface SourceMapConsumerConstructor { + prototype: SourceMapConsumer; + + GENERATED_ORDER: number; + ORIGINAL_ORDER: number; + GREATEST_LOWER_BOUND: number; + LEAST_UPPER_BOUND: number; + + new (rawSourceMap: RawSourceMap): BasicSourceMapConsumer; + new (rawSourceMap: RawIndexMap): IndexedSourceMapConsumer; + new (rawSourceMap: RawSourceMap | RawIndexMap | string): BasicSourceMapConsumer | IndexedSourceMapConsumer; + + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param sourceMap + * The source map that will be consumed. + */ + fromSourceMap(sourceMap: SourceMapGenerator): BasicSourceMapConsumer; +} + +export const SourceMapConsumer: SourceMapConsumerConstructor; + +export interface BasicSourceMapConsumer extends SourceMapConsumer { + file: string; + sourceRoot: string; + sources: string[]; + sourcesContent: string[]; +} + +export interface BasicSourceMapConsumerConstructor { + prototype: BasicSourceMapConsumer; + + new (rawSourceMap: RawSourceMap | string): BasicSourceMapConsumer; + + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param sourceMap + * The source map that will be consumed. + */ + fromSourceMap(sourceMap: SourceMapGenerator): BasicSourceMapConsumer; +} + +export const BasicSourceMapConsumer: BasicSourceMapConsumerConstructor; + +export interface IndexedSourceMapConsumer extends SourceMapConsumer { + sources: string[]; +} + +export interface IndexedSourceMapConsumerConstructor { + prototype: IndexedSourceMapConsumer; + + new (rawSourceMap: RawIndexMap | string): IndexedSourceMapConsumer; +} + +export const IndexedSourceMapConsumer: IndexedSourceMapConsumerConstructor; + +export class SourceMapGenerator { + constructor(startOfSourceMap?: StartOfSourceMap); + + /** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param sourceMapConsumer The SourceMap. + */ + static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator; + + /** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ + addMapping(mapping: Mapping): void; + + /** + * Set the source content for a source file. + */ + setSourceContent(sourceFile: string, sourceContent: string): void; + + /** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param sourceMapConsumer The source map to be applied. + * @param sourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param sourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ + applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void; + + toString(): string; + + toJSON(): RawSourceMap; +} + +export class SourceNode { + children: SourceNode[]; + sourceContents: any; + line: number; + column: number; + source: string; + name: string; + + constructor(); + constructor( + line: number, + column: number, + source: string, + chunks?: Array<(string | SourceNode)> | SourceNode | string, + name?: string + ); + + static fromStringWithSourceMap( + code: string, + sourceMapConsumer: SourceMapConsumer, + relativePath?: string + ): SourceNode; + + add(chunk: Array<(string | SourceNode)> | SourceNode | string): SourceNode; + + prepend(chunk: Array<(string | SourceNode)> | SourceNode | string): SourceNode; + + setSourceContent(sourceFile: string, sourceContent: string): void; + + walk(fn: (chunk: string, mapping: MappedPosition) => void): void; + + walkSourceContents(fn: (file: string, content: string) => void): void; + + join(sep: string): SourceNode; + + replaceRight(pattern: string, replacement: string): SourceNode; + + toString(): string; + + toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; } diff --git a/types/source-map/source-map-tests.ts b/types/source-map/source-map-tests.ts index 4e584d2338..883abdda91 100644 --- a/types/source-map/source-map-tests.ts +++ b/types/source-map/source-map-tests.ts @@ -2,7 +2,7 @@ import SourceMap = require('source-map'); function testSourceMapConsumer() { function testConstructor() { - var scm: SourceMap.SourceMapConsumer; + let scm: SourceMap.SourceMapConsumer; // create with full RawSourceMap scm = new SourceMap.SourceMapConsumer({ @@ -31,33 +31,52 @@ function testSourceMapConsumer() { mappings: 'foo', file: 'sdf' }); + + // create from index map + let iscm: SourceMap.IndexedSourceMapConsumer = new SourceMap.SourceMapConsumer({ + version: 3, + sections: [ + { offset: { line: 0, column: 0 }, map: { + version: 3, + sources: ['foo', 'bar'], + names: ['foo', 'bar'], + mappings: 'foo', + file: 'foo' + } } + ] + }); + + let scg: SourceMap.SourceMapGenerator; + let bscm: SourceMap.BasicSourceMapConsumer = SourceMap.SourceMapConsumer.fromSourceMap(scg); } function testOriginalPositionFor(scm: SourceMap.SourceMapConsumer) { - var origPos: SourceMap.MappedPosition; + let origPos: SourceMap.MappedPosition; origPos = scm.originalPositionFor({ line: 42, column: 42 }); + origPos = scm.originalPositionFor({ line: 42, column: 42, bias: SourceMap.SourceMapConsumer.LEAST_UPPER_BOUND }); } function testAllGeneratedPositionsFor(scm: SourceMap.SourceMapConsumer) { - var origPos: SourceMap.MappedPosition; - var origPoses: SourceMap.Position[]; + let origPos: SourceMap.MappedPosition; + let origPoses: SourceMap.Position[]; origPoses = scm.allGeneratedPositionsFor(origPos); } function testGeneratedPositionFor(scm: SourceMap.SourceMapConsumer) { - var genPos: SourceMap.Position; + let genPos: SourceMap.Position; genPos = scm.generatedPositionFor({ line: 42, column: 42, source: 'foo' }); genPos = scm.generatedPositionFor({ line: 42, column: 42, source: 'foo', name: 'bar' }); + genPos = scm.generatedPositionFor({ line: 42, column: 42, source: 'foo', name: 'bar', bias: SourceMap.SourceMapConsumer.LEAST_UPPER_BOUND }); } function testSourceContentFor(scm: SourceMap.SourceMapConsumer) { - var content: string; + let content: string; content = scm.sourceContentFor('foo'); } function testEachMapping(scm: SourceMap.SourceMapConsumer) { - var x: SourceMap.MappingItem; - var context: {}; + let x: SourceMap.MappingItem; + let context: {}; scm.eachMapping(mapping => { x = mapping; }); scm.eachMapping(mapping => { x = mapping; }, context); @@ -68,7 +87,7 @@ function testSourceMapConsumer() { function testSourceMapGenerator() { function testConstructor() { - var generator: SourceMap.SourceMapGenerator; + let generator: SourceMap.SourceMapGenerator; generator = new SourceMap.SourceMapGenerator(); generator = new SourceMap.SourceMapGenerator({ @@ -113,14 +132,14 @@ function testSourceMapGenerator() { } function testToString(generator: SourceMap.SourceMapGenerator) { - var str: string; + let str: string; str = generator.toString(); } } function testSourceNode() { function testConstructor() { - var node: SourceMap.SourceNode; + let node: SourceMap.SourceNode; node = new SourceMap.SourceNode(); node = new SourceMap.SourceNode(42, 42, 'foo'); @@ -130,7 +149,7 @@ function testSourceNode() { } function testFromStringWithSourceMap(scm: SourceMap.SourceMapConsumer) { - var node: SourceMap.SourceNode; + let node: SourceMap.SourceNode; node = SourceMap.SourceNode.fromStringWithSourceMap('foo', scm); node = SourceMap.SourceNode.fromStringWithSourceMap('foo', scm, 'bar'); @@ -153,15 +172,15 @@ function testSourceNode() { } function testWalk(node: SourceMap.SourceNode) { - var chunk: string; - var mapping: SourceMap.MappedPosition; + let chunk: string; + let mapping: SourceMap.MappedPosition; node.walk((c, m) => { chunk = c; mapping = m; }); } function testWalkSourceContents(node: SourceMap.SourceNode) { - var file: string; - var content: string; + let file: string; + let content: string; node.walkSourceContents((f, c) => { file = f; content = c; }); } @@ -175,12 +194,12 @@ function testSourceNode() { } function testToString(node: SourceMap.SourceNode) { - var str: string; + let str: string; str = node.toString(); } function testToStringWithSourceMap(node: SourceMap.SourceNode, sos: SourceMap.StartOfSourceMap) { - var result: SourceMap.CodeWithSourceMap; + let result: SourceMap.CodeWithSourceMap; result = node.toStringWithSourceMap(); result = node.toStringWithSourceMap(sos); } diff --git a/types/source-map/tslint.json b/types/source-map/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/source-map/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file From 2754522a15af9a58e126f3cae6c6f2e592f8b2d0 Mon Sep 17 00:00:00 2001 From: Andrew Kirkegaard Date: Wed, 2 Aug 2017 18:11:01 -0500 Subject: [PATCH 037/166] Relax d3-array parameter definitions to ArrayLike (#18580) * Relax parameter definitions for most d3-array functions from Array to ArrayLike (#18494) * Add cases for TypedArrays and ArrayLike (as ReadonlyArray) to d3-array tests (#18494) * Redefine d3-array shuffle so it fails when called with a ReadonlyArray (#18494) --- types/d3-array/d3-array-tests.ts | 345 ++++++++++++++++++++++++------- types/d3-array/index.d.ts | 117 ++++++----- 2 files changed, 331 insertions(+), 131 deletions(-) diff --git a/types/d3-array/d3-array-tests.ts b/types/d3-array/d3-array-tests.ts index b95da5774f..287f1d1a5e 100644 --- a/types/d3-array/d3-array-tests.ts +++ b/types/d3-array/d3-array-tests.ts @@ -54,18 +54,29 @@ let mixedOrUndefinedExtent: [d3Array.Primitive | NumCoercible, d3Array.Primitive let dateOrUndefinedExtent: [Date, Date] | [undefined, undefined]; let numbersArray = [10, 20, 30, 40, 50]; -const numbersOrUndefinedArray = [10, 20, undefined, null, 40, 50]; -const stringyNumbersArray = ['10', '20', '30', '40', '50']; -const numericArray = [new NumCoercible(10), new NumCoercible(20), new NumCoercible(30), new NumCoercible(40), new NumCoercible(50)]; -const dateArray = [new Date(2016, 6, 1), new Date(2016, 7, 30), new Date(2015, 3, 15)]; -const mixedObjectArray = [ +let numbersOrUndefinedArray = [10, 20, undefined, null, 40, 50]; +let stringyNumbersArray = ['10', '20', '30', '40', '50']; +let numericArray = [new NumCoercible(10), new NumCoercible(20), new NumCoercible(30), new NumCoercible(40), new NumCoercible(50)]; +let dateArray = [new Date(2016, 6, 1), new Date(2016, 7, 30), new Date(2015, 3, 15)]; + +let mixedObjectArray = [ new MixedObject(10, new Date(2016, 6, 1)), new MixedObject(20, new Date(2016, 7, 30)), new MixedObject(30, new Date(2015, 3, 15)), new MixedObject(40, new Date(2014, 3, 15)), new MixedObject(50, new Date(2017, 4, 15)) ]; -const mixedObjectOrUndefinedArray = [...mixedObjectArray, undefined]; + +let mixedObjectOrUndefinedArray = [...mixedObjectArray, undefined]; + +let typedArray = Uint8Array.from(numbersArray); +let readonlyNumbersArray = numbersArray as ReadonlyArray; +let readonlyNumbersOrUndefinedArray = numbersOrUndefinedArray as ReadonlyArray; +let readonlyStringyNumbersArray = stringyNumbersArray as ReadonlyArray; +let readonlyNumericArray = numericArray as ReadonlyArray; +let readonlyDateArray = dateArray as ReadonlyArray; +let readonlyMixedObjectArray = mixedObjectArray as ReadonlyArray; +let readonlyMixedObjectOrUndefinedArray = mixedObjectOrUndefinedArray as ReadonlyArray; function accessorMixedObjectToNum(datum: MixedObject, index: number, array: MixedObject[]): number { return datum.num; @@ -104,6 +115,14 @@ strOrUndefined = d3Array.max(stringyNumbersArray); numericOrUndefined = d3Array.max(numericArray); dateOrUndefined = d3Array.max(dateArray); +// ArrayLike test cases + +numOrUndefined = d3Array.max(typedArray); +numOrUndefined = d3Array.max(readonlyNumbersOrUndefinedArray); +strOrUndefined = d3Array.max(readonlyStringyNumbersArray); +numericOrUndefined = d3Array.max(readonlyNumericArray); +dateOrUndefined = d3Array.max(readonlyDateArray); + // with accessors numOrUndefined = d3Array.max(mixedObjectArray, accessorMixedObjectToNum); @@ -112,6 +131,7 @@ numericOrUndefined = d3Array.max(mixedObjectArray, accessorMixedObjectToNumeric) dateOrUndefined = d3Array.max(mixedObjectArray, accessorMixedObjectToDate); numOrUndefined = d3Array.max(mixedObjectArray, accessorMixedObjectToNumOrUndefined); strOrUndefined = d3Array.max(mixedObjectArray, accessorMixedObjectToStrOrUndefined); +numOrUndefined = d3Array.max(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // min() ----------------------------------------------------------------------- @@ -122,6 +142,14 @@ strOrUndefined = d3Array.min(stringyNumbersArray); numericOrUndefined = d3Array.min(numericArray); dateOrUndefined = d3Array.min(dateArray); +// ArrayLike test cases + +numOrUndefined = d3Array.min(typedArray); +numOrUndefined = d3Array.min(readonlyNumbersOrUndefinedArray); +strOrUndefined = d3Array.min(readonlyStringyNumbersArray); +numericOrUndefined = d3Array.min(readonlyNumericArray); +dateOrUndefined = d3Array.min(readonlyDateArray); + // with accessors numOrUndefined = d3Array.min(mixedObjectArray, accessorMixedObjectToNum); @@ -130,6 +158,7 @@ numericOrUndefined = d3Array.min(mixedObjectArray, accessorMixedObjectToNumeric) dateOrUndefined = d3Array.min(mixedObjectArray, accessorMixedObjectToDate); numOrUndefined = d3Array.min(mixedObjectArray, accessorMixedObjectToNumOrUndefined); strOrUndefined = d3Array.min(mixedObjectArray, accessorMixedObjectToStrOrUndefined); +numOrUndefined = d3Array.max(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // extent() -------------------------------------------------------------------- @@ -140,6 +169,14 @@ strOrUndefinedExtent = d3Array.extent(stringyNumbersArray); numericOrUndefinedExtent = d3Array.extent(numericArray); dateOrUndefinedExtent = d3Array.extent(dateArray); +// ArrayLike test cases + +numOrUndefinedExtent = d3Array.extent(typedArray); +numOrUndefinedExtent = d3Array.extent(readonlyNumbersOrUndefinedArray); +strOrUndefinedExtent = d3Array.extent(readonlyStringyNumbersArray); +numericOrUndefinedExtent = d3Array.extent(readonlyNumericArray); +dateOrUndefinedExtent = d3Array.extent(readonlyDateArray); + // with accessors numOrUndefinedExtent = d3Array.extent(mixedObjectArray, accessorMixedObjectToNum); @@ -148,6 +185,7 @@ mixedOrUndefinedExtent = d3Array.extent(mixedObjectArray, accessorMixedObjectToN dateMixedOrUndefined = d3Array.extent(mixedObjectArray, accessorMixedObjectToDate); numOrUndefinedExtent = d3Array.extent(mixedObjectArray, accessorMixedObjectToNumOrUndefined); strOrUndefinedExtent = d3Array.extent(mixedObjectArray, accessorMixedObjectToStrOrUndefined); +numOrUndefinedExtent = d3Array.extent(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // mean() ---------------------------------------------------------------------- @@ -155,8 +193,14 @@ numOrUndefined = d3Array.mean(numbersArray); numOrUndefined = d3Array.mean(numericArray); numOrUndefined = d3Array.mean(numbersOrUndefinedArray); +numOrUndefined = d3Array.mean(typedArray); +numOrUndefined = d3Array.mean(readonlyNumbersOrUndefinedArray); +numOrUndefined = d3Array.mean(readonlyNumericArray); +numOrUndefined = d3Array.mean(readonlyNumbersOrUndefinedArray); + numOrUndefined = d3Array.mean(mixedObjectArray, accessorMixedObjectToNum); numOrUndefined = d3Array.mean(mixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); +numOrUndefined = d3Array.mean(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // median() -------------------------------------------------------------------- @@ -164,8 +208,14 @@ numOrUndefined = d3Array.median(numbersArray); numOrUndefined = d3Array.median(numericArray); numOrUndefined = d3Array.median(numbersOrUndefinedArray); +numOrUndefined = d3Array.median(typedArray); +numOrUndefined = d3Array.median(readonlyNumbersArray); +numOrUndefined = d3Array.median(readonlyNumericArray); +numOrUndefined = d3Array.median(readonlyNumbersOrUndefinedArray); + numOrUndefined = d3Array.median(mixedObjectArray, accessorMixedObjectToNum); numOrUndefined = d3Array.median(mixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); +numOrUndefined = d3Array.median(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // quantile() ------------------------------------------------------------------ @@ -173,8 +223,14 @@ numOrUndefined = d3Array.quantile(numbersArray, 0.5); numOrUndefined = d3Array.quantile(numericArray, 0.5); numOrUndefined = d3Array.quantile(numbersOrUndefinedArray, 0.5); +numOrUndefined = d3Array.quantile(typedArray, 0.5); +numOrUndefined = d3Array.quantile(readonlyNumbersArray, 0.5); +numOrUndefined = d3Array.quantile(readonlyNumericArray, 0.5); +numOrUndefined = d3Array.quantile(readonlyNumbersOrUndefinedArray, 0.5); + numOrUndefined = d3Array.quantile(mixedObjectArray, 0.5, accessorMixedObjectToNum); numOrUndefined = d3Array.quantile(mixedObjectOrUndefinedArray, 0.5, accessorMixedObjectToNumOrUndefined); +numOrUndefined = d3Array.quantile(readonlyMixedObjectOrUndefinedArray, 0.5, accessorMixedObjectToNumOrUndefined); // sum() ----------------------------------------------------------------------- @@ -182,8 +238,14 @@ numOrUndefined = d3Array.sum(numbersArray); numOrUndefined = d3Array.sum(numericArray); numOrUndefined = d3Array.sum(numbersOrUndefinedArray); +numOrUndefined = d3Array.sum(typedArray); +numOrUndefined = d3Array.sum(readonlyNumbersArray); +numOrUndefined = d3Array.sum(readonlyNumericArray); +numOrUndefined = d3Array.sum(readonlyNumbersOrUndefinedArray); + numOrUndefined = d3Array.sum(mixedObjectArray, accessorMixedObjectToNum); numOrUndefined = d3Array.sum(mixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); +numOrUndefined = d3Array.sum(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // deviation() ----------------------------------------------------------------- @@ -191,8 +253,14 @@ numOrUndefined = d3Array.deviation(numbersArray); numOrUndefined = d3Array.deviation(numericArray); numOrUndefined = d3Array.deviation(numbersOrUndefinedArray); +numOrUndefined = d3Array.deviation(typedArray); +numOrUndefined = d3Array.deviation(readonlyNumbersArray); +numOrUndefined = d3Array.deviation(readonlyNumericArray); +numOrUndefined = d3Array.deviation(readonlyNumbersOrUndefinedArray); + numOrUndefined = d3Array.deviation(mixedObjectArray, accessorMixedObjectToNum); numOrUndefined = d3Array.deviation(mixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); +numOrUndefined = d3Array.deviation(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // variance() ------------------------------------------------------------------ @@ -200,16 +268,29 @@ numOrUndefined = d3Array.variance(numbersArray); numOrUndefined = d3Array.variance(numericArray); numOrUndefined = d3Array.variance(numbersOrUndefinedArray); +numOrUndefined = d3Array.variance(typedArray); +numOrUndefined = d3Array.variance(readonlyNumbersArray); +numOrUndefined = d3Array.variance(readonlyNumericArray); +numOrUndefined = d3Array.variance(readonlyNumbersOrUndefinedArray); + numOrUndefined = d3Array.variance(mixedObjectArray, accessorMixedObjectToNum); numOrUndefined = d3Array.variance(mixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); +numOrUndefined = d3Array.variance(readonlyMixedObjectOrUndefinedArray, accessorMixedObjectToNumOrUndefined); // ----------------------------------------------------------------------------- // Test Searching Arrays // ----------------------------------------------------------------------------- +numbersArray = [0, 2, 3, 4, 7, 8]; +stringyNumbersArray = ['0', '2', '3', '4', '7', '8']; +dateArray = [new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)]; +typedArray = Uint8Array.from(numbersArray); + // scan() ---------------------------------------------------------------------- numOrUndefined = d3Array.scan(numbersArray); +numOrUndefined = d3Array.scan(typedArray); +numOrUndefined = d3Array.scan(readonlyNumbersArray); numOrUndefined = d3Array.scan(mixedObjectArray, (a, b) => { const aElem: MixedObject = a; @@ -217,53 +298,113 @@ numOrUndefined = d3Array.scan(mixedObjectArray, (a, b) => { return a.num - b.num; }); +numOrUndefined = d3Array.scan(readonlyMixedObjectArray, (a, b) => { + const aElem: MixedObject = a; + const bElem: MixedObject = b; + return a.num - b.num; +}); + numOrUndefined = d3Array.scan(mixedObjectOrUndefinedArray, (a, b) => { const aElem: MixedObject | undefined = a; const bElem: MixedObject | undefined = b; return a && b ? a.num - b.num : NaN; }); +numOrUndefined = d3Array.scan(readonlyMixedObjectOrUndefinedArray, (a, b) => { + const aElem: MixedObject | undefined = a; + const bElem: MixedObject | undefined = b; + return a && b ? a.num - b.num : NaN; +}); + // bisectLeft() ---------------------------------------------------------------- -num = d3Array.bisectLeft([0, 2, 3, 4, 7, 8], 4); -num = d3Array.bisectLeft([0, 2, 3, 4, 7, 8], 4, 1); -num = d3Array.bisectLeft([0, 2, 3, 4, 7, 8], 4, 1, 4); +num = d3Array.bisectLeft(numbersArray, 4); +num = d3Array.bisectLeft(numbersArray, 4, 1); +num = d3Array.bisectLeft(numbersArray, 4, 1, 4); -num = d3Array.bisectLeft(['0', '2', '3', '4', '7', '8'], '21'); -num = d3Array.bisectLeft(['0', '2', '3', '4', '7', '8'], '21', 1); -num = d3Array.bisectLeft(['0', '2', '3', '4', '7', '8'], '21', 1, 4); +num = d3Array.bisectLeft(stringyNumbersArray, '21'); +num = d3Array.bisectLeft(stringyNumbersArray, '21', 1); +num = d3Array.bisectLeft(stringyNumbersArray, '21', 1, 4); -num = d3Array.bisectLeft([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1)); -num = d3Array.bisectLeft([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1), 1); -num = d3Array.bisectLeft([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1), 1, 2); +num = d3Array.bisectLeft(dateArray, new Date(2011, 2, 1)); +num = d3Array.bisectLeft(dateArray, new Date(2011, 2, 1), 1); +num = d3Array.bisectLeft(dateArray, new Date(2011, 2, 1), 1, 2); + +num = d3Array.bisectLeft(typedArray, 4); +num = d3Array.bisectLeft(typedArray, 4, 1); +num = d3Array.bisectLeft(typedArray, 4, 1, 4); + +num = d3Array.bisectLeft(readonlyNumbersArray, 4); +num = d3Array.bisectLeft(readonlyNumbersArray, 4, 1); +num = d3Array.bisectLeft(readonlyNumbersArray, 4, 1, 4); + +num = d3Array.bisectLeft(readonlyStringyNumbersArray, '21'); +num = d3Array.bisectLeft(readonlyStringyNumbersArray, '21', 1); +num = d3Array.bisectLeft(readonlyStringyNumbersArray, '21', 1, 4); + +num = d3Array.bisectLeft(readonlyDateArray, new Date(2011, 2, 1)); +num = d3Array.bisectLeft(readonlyDateArray, new Date(2011, 2, 1), 1); +num = d3Array.bisectLeft(readonlyDateArray, new Date(2011, 2, 1), 1, 2); // bisectRight() --------------------------------------------------------------- -num = d3Array.bisectRight([0, 2, 3, 4, 7, 8], 4); -num = d3Array.bisectRight([0, 2, 3, 4, 7, 8], 4, 1); -num = d3Array.bisectRight([0, 2, 3, 4, 7, 8], 4, 1, 4); +num = d3Array.bisectRight(numbersArray, 4); +num = d3Array.bisectRight(numbersArray, 4, 1); +num = d3Array.bisectRight(numbersArray, 4, 1, 4); -num = d3Array.bisectRight(['0', '2', '3', '4', '7', '8'], '21'); -num = d3Array.bisectRight(['0', '2', '3', '4', '7', '8'], '21', 1); -num = d3Array.bisectRight(['0', '2', '3', '4', '7', '8'], '21', 1, 4); +num = d3Array.bisectRight(stringyNumbersArray, '21'); +num = d3Array.bisectRight(stringyNumbersArray, '21', 1); +num = d3Array.bisectRight(stringyNumbersArray, '21', 1, 4); -num = d3Array.bisectRight([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1)); -num = d3Array.bisectRight([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1), 1); -num = d3Array.bisectRight([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1), 1, 2); +num = d3Array.bisectRight(dateArray, new Date(2011, 2, 1)); +num = d3Array.bisectRight(dateArray, new Date(2011, 2, 1), 1); +num = d3Array.bisectRight(dateArray, new Date(2011, 2, 1), 1, 2); + +num = d3Array.bisectRight(typedArray, 4); +num = d3Array.bisectRight(typedArray, 4, 1); +num = d3Array.bisectRight(typedArray, 4, 1, 4); + +num = d3Array.bisectRight(readonlyNumbersArray, 4); +num = d3Array.bisectRight(readonlyNumbersArray, 4, 1); +num = d3Array.bisectRight(readonlyNumbersArray, 4, 1, 4); + +num = d3Array.bisectRight(readonlyStringyNumbersArray, '21'); +num = d3Array.bisectRight(readonlyStringyNumbersArray, '21', 1); +num = d3Array.bisectRight(readonlyStringyNumbersArray, '21', 1, 4); + +num = d3Array.bisectRight(readonlyDateArray, new Date(2011, 2, 1)); +num = d3Array.bisectRight(readonlyDateArray, new Date(2011, 2, 1), 1); +num = d3Array.bisectRight(readonlyDateArray, new Date(2011, 2, 1), 1, 2); // bisect() -------------------------------------------------------------------- -num = d3Array.bisect([0, 2, 3, 4, 7, 8], 4); -num = d3Array.bisect([0, 2, 3, 4, 7, 8], 4, 1); -num = d3Array.bisect([0, 2, 3, 4, 7, 8], 4, 1, 4); +num = d3Array.bisect(numbersArray, 4); +num = d3Array.bisect(numbersArray, 4, 1); +num = d3Array.bisect(numbersArray, 4, 1, 4); -num = d3Array.bisect(['0', '2', '3', '4', '7', '8'], '21'); -num = d3Array.bisect(['0', '2', '3', '4', '7', '8'], '21', 1); -num = d3Array.bisect(['0', '2', '3', '4', '7', '8'], '21', 1, 4); +num = d3Array.bisect(stringyNumbersArray, '21'); +num = d3Array.bisect(stringyNumbersArray, '21', 1); +num = d3Array.bisect(stringyNumbersArray, '21', 1, 4); -num = d3Array.bisect([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1)); -num = d3Array.bisect([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1), 1); -num = d3Array.bisect([new Date(2010, 1, 1), new Date(2011, 1, 1), new Date(2012, 1, 1), new Date(2013, 1, 1)], new Date(2011, 2, 1), 1, 2); +num = d3Array.bisect(dateArray, new Date(2011, 2, 1)); +num = d3Array.bisect(dateArray, new Date(2011, 2, 1), 1); +num = d3Array.bisect(dateArray, new Date(2011, 2, 1), 1, 2); + +num = d3Array.bisect(typedArray, 4); +num = d3Array.bisect(typedArray, 4, 1); +num = d3Array.bisect(typedArray, 4, 1, 4); + +num = d3Array.bisect(readonlyNumbersArray, 4); +num = d3Array.bisect(readonlyNumbersArray, 4, 1); +num = d3Array.bisect(readonlyNumbersArray, 4, 1, 4); + +num = d3Array.bisect(readonlyStringyNumbersArray, '21'); +num = d3Array.bisect(readonlyStringyNumbersArray, '21', 1); +num = d3Array.bisect(readonlyStringyNumbersArray, '21', 1, 4); + +num = d3Array.bisect(readonlyDateArray, new Date(2011, 2, 1)); +num = d3Array.bisect(readonlyDateArray, new Date(2011, 2, 1), 1); +num = d3Array.bisect(readonlyDateArray, new Date(2011, 2, 1), 1, 2); // bisector() ------------------------------------------------------------------ @@ -283,11 +424,19 @@ num = mixedObjectDateBisectorObject.left(mixedObjectArray, new Date(2015, 3, 14) num = mixedObjectDateBisectorObject.left(mixedObjectArray, new Date(2015, 3, 14), 1); num = mixedObjectDateBisectorObject.left(mixedObjectArray, new Date(2015, 3, 14), 3, 4); +num = mixedObjectDateBisectorObject.left(readonlyMixedObjectArray, new Date(2015, 3, 14)); +num = mixedObjectDateBisectorObject.left(readonlyMixedObjectArray, new Date(2015, 3, 14), 1); +num = mixedObjectDateBisectorObject.left(readonlyMixedObjectArray, new Date(2015, 3, 14), 3, 4); + // bisect right num = mixedObjectDateBisectorObject.right(mixedObjectArray, new Date(2015, 3, 14)); num = mixedObjectDateBisectorObject.right(mixedObjectArray, new Date(2015, 3, 14), 1); num = mixedObjectDateBisectorObject.right(mixedObjectArray, new Date(2015, 3, 14), 3, 4); +num = mixedObjectDateBisectorObject.right(readonlyMixedObjectArray, new Date(2015, 3, 14)); +num = mixedObjectDateBisectorObject.right(readonlyMixedObjectArray, new Date(2015, 3, 14), 1); +num = mixedObjectDateBisectorObject.right(readonlyMixedObjectArray, new Date(2015, 3, 14), 3, 4); + // ascending() ----------------------------------------------------------------- num = d3Array.ascending(undefined, 20); @@ -308,32 +457,44 @@ num = d3Array.descending(new Date(2016, 6, 13), new Date(2016, 6, 14)); // merge() --------------------------------------------------------------------- -let testArrays: MixedObject[][] = [ - [ - new MixedObject(10, new Date(2016, 6, 1)), - new MixedObject(20, new Date(2016, 7, 30)), - new MixedObject(30, new Date(2015, 3, 15)), - new MixedObject(40, new Date(2014, 3, 15)), - new MixedObject(50, new Date(2017, 4, 15)) - ], - [ - new MixedObject(40, new Date(2016, 3, 1)), - new MixedObject(50, new Date(2016, 9, 30)), - ] +let testArray1 = [ + new MixedObject(10, new Date(2016, 6, 1)), + new MixedObject(20, new Date(2016, 7, 30)), + new MixedObject(30, new Date(2015, 3, 15)), + new MixedObject(40, new Date(2014, 3, 15)), + new MixedObject(50, new Date(2017, 4, 15)) ]; +let testArray2 = [ + new MixedObject(40, new Date(2016, 3, 1)), + new MixedObject(50, new Date(2016, 9, 30)), +]; + +let testArrays: MixedObject[][] = [testArray1, testArray2]; + +let readonlyTestArray1 = testArray1 as ReadonlyArray; +let readonlyTestArray2 = testArray2 as ReadonlyArray; +let readonlyTestArrays = [testArray1, testArray2] as ReadonlyArray>; + let mergedArray: MixedObject[]; mergedArray = d3Array.merge(testArrays); // inferred type mergedArray = d3Array.merge(testArrays); // explicit type // mergedArray = d3Array.merge([[10, 40, 30], [15, 30]]); // fails, type mismatch +// mergedArray = d3Array.merge([testArray1, [15, 30]]); // fails, type mismatch + +mergedArray = d3Array.merge(readonlyTestArrays); // inferred type +mergedArray = d3Array.merge(readonlyTestArrays); // explicit type // cross() --------------------------------------------------------------------- let crossed: Array<[string, number]>; -crossed = d3Array.cross(['x', 'y'], [1, 2]); -crossed = d3Array.cross(['x', 'y'], [1, 2]); +const chars = ['x', 'y']; +const nums = [1, 2]; + +crossed = d3Array.cross(chars, nums); +crossed = d3Array.cross(chars, nums); let strArray: string[] = d3Array.cross([2, 3], [5, 6], (a, b) => (a + b) + 'px'); strArray = d3Array.cross([2, 3], [5, 6], (a, b) => { @@ -342,6 +503,21 @@ strArray = d3Array.cross([2, 3], [5, 6], (a, b) => { return (aa + bb) + 'px'; }); +const readonlyChars = chars as ReadonlyArray; +const readonlyNums = new Uint8Array(nums); + +crossed = d3Array.cross(readonlyChars, readonlyNums); +crossed = d3Array.cross(readonlyChars, readonlyNums); + +strArray = d3Array.cross([2, 3] as ReadonlyArray, new Uint8ClampedArray([5, 6]), (a, b) => (a + b) + 'px'); +strArray = d3Array.cross([2, 3] as ReadonlyArray, new Uint8ClampedArray([5, 6]), (a, b) => { + const aa: number = a; + const bb: number = b; + return (aa + bb) + 'px'; +}); + +d3Array.cross(new Uint8Array([1, 2, 3, 4, 5]), new Uint8Array([10, 20, 30, 40, 50])); + // pairs() --------------------------------------------------------------------- let pairs: Array<[MixedObject, MixedObject]>; @@ -355,10 +531,21 @@ numbersArray = d3Array.pairs(mergedArray, (a, b) => { return bb.num - aa.num; }); +const readonlyMergedArray = mergedArray as ReadonlyArray; +pairs = d3Array.pairs(readonlyMergedArray); + +numbersArray = d3Array.pairs(readonlyMergedArray, (a, b) => b.num - a.num); +numbersArray = d3Array.pairs(readonlyMergedArray, (a, b) => { + const aa: MixedObject = a; + const bb: MixedObject = b; + return bb.num - aa.num; +}); + // permute() ------------------------------------------------------------------- // getting a permutation of array elements mergedArray = d3Array.permute(mergedArray, [1, 0, 2, 5, 3, 4, 6]); +mergedArray = d3Array.permute(readonlyMergedArray, [1, 0, 2, 5, 3, 4, 6]); // Getting an ordered array with object properties @@ -380,10 +567,20 @@ numbersArray = d3Array.range(1, 10, 0.5); // shuffle() ------------------------------------------------------------------- mergedArray = d3Array.shuffle(mergedArray); - mergedArray = d3Array.shuffle(mergedArray, 1); - mergedArray = d3Array.shuffle(mergedArray, 1, 3); +// mergedArray = d3Array.shuffle(readonlyMergedArray); // fails, shuffle mutates input array in-place + +// Test each TypedArray explicitly. Can't use ArrayLike in this case because shuffle is mutable and ArrayLike would include ReadonlyArray +let resultInt8: Int8Array = d3Array.shuffle(new Int8Array(numbersArray)); +let resultUint8: Uint8Array = d3Array.shuffle(new Uint8Array(numbersArray)); +let resultUint8Clamped: Uint8ClampedArray = d3Array.shuffle(new Uint8ClampedArray(numbersArray)); +let resultInt16: Int16Array = d3Array.shuffle(new Int16Array(numbersArray)); +let resultUint6: Uint16Array = d3Array.shuffle(new Uint16Array(numbersArray)); +let resultInt32: Int32Array = d3Array.shuffle(new Int32Array(numbersArray)); +let resultUint32: Uint32Array = d3Array.shuffle(new Uint32Array(numbersArray)); +let resultFloat32: Float32Array = d3Array.shuffle(new Float32Array(numbersArray)); +let resultFloat64: Float64Array = d3Array.shuffle(new Float64Array(numbersArray)); // ticks() --------------------------------------------------------------------- @@ -399,32 +596,13 @@ numDiff = d3Array.tickStep(1, 10, 5); // transpose() ----------------------------------------------------------------- -testArrays = d3Array.transpose([ - [ - new MixedObject(10, new Date(2016, 6, 1)), - new MixedObject(50, new Date(2017, 4, 15)) - ], - [ - new MixedObject(40, new Date(2016, 3, 1)), - new MixedObject(50, new Date(2016, 9, 30)), - ] -]); +testArrays = d3Array.transpose([testArray1, testArray2]); +testArrays = d3Array.transpose([readonlyTestArray1, readonlyTestArray2] as ReadonlyArray>); // zip() ----------------------------------------------------------------------- -testArrays = d3Array.zip( - [ - new MixedObject(10, new Date(2016, 6, 1)), - new MixedObject(20, new Date(2016, 7, 30)), - new MixedObject(30, new Date(2015, 3, 15)), - new MixedObject(40, new Date(2014, 3, 15)), - new MixedObject(50, new Date(2017, 4, 15)) - ], - [ - new MixedObject(40, new Date(2016, 3, 1)), - new MixedObject(50, new Date(2016, 9, 30)), - ] -); +testArrays = d3Array.zip(testArray1, testArray2); +testArrays = d3Array.zip(readonlyTestArray1, readonlyTestArray2); // ----------------------------------------------------------------------------- // Test Histogram @@ -447,7 +625,7 @@ testHistogram = d3Array.histogram(); testHistogram = testHistogram.value((d, i, data) => { const datum: MixedObject = d; // d is of type MixedObject const index: number = i; // i is number - const array: MixedObject[] = data; // data is of type MixedObject[] + const array: ArrayLike = data; // data is of type MixedObject[] return datum.date; }); @@ -496,8 +674,10 @@ testHistogram = testHistogram.thresholds(tScale.ticks(timeYear)); // Use histogram generator ===================================================== +numbersArray = [-1, 0, 1, 1, 3, 20, 234]; + let defaultBins: Array>; -defaultBins = defaultHistogram([-1, 0, 1, 1, 3, 20, 234]); +defaultBins = defaultHistogram(numbersArray); let defaultBin: d3Array.Bin; defaultBin = defaultBins[0]; @@ -509,6 +689,7 @@ num = defaultBin.x1; // bin upper bound is number let testBins: Array>; testBins = testHistogram(mixedObjectArray); +testBins = testHistogram(readonlyMixedObjectArray); let testBin: d3Array.Bin; testBin = testBins[0]; @@ -520,8 +701,18 @@ date = testBin.x1; // bin upper bound is Date // Histogram Tresholds ========================================================= -num = d3Array.thresholdFreedmanDiaconis([-1, 0, 1, 1, 3, 20, 234], -1, 234); +numbersArray = [-1, 0, 1, 1, 3, 20, 234]; +typedArray = new Uint8Array(numbersArray); +readonlyNumbersArray = numbersArray as ReadonlyArray; -num = d3Array.thresholdScott([-1, 0, 1, 1, 3, 20, 234], -1, 234); +num = d3Array.thresholdFreedmanDiaconis(numbersArray, -1, 234); +num = d3Array.thresholdFreedmanDiaconis(typedArray, -1, 234); +num = d3Array.thresholdFreedmanDiaconis(readonlyNumbersArray, -1, 234); -num = d3Array.thresholdSturges([-1, 0, 1, 1, 3, 20, 234]); +num = d3Array.thresholdScott(numbersArray, -1, 234); +num = d3Array.thresholdScott(typedArray, -1, 234); +num = d3Array.thresholdScott(readonlyNumbersArray, -1, 234); + +num = d3Array.thresholdSturges(numbersArray); +num = d3Array.thresholdSturges(typedArray); +num = d3Array.thresholdSturges(readonlyNumbersArray); diff --git a/types/d3-array/index.d.ts b/types/d3-array/index.d.ts index aee2ef38c7..67cd291f22 100644 --- a/types/d3-array/index.d.ts +++ b/types/d3-array/index.d.ts @@ -28,133 +28,133 @@ export interface Numeric { /** * Return the maximum value in the array of strings using natural order. */ -export function max(array: string[]): string | undefined; +export function max(array: ArrayLike): string | undefined; /** * Return the maximum value in the array of numbers using natural order. */ -export function max(array: T[]): T | undefined; +export function max(array: ArrayLike): T | undefined; /** * Return the maximum value in the array using natural order and a projection function to map values to strings. */ -export function max(array: T[], accessor: (datum: T, index: number, array: T[]) => string | undefined | null): string | undefined; +export function max(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => string | undefined | null): string | undefined; /** * Return the maximum value in the array using natural order and a projection function to map values to easily-sorted values. */ -export function max(array: T[], accessor: (datum: T, index: number, array: T[]) => U | undefined | null): U | undefined; +export function max(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => U | undefined | null): U | undefined; /** * Return the minimum value in the array using natural order. */ -export function min(array: string[]): string | undefined; +export function min(array: ArrayLike): string | undefined; /** * Return the minimum value in the array using natural order. */ -export function min(array: T[]): T | undefined; +export function min(array: ArrayLike): T | undefined; /** * Return the minimum value in the array using natural order. */ -export function min(array: T[], accessor: (datum: T, index: number, array: T[]) => string | undefined | null): string | undefined; +export function min(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => string | undefined | null): string | undefined; /** * Return the minimum value in the array using natural order. */ -export function min(array: T[], accessor: (datum: T, index: number, array: T[]) => U | undefined | null): U | undefined; +export function min(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => U | undefined | null): U | undefined; /** * Return the min and max simultaneously. */ -export function extent(array: string[]): [string, string] | [undefined, undefined]; +export function extent(array: ArrayLike): [string, string] | [undefined, undefined]; /** * Return the min and max simultaneously. */ -export function extent(array: T[]): [T, T] | [undefined, undefined]; +export function extent(array: ArrayLike): [T, T] | [undefined, undefined]; /** * Return the min and max simultaneously. */ -export function extent(array: T[], accessor: (datum: T, index: number, array: T[]) => string | undefined | null): [string, string] | [undefined, undefined]; +export function extent(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => string | undefined | null): [string, string] | [undefined, undefined]; /** * Return the min and max simultaneously. */ -export function extent(array: T[], accessor: (datum: T, index: number, array: T[]) => U | undefined | null): [U, U] | [undefined, undefined]; +export function extent(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => U | undefined | null): [U, U] | [undefined, undefined]; /** * Return the mean of an array of numbers */ -export function mean(array: Array): number | undefined; -export function mean(array: T[], accessor: (datum: T, index: number, array: T[]) => number | undefined | null): number | undefined; +export function mean(array: ArrayLike): number | undefined; +export function mean(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => number | undefined | null): number | undefined; /** * Return the median of an array of numbers */ -export function median(array: Array): number | undefined; -export function median(array: T[], accessor: (element: T, i: number, array: T[]) => number | undefined | null): number | undefined; +export function median(array: ArrayLike): number | undefined; +export function median(array: ArrayLike, accessor: (element: T, i: number, array: ArrayLike) => number | undefined | null): number | undefined; /** * Returns the p-quantile of an array of numbers */ -export function quantile(array: Array, p: number): number | undefined; -export function quantile(array: T[], p: number, accessor: (element: T, i: number, array: T[]) => number | undefined | null): number | undefined; +export function quantile(array: ArrayLike, p: number): number | undefined; +export function quantile(array: ArrayLike, p: number, accessor: (element: T, i: number, array: ArrayLike) => number | undefined | null): number | undefined; /** * Compute the sum of an array of numbers. */ -export function sum(array: Array): number; +export function sum(array: ArrayLike): number; /** * Compute the sum of an array, using the given accessor to convert values to numbers. */ -export function sum(array: T[], accessor: (datum: T, index: number, array: T[]) => number | undefined | null): number; +export function sum(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => number | undefined | null): number; /** * Compute the standard deviation, defined as the square root of the bias-corrected variance, of the given array of numbers. */ -export function deviation(array: Array): number | undefined; +export function deviation(array: ArrayLike): number | undefined; /** * Compute the standard deviation, defined as the square root of the bias-corrected variance, of the given array, * using the given accessor to convert values to numbers. */ -export function deviation(array: T[], accessor: (datum: T, index: number, array: T[]) => number | undefined | null): number | undefined; +export function deviation(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => number | undefined | null): number | undefined; /** * Compute an unbiased estimator of the population variance of the given array of numbers. */ -export function variance(array: Array): number | undefined; +export function variance(array: ArrayLike): number | undefined; /** * Compute an unbiased estimator of the population variance of the given array, * using the given accessor to convert values to numbers. */ -export function variance(array: T[], accessor: (datum: T, index: number, array: T[]) => number | undefined | null): number | undefined; +export function variance(array: ArrayLike, accessor: (datum: T, index: number, array: ArrayLike) => number | undefined | null): number | undefined; // -------------------------------------------------------------------------------------- // Searching Arrays // -------------------------------------------------------------------------------------- -export function scan(array: number[], comparator?: (a: number, b: number) => number): number | undefined; -export function scan(array: T[], comparator: (a: T, b: T) => number): number | undefined; +export function scan(array: ArrayLike, comparator?: (a: number, b: number) => number): number | undefined; +export function scan(array: ArrayLike, comparator: (a: T, b: T) => number): number | undefined; -export function bisectLeft(array: number[], x: number, lo?: number, hi?: number): number; -export function bisectLeft(array: string[], x: string, lo?: number, hi?: number): number; -export function bisectLeft(array: Date[], x: Date, lo?: number, hi?: number): number; +export function bisectLeft(array: ArrayLike, x: number, lo?: number, hi?: number): number; +export function bisectLeft(array: ArrayLike, x: string, lo?: number, hi?: number): number; +export function bisectLeft(array: ArrayLike, x: Date, lo?: number, hi?: number): number; -export function bisectRight(array: number[], x: number, lo?: number, hi?: number): number; -export function bisectRight(array: string[], x: string, lo?: number, hi?: number): number; -export function bisectRight(array: Date[], x: Date, lo?: number, hi?: number): number; +export function bisectRight(array: ArrayLike, x: number, lo?: number, hi?: number): number; +export function bisectRight(array: ArrayLike, x: string, lo?: number, hi?: number): number; +export function bisectRight(array: ArrayLike, x: Date, lo?: number, hi?: number): number; export const bisect: typeof bisectRight; export interface Bisector { - left(array: T[], x: U, lo?: number, hi?: number): number; - right(array: T[], x: U, lo?: number, hi?: number): number; + left(array: ArrayLike, x: U, lo?: number, hi?: number): number; + right(array: ArrayLike, x: U, lo?: number, hi?: number): number; } export function bisector(comparator: (a: T, b: U) => number): Bisector; @@ -184,7 +184,7 @@ export function descending(a: Primitive | undefined, b: Primitive | undefined): * @param a First input array. * @param b Second input array. */ -export function cross(a: S[], b: T[]): Array<[S, T]>; +export function cross(a: ArrayLike, b: ArrayLike): Array<[S, T]>; /** * Returns the Cartesian product of the two arrays a and b. @@ -195,12 +195,12 @@ export function cross(a: S[], b: T[]): Array<[S, T]>; * @param b Second input array. * @param reducer A reducer function taking as input an element from "a" and "b" and returning a reduced value. */ -export function cross(a: S[], b: T[], reducer: (a: S, b: T) => U): U[]; +export function cross(a: ArrayLike, b: ArrayLike, reducer: (a: S, b: T) => U): U[]; /** * Merges the specified arrays into a single array. */ -export function merge(arrays: T[][]): T[]; +export function merge(arrays: ArrayLike>): T[]; /** * For each adjacent pair of elements in the specified array, returns a new array of tuples of elements i and i - 1. @@ -208,7 +208,7 @@ export function merge(arrays: T[][]): T[]; * * @param array Array of input elements */ -export function pairs(array: T[]): Array<[T, T]>; +export function pairs(array: ArrayLike): Array<[T, T]>; /** * For each adjacent pair of elements in the specified array, in order, invokes the specified reducer function passing the element i and element i - 1. * Returns the resulting array of pair-wise reduced elements. @@ -217,17 +217,17 @@ export function pairs(array: T[]): Array<[T, T]>; * @param array Array of input elements * @param reducer A reducer function taking as input to adjecent elements of the input array and returning a reduced value. */ -export function pairs(array: T[], reducer: (a: T, b: T) => U): U[]; +export function pairs(array: ArrayLike, reducer: (a: T, b: T) => U): U[]; /** * Given the specified array, return an array corresponding to the list of indices in 'keys'. */ -export function permute(array: { [key: number]: T }, keys: number[]): T[]; +export function permute(array: { [key: number]: T }, keys: ArrayLike): T[]; /** * Given the specified object, return an array corresponding to the list of property names in 'keys'. */ -export function permute(object: { [key: string]: T }, keys: string[]): T[]; +export function permute(object: { [key: string]: T }, keys: ArrayLike): T[]; /** * Generates a 0-based numeric sequence. The output range does not include 'stop'. @@ -243,6 +243,15 @@ export function range(start: number, stop: number, step?: number): number[]; * Randomizes the order of the specified array using the Fisher–Yates shuffle. */ export function shuffle(array: T[], lo?: number, hi?: number): T[]; +export function shuffle(array: Int8Array, lo?: number, hi?: number): Int8Array; +export function shuffle(array: Uint8Array, lo?: number, hi?: number): Uint8Array; +export function shuffle(array: Uint8ClampedArray, lo?: number, hi?: number): Uint8ClampedArray; +export function shuffle(array: Int16Array, lo?: number, hi?: number): Int16Array; +export function shuffle(array: Uint16Array, lo?: number, hi?: number): Uint16Array; +export function shuffle(array: Int32Array, lo?: number, hi?: number): Int32Array; +export function shuffle(array: Uint32Array, lo?: number, hi?: number): Uint32Array; +export function shuffle(array: Float32Array, lo?: number, hi?: number): Float32Array; +export function shuffle(array: Float64Array, lo?: number, hi?: number): Float64Array; /** * Generate an array of approximately count + 1 uniformly-spaced, nicely-rounded values between start and stop (inclusive). @@ -289,14 +298,14 @@ export function tickStep(start: number, stop: number, count: number): number; /** * Transpose a matrix provided in Array of Arrays format. */ -export function transpose(matrix: T[][]): T[][]; +export function transpose(matrix: ArrayLike>): T[][]; /** * Returns an array of arrays, where the ith array contains the ith element from each of the argument arrays. * The returned array is truncated in length to the shortest array in arrays. If arrays contains only a single array, the returned array * contains one-element arrays. With no arguments, the returned array is empty. */ -export function zip(...arrays: T[][]): T[][]; +export function zip(...arrays: Array>): T[][]; // -------------------------------------------------------------------------------------- // Histogram @@ -310,20 +319,20 @@ export interface Bin extends Array { /** * Type definition for threshold generator which returns the count of recommended thresholds */ -export type ThresholdCountGenerator = (values: number[], min?: number, max?: number) => number; +export type ThresholdCountGenerator = (values: ArrayLike, min?: number, max?: number) => number; /** * Type definition for threshold generator which returns an array of recommended thresholds */ -export type ThresholdArrayGenerator = (values: Value[], min?: Value, max?: Value) => Value[]; +export type ThresholdArrayGenerator = (values: ArrayLike, min?: Value, max?: Value) => Value[]; export interface HistogramGenerator { - (data: Datum[]): Array>; - value(): (d: Datum, i: number, data: Datum[]) => Value; - value(valueAccessor: (d: Datum, i: number, data: Datum[]) => Value): this; - domain(): (values: Value[]) => [Value, Value]; + (data: ArrayLike): Array>; + value(): (d: Datum, i: number, data: ArrayLike) => Value; + value(valueAccessor: (d: Datum, i: number, data: ArrayLike) => Value): this; + domain(): (values: ArrayLike) => [Value, Value]; domain(domain: [Value, Value]): this; - domain(domainAccessor: (values: Value[]) => [Value, Value]): this; + domain(domainAccessor: (values: ArrayLike) => [Value, Value]): this; thresholds(): ThresholdCountGenerator | ThresholdArrayGenerator; /** * Divide the domain uniformly into approximately count bins. IMPORTANT: This threshold @@ -357,7 +366,7 @@ export interface HistogramGenerator { * @param thresholds Array of threshold values used for binning. The elements must * be of the same type as the materialized values of the histogram. */ - thresholds(thresholds: Value[]): this; + thresholds(thresholds: ArrayLike): this; /** * Set a threshold accessor function, which returns the array of values to be used as * thresholds in determining the bins. @@ -379,8 +388,8 @@ export function histogram(): HistogramGenera // Histogram Thresholds // -------------------------------------------------------------------------------------- -export function thresholdFreedmanDiaconis(values: number[], min: number, max: number): number; // of type ThresholdCountGenerator +export function thresholdFreedmanDiaconis(values: ArrayLike, min: number, max: number): number; // of type ThresholdCountGenerator -export function thresholdScott(values: number[], min: number, max: number): number; // of type ThresholdCountGenerator +export function thresholdScott(values: ArrayLike, min: number, max: number): number; // of type ThresholdCountGenerator -export function thresholdSturges(values: number[]): number; // of type ThresholdCountGenerator +export function thresholdSturges(values: ArrayLike): number; // of type ThresholdCountGenerator From d0c54304c30649ff2aa877d24acaab85f50b4230 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 3 Aug 2017 01:11:36 +0200 Subject: [PATCH 038/166] [p-all] introduce typings (#18546) * [p-all] introduce typings * [p-all] remove unnecessary default to any type --- types/p-all/index.d.ts | 43 ++++++++++++++++++++++++++++++++++++++ types/p-all/p-all-tests.ts | 14 +++++++++++++ types/p-all/tsconfig.json | 22 +++++++++++++++++++ types/p-all/tslint.json | 1 + 4 files changed, 80 insertions(+) create mode 100644 types/p-all/index.d.ts create mode 100644 types/p-all/p-all-tests.ts create mode 100644 types/p-all/tsconfig.json create mode 100644 types/p-all/tslint.json diff --git a/types/p-all/index.d.ts b/types/p-all/index.d.ts new file mode 100644 index 0000000000..8abf47f672 --- /dev/null +++ b/types/p-all/index.d.ts @@ -0,0 +1,43 @@ +// 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 new file mode 100644 index 0000000000..f6be092250 --- /dev/null +++ b/types/p-all/p-all-tests.ts @@ -0,0 +1,14 @@ +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 => { + let str: string = result[0]; + let str2: string = result[1]; + let num: number = result[3]; +}); diff --git a/types/p-all/tsconfig.json b/types/p-all/tsconfig.json new file mode 100644 index 0000000000..711f36cb72 --- /dev/null +++ b/types/p-all/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-all-tests.ts" + ] +} diff --git a/types/p-all/tslint.json b/types/p-all/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-all/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 1c15db516ea88a8cf7bf0957edbf5a8bdfb3a8d1 Mon Sep 17 00:00:00 2001 From: peter <913542647@qq.com> Date: Thu, 3 Aug 2017 07:12:47 +0800 Subject: [PATCH 039/166] [canvasjs] update types for canvasjs to v1.9. (#18108) * update to v1.9.10 * add missing propoty. * update test file. * tslint file and check * Update index.d.ts * Update index.d.ts change the type of lineThickness from string to number. * update reference method * update export method * export as global object * Rename canvasjs.ts to canvasjs-tests.ts * Update tsconfig.json file --- types/canvasjs/canvasjs-tests.ts | 466 ++++--- types/canvasjs/index.d.ts | 2145 ++++++++++++++++++++---------- types/canvasjs/tsconfig.json | 2 +- types/canvasjs/tslint.json | 1 + 4 files changed, 1657 insertions(+), 957 deletions(-) create mode 100644 types/canvasjs/tslint.json diff --git a/types/canvasjs/canvasjs-tests.ts b/types/canvasjs/canvasjs-tests.ts index e9120ec9c3..dffa33e9a2 100644 --- a/types/canvasjs/canvasjs-tests.ts +++ b/types/canvasjs/canvasjs-tests.ts @@ -1,248 +1,246 @@ +import * as CanvasJS from "canvasjs"; - -namespace CanvasJS.Tests { - // Column Chart - var columnChart = new CanvasJS.Chart("chartContainer", - { - title: { - text: "Top Oil Reserves", - }, - axisY: { - title: "Reserves(MMbbl)" - }, - legend: { - verticalAlign: "bottom", - horizontalAlign: "center" - }, - theme: "theme2", - data: [ - { - type: "column", - showInLegend: true, - legendMarkerColor: "grey", - legendText: "MMbbl = one million barrels", - dataPoints: [ - { y: 297571, label: "Venezuela" }, - { y: 267017, label: "Saudi" }, - { y: 175200, label: "Canada" }, - { y: 154580, label: "Iran" }, - { y: 116000, label: "Russia" }, - { y: 97800, label: "UAE" }, - { y: 20682, label: "US" }, - { y: 20350, label: "China" } - ] - } - ] - }); - columnChart.render(); - - // Line Chart - var lineChart = new CanvasJS.Chart("chartContainer", - { - theme: "theme2", - title: { - text: "Earthquakes - per month" - }, - axisX: { - valueFormatString: "MMM", - interval: 1, - intervalType: "month" - - }, - axisY: { - includeZero: false - - }, - data: [ - { - type: "line", - //lineThickness: 3, - dataPoints: [ - { x: new Date(2012, 0, 1), y: 450 }, - { x: new Date(2012, 1, 1), y: 414 }, - { x: new Date(2012, 2, 1), y: 520, indexLabel: "highest", markerColor: "red", markerType: "triangle" }, - { x: new Date(2012, 3, 1), y: 460 }, - { x: new Date(2012, 4, 1), y: 450 }, - { x: new Date(2012, 5, 1), y: 500 }, - { x: new Date(2012, 6, 1), y: 480 }, - { x: new Date(2012, 7, 1), y: 480 }, - { x: new Date(2012, 8, 1), y: 410, indexLabel: "lowest", markerColor: "DarkSlateGrey", markerType: "cross" }, - { x: new Date(2012, 9, 1), y: 500 }, - { x: new Date(2012, 10, 1), y: 480 }, - { x: new Date(2012, 11, 1), y: 510 } - - ] - } - - - ] - }); - lineChart.render(); - - // Spline Chart - var splineChart = new CanvasJS.Chart("chartContainer", - { - theme: "theme2", - title: { - text: "Game of Thrones, Viewers of the first airing on HBO" - }, - axisY: { - includeZero: false, - // suffix: " k", - valueFormatString: "#,,.", - suffix: " mn" - }, - toolTip: { - shared: true - }, - data: [ - { - type: "spline", - showInLegend: true, - name: "Season 2", - // markerSize: 0, - // color: "rgba(54,158,173,.6)", - dataPoints: [ - { label: "Ep. 1", y: 3858000 }, - { label: "Ep. 2", y: 3759000 }, - { label: "Ep. 3", y: 3766000 }, - { label: "Ep. 4", y: 3654000 }, - { label: "Ep. 5", y: 3903000 }, - { label: "Ep. 6", y: 3879000 }, - { label: "Ep. 7", y: 3694000 }, - { label: "Ep. 8", y: 3864000 }, - { label: "Ep. 9", y: 3384000 }, - { label: "Ep. 10", y: 4200000 } - - ] - }, - { - type: "spline", - showInLegend: true, - // markerSize: 0, - name: "Season 1", - dataPoints: [ - { label: "Ep. 1", y: 2220000 }, - { label: "Ep. 2", y: 2200000 }, - { label: "Ep. 3", y: 2440000 }, - { label: "Ep. 4", y: 2450000 }, - { label: "Ep. 5", y: 2580000 }, - { label: "Ep. 6", y: 2440000 }, - { label: "Ep. 7", y: 2400000 }, - { label: "Ep. 8", y: 2720000 }, - { label: "Ep. 9", y: 2660000 }, - { label: "Ep. 10", y: 3040000 } - - ] - } - ], - legend: { - cursor: "pointer", - itemclick: function (e) { - if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) { - e.dataSeries.visible = false; - } - else { - e.dataSeries.visible = true; - } - splineChart.render(); - } - - }, - }); - splineChart.render(); - - // Bar Chart - var barChart = new CanvasJS.Chart("chartContainer", { - +// Column Chart +let columnChart = new CanvasJS.Chart("chartContainer", + { title: { - text: "Fortune Global 500 Companies by Country" - }, - axisX: { - interval: 1, - gridThickness: 0, - labelFontSize: 10, - labelFontStyle: "normal", - labelFontWeight: "normal", - labelFontFamily: "Lucida Sans Unicode" + text: "Top Oil Reserves", }, axisY: { - interlacedColor: "rgba(1,77,101,.2)", - gridColor: "rgba(1,77,101,.1)" + title: "Reserves(MMbbl)" }, + legend: { + verticalAlign: "bottom", + horizontalAlign: "center" + }, + theme: "theme2", data: [ { - type: "bar", - name: "companies", - axisYType: "secondary", - color: "#014D65", + type: "column", + showInLegend: true, + legendMarkerColor: "grey", + legendText: "MMbbl = one million barrels", dataPoints: [ - { y: 5, label: "Sweden" }, - { y: 6, label: "Taiwan" }, - { y: 7, label: "Russia" }, - { y: 8, label: "Spain" }, - { y: 8, label: "Brazil" }, - { y: 8, label: "India" }, - { y: 9, label: "Italy" }, - { y: 9, label: "Australia" }, - { y: 12, label: "Canada" }, - { y: 13, label: "South Korea" }, - { y: 13, label: "Netherlands" }, - { y: 15, label: "Switzerland" }, - { y: 28, label: "Britain" }, - { y: 32, label: "Germany" }, - { y: 32, label: "France" }, - { y: 68, label: "Japan" }, - { y: 73, label: "China" }, - { y: 132, label: "US" } + { y: 297571, label: "Venezuela" }, + { y: 267017, label: "Saudi" }, + { y: 175200, label: "Canada" }, + { y: 154580, label: "Iran" }, + { y: 116000, label: "Russia" }, + { y: 97800, label: "UAE" }, + { y: 20682, label: "US" }, + { y: 20350, label: "China" } ] } ] }); - barChart.render(); +columnChart.render(); +let option = columnChart.get("title"); +columnChart.print(); +columnChart.exportChart({ format: "jpg" }); +columnChart.destroy(); +columnChart.axisX[0].convertPixelToValue(20); +columnChart.toolTip.get("text"); - // Pie Chart - var pieChart = new CanvasJS.Chart("chartContainer", - { - title: { - text: "Desktop Search Engine Market Share, Dec-2012" - }, - legend: { - verticalAlign: "center", - horizontalAlign: "left", - fontSize: 20, - fontFamily: "Helvetica" - }, - theme: "theme2", - data: [ - { - type: "pie", - indexLabelFontFamily: "Garamond", - indexLabelFontSize: 20, - indexLabel: "{label} {y}%", - startAngle: -20, - showInLegend: true, - toolTipContent: "{legendText} {y}%", - dataPoints: [ - { y: 83.24, legendText: "Google", label: "Google" }, - { y: 8.16, legendText: "Yahoo!", label: "Yahoo!" }, - { y: 4.67, legendText: "Bing", label: "Bing" }, - { y: 1.67, legendText: "Baidu", label: "Baidu" }, - { y: 0.98, legendText: "Others", label: "Others" } - ] - } - ] - }); - pieChart.render(); - - addColorSet("MyColorSet", [ - "123456", - "blue", - "red", - "orange" - ]); - - addCultureInfo("js", { - days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] +// Line Chart +let lineChart = new CanvasJS.Chart("chartContainer", + { + theme: "theme2", + title: { + text: "Earthquakes - per month" + }, + axisX: { + valueFormatString: "MMM", + interval: 1, + intervalType: "month" + }, + axisY: { + includeZero: false + }, + data: [ + { + type: "line", + // lineThickness: 3, + dataPoints: [ + { x: new Date(2012, 0, 1), y: 450 }, + { x: new Date(2012, 1, 1), y: 414 }, + { x: new Date(2012, 2, 1), y: 520, indexLabel: "highest", markerColor: "red", markerType: "triangle" }, + { x: new Date(2012, 3, 1), y: 460 }, + { x: new Date(2012, 4, 1), y: 450 }, + { x: new Date(2012, 5, 1), y: 500 }, + { x: new Date(2012, 6, 1), y: 480 }, + { x: new Date(2012, 7, 1), y: 480 }, + { x: new Date(2012, 8, 1), y: 410, indexLabel: "lowest", markerColor: "DarkSlateGrey", markerType: "cross" }, + { x: new Date(2012, 9, 1), y: 500 }, + { x: new Date(2012, 10, 1), y: 480 }, + { x: new Date(2012, 11, 1), y: 510 } + ] + } + ] }); -} +lineChart.render(); + +// Spline Chart +let splineChart = new CanvasJS.Chart("chartContainer", + { + theme: "theme2", + title: { + text: "Game of Thrones, Viewers of the first airing on HBO" + }, + axisY: { + includeZero: false, + // suffix: " k", + valueFormatString: "#,,.", + suffix: " mn" + }, + toolTip: { + shared: true + }, + data: [ + { + type: "spline", + showInLegend: true, + name: "Season 2", + // markerSize: 0, + // color: "rgba(54,158,173,.6)", + dataPoints: [ + { label: "Ep. 1", y: 3858000 }, + { label: "Ep. 2", y: 3759000 }, + { label: "Ep. 3", y: 3766000 }, + { label: "Ep. 4", y: 3654000 }, + { label: "Ep. 5", y: 3903000 }, + { label: "Ep. 6", y: 3879000 }, + { label: "Ep. 7", y: 3694000 }, + { label: "Ep. 8", y: 3864000 }, + { label: "Ep. 9", y: 3384000 }, + { label: "Ep. 10", y: 4200000 } + ] + }, + { + type: "spline", + showInLegend: true, + // markerSize: 0, + name: "Season 1", + dataPoints: [ + { label: "Ep. 1", y: 2220000 }, + { label: "Ep. 2", y: 2200000 }, + { label: "Ep. 3", y: 2440000 }, + { label: "Ep. 4", y: 2450000 }, + { label: "Ep. 5", y: 2580000 }, + { label: "Ep. 6", y: 2440000 }, + { label: "Ep. 7", y: 2400000 }, + { label: "Ep. 8", y: 2720000 }, + { label: "Ep. 9", y: 2660000 }, + { label: "Ep. 10", y: 3040000 } + ] + } + ], + legend: { + cursor: "pointer", + itemclick: (e) => { + if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) { + e.dataSeries.visible = false; + } else { + e.dataSeries.visible = true; + } + splineChart.render(); + } + }, + }); +splineChart.render(); + +// Bar Chart +let barChart = new CanvasJS.Chart("chartContainer", { + title: { + text: "Fortune Global 500 Companies by Country" + }, + axisX: { + interval: 1, + gridThickness: 0, + labelFontSize: 10, + labelFontStyle: "normal", + labelFontWeight: "normal", + labelFontFamily: "Lucida Sans Unicode" + }, + axisY: { + interlacedColor: "rgba(1,77,101,.2)", + gridColor: "rgba(1,77,101,.1)" + }, + data: [ + { + type: "bar", + name: "companies", + axisYType: "secondary", + color: "#014D65", + dataPoints: [ + { y: 5, label: "Sweden" }, + { y: 6, label: "Taiwan" }, + { y: 7, label: "Russia" }, + { y: 8, label: "Spain" }, + { y: 8, label: "Brazil" }, + { y: 8, label: "India" }, + { y: 9, label: "Italy" }, + { y: 9, label: "Australia" }, + { y: 12, label: "Canada" }, + { y: 13, label: "South Korea" }, + { y: 13, label: "Netherlands" }, + { y: 15, label: "Switzerland" }, + { y: 28, label: "Britain" }, + { y: 32, label: "Germany" }, + { y: 32, label: "France" }, + { y: 68, label: "Japan" }, + { y: 73, label: "China" }, + { y: 132, label: "US" } + ] + } + ] +}); +barChart.render(); + +// Pie Chart +let pieChart = new CanvasJS.Chart("chartContainer", + { + title: { + text: "Desktop Search Engine Market Share, Dec-2012" + }, + legend: { + verticalAlign: "center", + horizontalAlign: "left", + fontSize: 20, + fontFamily: "Helvetica" + }, + theme: "theme2", + data: [ + { + type: "pie", + indexLabelFontFamily: "Garamond", + indexLabelFontSize: 20, + indexLabel: "{label} {y}%", + startAngle: -20, + showInLegend: true, + toolTipContent: "{legendText} {y}%", + dataPoints: [ + { y: 83.24, legendText: "Google", label: "Google" }, + { y: 8.16, legendText: "Yahoo!", label: "Yahoo!" }, + { y: 4.67, legendText: "Bing", label: "Bing" }, + { y: 1.67, legendText: "Baidu", label: "Baidu" }, + { y: 0.98, legendText: "Others", label: "Others" } + ] + } + ] + }); +pieChart.render(); + +CanvasJS.addColorSet("MyColorSet", [ + "123456", + "blue", + "red", + "orange" +]); + +CanvasJS.addCultureInfo("js", { + days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] +}); + +CanvasJS.formatNumber(20); + +CanvasJS.formatDate(new Date()); diff --git a/types/canvasjs/index.d.ts b/types/canvasjs/index.d.ts index 79a168f2d0..0796aa40a0 100644 --- a/types/canvasjs/index.d.ts +++ b/types/canvasjs/index.d.ts @@ -1,992 +1,1693 @@ -// Type definitions for CanvasJS v1.5.1 +// Type definitions for CanvasJS 1.9 // Project: http://canvasjs.com/ -// Definitions by: Mark Overholt +// Definitions by: ShuYin Zhang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace CanvasJS { class Chart { - /** - * The current options of the chart. - */ + * The current options of the chart. + */ options: ChartOptions; - /** - * Initializes a new instance of CanvasJS Chart. - * @param containerId the DOM ID of the location where the chart is to be rendered - * @param options the options used to render the chart - */ + * All Title options become available as properties after Chart Render. You can access them either via get method or dot notation. But you can change / set those values only via set method. + */ + title: ChartTitle; + /** + * The subtitles of the chart. + * You can access them either via get method or dot notation. But you can change / set those values only via set method. + */ + subtitles: ChartTitle[]; + /** + * The toolTip of the chart. + */ + toolTip: ChartToolTip; + axisX: ChartAxisX[]; + axisX2: ChartAxisX[]; + axisY: ChartAxisY[]; + axisY2: ChartAxisY[]; + stripLines: ChartStrip[]; + data: ChartDataSeries[]; + /** + * Initializes a new instance of CanvasJS Chart. + * @param containerId the DOM ID of the location where the chart is to be rendered + * @param options the options used to render the chart + */ constructor(containerId: string, options?: ChartOptions); /** - * Renders the chart. - * @param options an optional set of options that will override the constructed values. - */ - render(options?: ChartOptions): void; + * Renders the chart. + */ + render(): void; + /** + * Returns the specified property of Chart. + * @param propertyName Name of the property. + */ + get(propertyName: string): any; + /** + * Sets the specified property of Chart. + * Notes: + * 1. Chart should be rendered before you can use this method. + * 2. Because the chart updates each time set is called by default, + * it is recommended to disable auto update (set updateChart to false) till the last step if you have to set multiple properties. + * Otherwise it can affect performance because of repeated chart rendering. You can see an example below. + * @param propertyName Name of the property. + * @param value value to be set on property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: ChartOptions, updateChart?: boolean): void; + /** + * Adds a new element of given type to the specified array. For example, it can be used to add new Axis to axisY array. + * Notes: + * 1. Chart should be rendered before you can use this method. + * 2. Chart renders automatically after addTo() operation. + * @param propertyName Name of the property + * @param options Option for the new element + * @param index Index of the array where the new element is to be added. Defaults to the length (end) of array. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + addTo(propertyName: string, options: ChartAxisXOptions | ChartAxisYOptions | ChartDataSeriesOptions, index?: number, updateChart?: boolean): void; + /** + * Export the chart as image (jpg / png). + * @param options Setting when export + */ + exportChart(options: { format: "jpg" | "png", toDataURL?: boolean, fileName?: string }): void; + /** + * Prints the Chart. + * Chart should be rendered before you can use this method. + */ + print(): void; + /** + * Removes the chart references internally, thus making the chart eligible for garbage collection, in turn clearing up the memory. + * Notes: + * 1. On calling chart.destroy(), chart won’t be responsive unless new chart is created. + * 2. chart.destroy() should be called before using the same variable to hold a newly allocated object/chart to prevent memory leaks. + */ + destroy(): void; } /** - * Adds a new chart color set - * @param the name of the color set - * @param an array of colors. - */ + * Adds a new chart color set + * @param colorSetName name of the color set + * @param colorSetArray array of colors. + */ function addColorSet(colorSetName: string, colorSetArray: string[]): void; - /** - * Adds a new culture info for your chart - * @param culture the name of the culture - * @param the information used by this culture - */ + * Adds a new culture info for your chart + * @param culture the name of the culture + * @param info information used by this culture + */ function addCultureInfo(culture: string, info: CultureInfo): void; + /** + * Formats number according to the given formatString(optional) & culture(optional). + * @param number Number to format. + * @param formatString Default formatString is “#,##0.##” . + * @param culture Default culture is “en” + */ + function formatNumber(number: number, formatString?: string, culture?: string): string; + /** + * Formats date/timestamp according to the given formatString(optional) & culture(optional). + * @param date Date type or timestamp number. + * @param formatString Default formatString is “DD MMM YYYY”. + * @param culture Default culture is “en”. + */ + function formatDate(date: Date | number, formatString?: string, culture?: string): void; interface CultureInfo { /** - * Character used to separate fractional part from the whole number. - */ + * Character used to separate fractional part from the whole number. + * Default: "." + * Example: “.“ ”,” + */ decimalSeparator?: string; /** - * Also referred to as Thousand Separator - */ + * Also referred to as Thousand Separator. + * Default: “,” + * Example: “,”, “.” + */ digitGroupSeparator?: string; /** - * Text is shown inside the Button till v1.4 - * v1.5 onwards Text is shown as tooltip. - */ + * Text is shown inside the Button till v1.4 + * v1.5 onwards Text is shown as tooltip. + * Default: "Zoom" + * Example: “zoom”, etc + */ zoomText?: string; /** - * Text is shown inside the Button till v1.4 - * v1.5 onwards Text is shown as tooltip. - */ + * Text is shown inside the Button till v1.4 + * v1.5 onwards Text is shown as tooltip. + * Default: “Pan” + * Example: “pan”, etc + */ panText?: string; /** - * Text is shown inside the Button till v1.4 - * v1.5 onwards Text is shown as tooltip. - */ + * Text is shown inside the Button till v1.4 + * v1.5 onwards Text is shown as tooltip. + * Default: “Reset” + * Example: “reset”, etc + */ resetText?: string; /** - * Set text is shown instead of Save as PNG. - */ + * Set text is shown instead of Save as PNG. + * Default: “Save as PNG” + * Example: “save as png”, etc + */ savePNGText?: string; /** - * Set text is shown instead of Save as JPG. - */ + * Set text is shown instead of Save as JPG. + * Default: “Save as JPG” + * Example: “save as jpg”, etc + */ saveJPGText?: string; /** - * Tool Tip for Menu Button. - */ + * Tool Tip for Menu Button. + * Default: “More Options” + * Example: “More Options”, etc + */ menuText?: string; /** - * Day names starting from Sunday. Should be exactly 7 in total. - */ + * Day names starting from Sunday. Should be exactly 7 in total. + * Default: [“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”] + * Example: [“domingo”, “lunes”, “martes”, “miércoles”, “jueves”, “viernes”, “sábado”] + */ days?: string[]; /** - * Short Day names starting from Sunday. Should be exactly 7 in total. - */ + * Short Day names starting from Sunday. Should be exactly 7 in total. + * Default: [“Sun”, “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”] + * Example: [“Sun”, “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”] + */ shortDays?: string[]; /** - * Month Names starting from January - */ + * Month Names starting from January. + * Default: [“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”] + * Example: [“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”] + */ months?: string[]; /** - * Short Month Names starting from January - */ + * Short Month Names starting from January. + * Default: [“Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”] + * Example: [“Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”] + */ shortMonths?: string[]; } interface ChartOptions { /** - * Enables / Disables Chart interactivity like toolTip, mouse and touch events - * Default: true - * Example: false, true - */ + * Enables / Disables Chart interactivity like toolTip, mouse and touch events. + * Default: true + * Example: false, true + */ interactivityEnabled?: boolean; /** - * Enables Animation while rendering the Chart. - * Default: true - * Example: false, true - */ + * Sets the duration of animation in milliseconds. + * Default: 1200 + * Example: 1000, 500 etc. + */ + animationDuration?: number; + /** + * Enables Animation while rendering the Chart. + * Default: true + * Example: false, true + */ animationEnabled?: boolean; /** - * While exporting any chart, "Chart" is used as the default fine name with corresponding extension "jpg" or "png". You can override this name using exportFileName property. - * Default: Chart - */ + * While exporting any chart, "Chart" is used as the default fine name with corresponding extension "jpg" or "png". You can override this name using exportFileName property. + * Default: Chart + */ exportFileName?: string; /** - * Setting exportEnabled to true enables the export feature. As of now JPG & PNG formats are supported. Export feature is available in all Chart Types. - * Default: false - * Options: true, false - */ + * Setting exportEnabled to true enables the export feature. As of now JPG & PNG formats are supported. Export feature is available in all Chart Types. + * Default: false + * Options: true, false + */ exportEnabled?: boolean; /** - * Setting zoomEnabled to true enables zooming and panning feature of Chart. This way you can zoom into an area of interest when there is a large amount of data. This will also allow you to pan through the chart. If not set, the property is automatically enabled for large number of dataPoints. You can switch between zooming & panning using the toolbar that appears on the chart. After Zooming in, you can reset the chart by clicking the reset button. - * Default: false - * Options: true, false - */ + * Setting zoomEnabled to true enables zooming and panning feature of Chart. + * This way you can zoom into an area of interest when there is a large amount of data. + * This will also allow you to pan through the chart. + * If not set, the property is automatically enabled for large number of dataPoints. You can switch between zooming & panning using the toolbar that appears on the chart. + * After Zooming in, you can reset the chart by clicking the reset button. + * Default: false + * Options: true, false + */ zoomEnabled?: boolean; /** - * Sets the theme of the Chart. Various predefined themes are bundled along with the library. User can easily switch these themes by changing theme property to the below mentioned options. - * Default: "theme1" - * Options: "theme1","theme2", "theme3" - */ + * Sets the theme of the Chart. Various predefined themes are bundled along with the library. User can easily switch these themes by changing theme property to the below mentioned options. + * Default: "theme1" + * Options: "theme1","theme2", "theme3" + */ theme?: string; /** - * Sets the background color of entire Chart Area. Values can be "HTML Color Name", "hex code" or "rgba values" - * Default: "white" - * Example: "yellow", "#F5DEB3".. - */ + * Sets the background color of entire Chart Area. Values can be "HTML Color Name", "hex code" or "rgba values" + * Default: "white" + * Example: "yellow", "#F5DEB3".. + */ backgroundColor?: string; /** - * Sets the colorSet of the Chart. Color Set is an array of colors that are used to render data. Various predefined Color Sets are bundled along with the library. You can either choose from the pre-defined Color Sets or define your own Color Set. - * Default: "colorset1" or as defined in the selected theme - * Example: "colorSet1", "colorSet2", "colorSet3" - */ + * Sets the colorSet of the Chart. Color Set is an array of colors that are used to render data. Various predefined Color Sets are bundled along with the library. + * You can either choose from the pre-defined Color Sets or define your own Color Set. + * Default: "colorset1" or as defined in the selected theme + * Example: "colorSet1", "colorSet2", "colorSet3" + */ colorSet?: string; /** - * CanvasJS allows you to localize various culture / language / country specific elements in the Chart like number formatting style – where you can choose which character to use as a decimal separator and as a digit group separator (also referred to as a thousand separator). By default CanvasJS is set to Neutral English Culture – "en". - * Default: "en" - */ + * CanvasJS allows you to localize various culture / language / country specific elements in the Chart like number formatting style – where you can choose + * which character to use as a decimal separator and as a digit group separator (also referred to as a thousand separator). + * By default CanvasJS is set to Neutral English Culture – "en". + * Default: "en" + */ culture?: string; /** - * Sets the width of the Chart. - * Default: Takes chart container’s width by default. If the width is not set for the chart container, defaults to 500. - * Example: 380, 500, 720 - */ + * Sets the width of the Chart. + * Default: Takes chart container’s width by default. If the width is not set for the chart container, defaults to 500. + * Example: 380, 500, 720 + */ width?: number; /** - * Sets the width of the Chart - * Default: Takes chart container’s height by default. If the height is not set for the chart container, defaults to 400. - * Example: 260, 300, 400 - */ + * Sets the width of the Chart + * Default: Takes chart container’s height by default. If the height is not set for the chart container, defaults to 400. + * Example: 260, 300, 400 + */ height?: number; /** - * Title allows you to set content, appearance and position of Chart’s Title. - */ + * dataPointMaxWidth sets the maximum width of dataPoints in column / bar, ohlc and candlestick, charts. + * This allows you to limit the width of dataPoints when there are very few of them in the chart. + * At the same time, when the number of dataPoints increase, chart reduces their width so that they don’t overlap. + * Default : Automatically calculated based on the chart size. + * Example : 10, 20, 30, etc. + */ + dataPointMaxWidth?: number; + /** + * Title allows you to set content, appearance and position of Chart’s Title. + */ title: ChartTitleOptions; /** - * Whenever the chart contains multiple dataSeries, it is recommended to represent each dataSeries in a legend. This way it becomes easier for the user to know what exactly is represented by each of the dataSeries. In case of Pie and Doughnut charts, an entry is created for each dataPoint and in rest of the chart types entries are created for each dataSeries. - * You can selectively show or hide a dataSeries in the Legend using showInLegend property of dataSeries. - */ + * Whenever the chart contains multiple dataSeries, it is recommended to represent each dataSeries in a legend. + * This way it becomes easier for the user to know what exactly is represented by each of the dataSeries. + * In case of Pie and Doughnut charts, an entry is created for each dataPoint and in rest of the chart types entries are created for each dataSeries. + * You can selectively show or hide a dataSeries in the Legend using showInLegend property of dataSeries. + */ legend?: ChartLegendOptions; /** - * axisX object lets you set various parameters of X Axis like interval, grid lines, etc. It is mostly horizontal, except when we are working with Bar Charts, where axisX is vertical. - */ - axisX?: ChartAxisXOptions; + * axisX object lets you set various parameters of X Axis like interval, grid lines, etc. It is mostly horizontal, except when we are working with Bar Charts, where axisX is vertical. + */ + axisX?: ChartAxisXOptions | ChartAxisXOptions[]; /** - * axisY object lets you set various parameters of Y Axis like interval, grid lines, etc. It is mostly vertical, except when we are working with Bar Charts, where axisY is horizontal. - */ - axisY?: ChartAxisYOptions; + * axisX2 is the secondary axis which renders on the opposite of primary axis (axisX). + * It is mostly horizontal on top, except when we are working with Bar Charts, where axisX2 is vertical on right. + */ + axisX2?: ChartAxisXOptions | ChartAxisXOptions[]; /** - * toolTip object lets user set behaviour of toolTip at global level like enabling/disabling animation, setting Border Color, sharing toolTip between multiple dataSeries, etc. You can also disable the toolTip by setting enabled property to false. - */ + * axisY object lets you set various parameters of Y Axis like interval, grid lines, etc. It is mostly vertical, except when we are working with Bar Charts, where axisY is horizontal. + */ + axisY?: ChartAxisYOptions | ChartAxisYOptions[]; + /** + * axisY2 is the secondary axis which renders on the opposite of primary axis (axisY). It is mostly vertical, except when we are working with Bar Charts, where axisY2 is horizontal. + */ + axisY2?: ChartAxisYOptions | ChartAxisYOptions[]; + /** + * toolTip object lets user set behaviour of toolTip at global level like enabling/disabling animation, setting Border Color, sharing toolTip between multiple dataSeries, etc. + * You can also disable the toolTip by setting enabled property to false. + */ toolTip?: ChartToolTipOptions; /** - * data is an array of dataSeries Objects. - */ - data: ChartDataOptions[]; + * data is an array of dataSeries Objects. + */ + data: ChartDataSeriesOptions[]; + /** + * subtitles is a collection of subtitle elements. This allows you to have as many subtitles as you want in a chart. + * subtitle allows you to set content, appearance and position of Chart’s subtitle. subtitle is very much like title except that its font size is lesser than title by default. + */ + subtitles?: ChartTitleOptions[]; } - interface ChartTitleOptions { + class ChartTitleOptions { /** - * Sets the Title’s text. - * Default: null - * Example: "Chart title" - */ + * Sets the Title’s text. + * Default: null + * Example: "Chart title" + */ text?: string; /** - * This property lets you align the Chart Title vertically. - * Default: "top" - * Options: "top", "center", "bottom" - */ + * This property lets you align the Chart Title vertically. + * Default: "top" + * Options: "top", "center", "bottom" + */ verticalAlign?: string; /** - * This property lets you align the Chart Title horizontally. - * Default: "center" - * Options: "left", "right", "center" - */ + * This property lets you align the Chart Title horizontally. + * Default: "center" + * Options: "left", "right", "center" + */ horizontalAlign?: string; /** - * Sets the font Size of Chart Title in pixels. - * Default: Automatically Calculated based on Chart Size - * Example: 16,18,22 .. - */ + * Sets the font Size of Chart Title in pixels. + * Default: 20 + * Example: 16,18,22 .. + */ fontSize?: number; /** - * Sets the Font Family of Chart Title. - * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "arial" , "tahoma", "verdana" .. - */ + * Sets the Font Family of Chart Title. + * Default: "calibri, Optima, Candara, verdana, Geneva, sans-serif" + * Example: "arial" , "tahoma", "verdana" .. + */ fontFamily?: string; /** - * Sets the Font Weight used in the Chart Title. - * Default: "bold" - * Options: "lighter", "normal", "bold" , "bolder" - */ + * Sets the Font Weight used in the Chart Title. + * Default: "normal" + * Options: "lighter", "normal", "bold" , "bolder" + */ fontWeight?: string; /** - * Sets the font color of Chart Title. The value of fontColor can be a "HTML Color Name" or "hex" code . - * Default: "#3A3A3A" - * Example: "red", "#FAC003" .. - */ + * Sets the font color of Chart Title. The value of fontColor can be a "HTML Color Name" or "hex" code . + * Default: "black" + * Example: "red", "#FAC003" .. + */ fontColor?: string; /** - * Sets the fontStyle of Chart Title. fontStyle can be set to one of the below options. - * Default: "normal" - * Options: "normal", "italic" , "oblique" - */ + * Sets the fontStyle of Chart Title. fontStyle can be set to one of the below options. + * Default: "normal" + * Options: "normal", "italic" , "oblique" + */ fontStyle?: string; /** - * Sets the thickness of border around the Title in pixels. To display border around title, set the borderThickness to a number greater than zero. - * Default: 0 - * Example: 2,4 .. - */ + * Sets the thickness of border around the Title in pixels. To display border around title, set the borderThickness to a number greater than zero. + * Default: 0 + * Example: 2,4 .. + */ borderThickness?: number; /** - * To display rounded borders around the title, set the cornerRadius of title. Higher the value, more rounded are the corners. - * Default: 0 - * Options: 5,8 .. - */ + * To display rounded borders around the title, set the cornerRadius of title. Higher the value, more rounded are the corners. + * Default: 0 + * Options: 5,8 .. + */ cornerRadius?: number; /** - * Sets the color of border around Chart Title. Values of borderColor can be "HTML Color Name" or "hex" code . - * Default: "black" - * Example: "red", "#FF0000" .. - */ + * Sets the color of border around Chart Title. Values of borderColor can be "HTML Color Name" or "hex" code . + * Default: "black" + * Example: "red", "#FF0000" .. + */ borderColor?: string; /** - * Sets the background color of Chart Title. Values can be "HTML Color Name" or "hex" code. - * Default: null - * Example: "red", "#FF0000" .. - */ + * Sets the background color of Chart Title. Values can be "HTML Color Name" or "hex" code. + * Default: null + * Example: "red", "#FF0000" .. + */ backgroundColor?: string; /** - * This property lets you set margin around the Chart Title in pixels. - * Default: 10 - * Example: 4,12 .. - */ + * This property lets you set margin around the Chart Title in pixels. + * Default: 5 + * Example: 4,12 .. + */ margin?: number; /** - * This property allows you to set the padding for Chart Title - * Default: 0 - * Example: 5, 8 .. - */ + * This property allows you to set the padding for Chart Title + * Default: 0 + * Example: 5, 8 .. + */ padding?: number; + /** + * Wrap specifies whether to wrap the title once its width crosses maxWidth or not. If it is set to false, title gets clipped after reaching maxWidth. + * Default: true; + * Example : true, false + */ + wrap?: boolean; + /** + * Sets the maximum width of title after which it gets wrapped or clipped depending on whether wrap is set to true (default) or false. + * Default: Automatically calculated based on the chart size. + * Example: 200, 400 .. + */ + maxWidth?: number; + /** + * When dockInsidePlotArea is set to true, title renders inside the plot area there by giving more space to plot area. + * Default: false + * Example: false, true. + */ + dockInsidePlotArea?: boolean; } - interface ChartLegendOptions { + class ChartTitle extends ChartTitleOptions { /** - * Sets the cursor type for legend items. - * Default: "default" - * Examples: "pointer", "crosshair" .. - */ - cursor?: string; + * Can be accessed via get method or dot notation. + */ + readonly bounds: { + x1: number, + x2: number, + y1: number, + y2: number, + }; + /** + * Returns the specified property of title. + * @param propertyName Name of the property. + */ + get(propertyName: string): string | number | boolean; + /** + * Sets the specified property of Title. + * @param propertyName Name of the property. + * @param value value to be set on property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: string | number | boolean, updateChart: boolean): void; + /** + * Removes title of the chart. + */ + remove(): void; + } + class ChartLegendOptions { /** - * Sets the font Size of Legend Text in pixels. - * Default: 12 - * Example: 16,18,22 .. - */ + * Sets the cursor type for legend items. + * Default: "default" + * Examples: "pointer", "crosshair" .. + */ + cursor?: string; + /** + * Sets the font Size of Legend Text in pixels. + * Default: 20 + * Example: 16,18,22 .. + */ fontSize?: number; /** - * Sets the Font Family of Legend Text. - * Default: "calibri" - * Example: "arial" , "tahoma", "verdana" .. - */ + * Sets the Font Family of Legend Text. + * Default: "calibri" + * Example: "arial" , "tahoma", "verdana" .. + */ fontFamily?: string; /** - * Sets the font color of Legend Text . The value of fontColor can be a "HTML Color Name" or "hex" code . - * Default: "black" - * Example: "red", "#FAC003" .. - */ + * Sets the font color of Legend Text . The value of fontColor can be a "HTML Color Name" or "hex" code . + * Default: "black" + * Example: "red", "#FAC003" .. + */ fontColor?: string; /** - * Sets the Font Weight of Legend Text. - * Default: "normal" - * Example: "lighter", "normal", "bold" , "bolder" - */ + * Sets the Font Weight of Legend Text. + * Default: "normal" + * Example: "lighter", "normal", "bold" , "bolder" + */ fontWeight?: string; /** - * Sets the fontStyle of Legend Text. fontStyle can be set to one of the below options. - * Default: "normal" - * Example: "normal", "italic" , "oblique" - */ + * Sets the fontStyle of Legend Text. fontStyle can be set to one of the below options. + * Default: "normal" + * Example: "normal", "italic" , "oblique" + */ fontStyle?: string; /** - * This property lets you align the Legend Position vertically. - * Default: "bottom" - * Example: "top", "center", "bottom" - */ + * This property lets you align the Legend Position vertically. + * Default: "bottom" + * Example: "top", "center", "bottom" + */ verticalAlign?: string; /** - * This property lets you align the Legend Position horizontally. - * Default: "right" - * Example: "left", "right", "center" - */ + * This property lets you align the Legend Position horizontally. + * Default: "right" + * Example: "left", "right", "center" + */ horizontalAlign?: string; /** - * Sets the mouseover event handler for the legend, which is triggered when the user moves the mouse(input device) over a legend item. After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. - * @param event a chart event - */ + * Sets the margin between marker and text of each item inside legend. + * Default: Automatically calculated based on the chart size. + * Example: 4,12 .. + */ + markerMargin?: number; + /** + * Sets the mouseover event handler for the legend, which is triggered when the user moves the mouse(input device) over a legend item. + * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. + * @param event a chart event + */ itemmouseover?: (event: ChartEvent) => void; /** - * Sets the mousemove event handler for the legend, which is triggered when the user moves the mouse(input device) within a legend item. When the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. - * @param event a chart event - */ + * Sets the mousemove event handler for the legend, which is triggered when the user moves the mouse(input device) within a legend item. + * When the event is triggered, the event related data is passed as a parameter to the assigned event handler. + * Parameters passed to the function are shown in the Event Object section below. + * @param event a chart event + */ itemmousemove?: (event: ChartEvent) => void; /** - * Sets the mouseout event handler for the legend, which is triggered when the user moves the mouse pointer outside a legend item. After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. - * @param event a chart event - */ + * Sets the mouseout event handler for the legend, which is triggered when the user moves the mouse pointer outside a legend item. + * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. + * Parameters passed to the function are shown in the Event Object section below. + * @param event a chart event + */ itemmouseout?: (event: ChartEvent) => void; /** - * Sets the click event handler for the legend, which is triggered when the user clicks on a legend item. After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. - * @param event a chart event - */ + * Sets the click event handler for the legend, which is triggered when the user clicks on a legend item. + * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. + * Parameters passed to the function are shown in the Event Object section below. + * @param event a chart event + */ itemclick?: (event: ChartEvent) => void; + /** + * Setting reversed property to true shows legend items in reverse order. + * Default: false; + * Example: true, false + */ + reversed?: boolean; + /** + * Sets the maximum width of legend. If any item is longer than the maxWidth, it gets wrapped or clipped depending on the itemWrap property. itemWrap is true by default. + * Whenever items are stacked horizontally, new items are moved to the next row once maxWidth is reached. + * Default: Automatically calculated based on the chart size. + * Example: 100, 200, 500 etc. + */ + maxWidth?: number; + /** + * Sets the maximum height of legend. Once the maximum height is reached, remaining legend items are not shown when horizontally stacked (while on top or bottom or plotArea) + * and a new column is created when items are vertically stacked (when displayed to the left or right of plotArea). + * Default: Automatically calculated based on chart size. + * Example: 100,200, 300 etc. + */ + maxHeight?: number; + /** + * Sets the maximum width of individual legend items after which they get wrapped or clipped depending on whether itemWrap is set to true (default) or false. + * itemMaxWidth can’t be greater than maxWidth of legend. + * Default: Automatically calculated based on the chart size. + * Example: 100, 150, 200 etc. + */ + itemMaxWidth?: number; + /** + * Sets the width of individual legend items after which the it gets wrapped or clipped depending on whether itemWrap is set to true (default) or false. + * itemWidth can’t be greater than itemMaxWidth and maxWidth of legend. + * Default: Automatically calculated based on chart size. + * Example: 100, 200, 300 etc. + */ + itemWidth?: number; + /** + * itemWrap specifies whether to wrap or clip legendText once its width crosses itemMaxWidth / maxWidth. + * Default: true + * Example: true, false + */ + itemWrap?: boolean; + /** + * A custom formatter function that returns text to be displayed inside individual legend items. + */ + itemTextFormatter?(e?: { chart: Chart, legend: ChartLegendOptions, dataSeries: ChartDataSeriesOptions, dataPoint: ChartDataPoint }): string; + /** + * When dockInsidePlotArea is set to true, legend renders inside the plot area there by giving more space to plot area. + * Default: false + * Example: true, false + */ + dockInsidePlotArea?: boolean; + } + + class ChartLegend extends ChartLegendOptions { + /** + * Returns the specified property of legend. + * @param propertyName Name of the property. + */ + get(propertyName: string): number | string | boolean; + /** + * Sets the specified property of legend. + * @param propertyName Name of the property. + * @param value Name of the property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: number | string | boolean, updateChart?: boolean): void; } interface ChartEvent { /** - * The x value of the item - */ + * The x value of the item + */ x: any; /** - * The y value of the item - */ + * The y value of the item + */ y: number; /** - * The chart object - */ + * The chart object + */ chart: Chart; /** - * The datapoint options - */ + * The datapoint options + */ dataPoint: ChartDataPoint; /** - * The data series options - */ - dataSeries: ChartDataOptions; + * The data series options + */ + dataSeries: ChartDataSeriesOptions; /** - * The index of the data point - */ + * The index of the data point + */ dataPointIndex: number; /** - * The index of the data series - */ + * The index of the data series + */ dataSeriesIndex: number; } - interface ChartAxisOptions { + class ChartAxisOptions { /** - * Sets the Axis Title. - * Default: null - * Example: "Axis X Title" - */ + * Sets the Axis Title. + * Default: null + * Example: "Axis X Title" + */ title?: string; /** - * Sets the Font Color of Axis Title. The value of titleFontColor can be a "HTML Color Name" or "hex" code . - * Default: "#666666" - * Example: "red", "#006400" . - */ + * Sets the Font Color of Axis Title. The value of titleFontColor can be a "HTML Color Name" or "hex" code . + * Default: "#666666" + * Example: "red", "#006400" . + */ titleFontColor?: string; /** - * Sets the Font Size of Axis Title in pixels. - * Default: Automatically Calculated based on Chart Size - * Example: 16, 25 .. - */ + * Sets the Font Size of Axis Title in pixels. + * Default: 20 + * Example: 16, 25 .. + */ titleFontSize?: number; /** - * Sets the Font Family of Axis Title. - * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "calibri", "tahoma, "verdana" .. - */ + * Sets the Font Family of Axis Title. + * Default: "arial" + * Example: "calibri", "tahoma, "verdana" .. + */ titleFontFamily?: string; /** - * Sets the Font Weight used in the Axis Title. It can be set to one of the options below. - * Default: "normal" - * Options: "lighter", "normal", "bold" , "bolder" - */ + * Sets the Font Weight used in the Axis Title. It can be set to one of the options below. + * Default: "normal" + * Options: "lighter", "normal", "bold" , "bolder" + */ titleFontWeight?: string; /** - * Sets the Font Style of Axis Title. It can be set to one of the below options. - * Default: "normal" - * Options: "normal", "italic" , "oblique" - */ + * Sets the Font Style of Axis Title. It can be set to one of the below options. + * Default: "normal" + * Options: "normal", "italic" , "oblique" + */ titleFontStyle?: string; /** - * This property lets you set margin between chart’s boundary and Axis. - * Default: 2 - * Example: 8, 10.. - */ + * This property lets you set margin between chart’s boundary and Axis. + * Default: 2 + * Example: 8, 10.. + */ margin?: number; /** - * Sets the angle for Axis Labels. - * Default: null - * Example: 20, 45, -30 .. - */ - labelAngle?: number; - /** - * Sets the Axis Label color. The value of labelFontColor can be a "HTML Color Name" or "hex" code . - * Default: "grey" - * Example: "red", "#FAC003" .. - */ - labelFontColor?: string; - /** - * Sets the Axis Label Font Size in pixels. - * Default: Automatically Calculated based on Chart Size - * Example: 16, 18, 22.. - */ - labelFontSize?: number; - /** - * Sets the Font Family of Axis labels. - * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "calibri", "tahoma", "verdana" .. - */ - labelFontFamily?: string; - /** - * Set the font Weight used in Axis Labels. It can be set to one of the options below. - * Default: "normal" - * Options: "lighter", "normal", "bold" , "bolder" - */ - labelFontWeight?: string; - /** - * Sets the Font Style of Axis Labels. It can be set to one of the below options. - * Default: "normal" - * Options: "italic", "oblique", "normal" - */ - labelFontStyle?: string; - /** - * A string that prepends all the labels on axisX. - * Default: null - * Example: "$","cat".. - */ - prefix?: string; - /** - * A string that appends all the labels on axisX. - * Default: null - * Example: "$","cat".. - */ - suffix?: string; - /** - * Defines how values must be formatted before they appear on Axis X. You can format numbers and date time values using this property. Below you will find descriptive table explaining various specifiers with example. - */ - valueFormatString?: string; - /** - * Sets the distance between Tick Marks, Grid Lines and Interlaced Colors. - * Default: Automatically Calculated - * Example: 50, 75.. - */ - interval?: number; - /** - * intervalType is the unit of interval property. intervalType is by default set to "number" and hence you need to specify the interval type (eg "week", "month", etc) depending on the type of interval you intend to set. If required interval is 3 months, you need to provide interval as 3 and intervalType as "month" - * Default: Automatically handled when interval property is not set. Defaults to "number" when you set the interval. - * Option: "number","millisecond" ,"second"," minute", "hour", "day", "month" ,"year" - * Example: for interval as 15 minutes, set interval as 15, and set intervalType as "minute", - */ - intervalType?: string; - /** - * Sets the length of Tick Marks that are drawn on the Axis. - * Default: 5 - * Example: 10, 14.. - */ - tickLength?: number; - /** - * Sets the color of Tick Marks drawn on the axis. The value of tickColor can be a "HTML Color Name" or "hex" code . - * Default: "#BBBBBB" - * Example: "red", "#006400". - */ - tickColor?: string; - /** - * Sets the thickness of the Tick Marks in pixels. - * Default: 2 - * Example: 3, 4.. - */ - tickThickness?: number; - /** - * Sets the color of Axis line. Axis line color can be a "HTML Color Name" or "hex" code . - * Default: "#BBBBBB" - * Example: "blue","#21AB13".. - */ + * Sets the color of Axis line. Axis line color can be a "HTML Color Name" or "hex" code . + * Default: "#BBBBBB" + * Example: "blue","#21AB13".. + */ lineColor?: string; /** - * Sets the Thickness of Axis line in pixels. - * Default: 2 - * Example: 2, 4.. - */ - lineThickness?: string; + * Sets the Thickness of Axis line in pixels. + * Default: 2 + * Example: 2, 4.. + */ + lineThickness?: number; /** - * Sets the Interlacing Color that alternates between the set interval. If the interval is not set explicitly, then the auto calculated interval is considered. The value of interlacedColor can be a "HTML Color Name" or "hex" code . - * Default: null - * Example: "#F8F1E4", "#FEFDDF" …. - */ - interlaceColor?: string; + * Sets the dash type for axisY. + * Default: "solid" + * Supported Dash Types: + * “solid” + * “shortDash” + * “shortDot” + * “shortDashDot” + * “shortDashDotDot” + * “dot” + * “dash” + * “dashDot” + * “longDash” + * “longDashDot” + * “longDashDotDot” + */ + lineDashType?: string; /** - * Sets the Thickness of Grid Lines. To display grid on Axis X, set the Grid Thickness to a number greater than zero. - * Default: 0 - * Example: 2,4 .. - */ - gridThickness?: number; - /** - * Sets the Color of Grid Lines. Value of gridColor can be a "HTML Color Name" or "hex" code . - * Default: "#BBBBBB" - * Example: "red", "#FEFDDF" .. - */ - gridColor?: string; - - /** - * Sets the Interlacing Color that alternates between the set interval. - * If the interval is not set explicitly, then the auto calculated interval is considered. - * The value of interlacedColor can be an "HTML Color Name" or "hex" code. - * Default: null - * Example: "#F8F1E4", "#FEFDDF" - */ - interlacedColor?: string; - - /** - * Strip Lines are vertical or horizontal lines used to highlight/mark a certain region on the plot area. You can choose whether to draw a line at a specific position or shade a region on the plot area. Strip Lines are sometimes referred to as trend lines. - * If you want to just mark a certain position on the axis, you can set the value attribute and it’ll draw a line at that position with the set thickness. If you want to shade a region instead, you need to set startValue and endValue attributes. This will fill the area within the specified range. - * In the case you set startValue and endValue attributes, value and thickness attributes are ignored (as either a single thread of line can exist, or a shaded region between two given points). - * Strip Lines can be displayed using AxisX or AxisY’s stripLines array. This allows you to have one or more strip lines on both x & y axis. - */ - stripLines?: ChartStripLines; - } - - interface ChartStripLines { - /** - * Sets the point where the stripLine has to be plotted or drawn along the axis X. - * Default: null - * Example: 20,30,100,50 - */ - value?: number; - /** - * Sets the point where the stripLine’s shaded region begins on the x-axis. - * Default: null - * Example: 20,30,100,50 - */ - startValue?: number; - /** - * Sets the point where the stripLine’s shaded region ends on the x-axis. - * Default: null - * Example: 50,60,200,300 - */ - endValue?: number; - /** - * Sets the thickness of the stripLine in pixels. - * Default: 2 - * Example: 2,4,5,6 - */ - thickness?: number; - /** - * Sets the color of the stripLine. - * Default: "orange" - * Example: "green", "#23EA23" - */ - color?: string; - /** - * Sets the label of the stripLine. These are shown on top of axis labels. - * Default: "" (empty string) - * Example: "Threshold", "Deaths in 1920" - */ - label?: string; - /** - * Sets the background color of stripLine’s label. - * Default: "#eeeeee" - * Example: "red","#fabd76" - */ - labelBackgroundColor?: string; - /** - * Sets the font-family of stripLine’s label. If the first font is not found in the system from the specified font-family list, it tries to use the next font in the list. - * Default: "arial" - * Example: "Arial, Trebuchet MS, Tahoma, sans-serif" - */ - labelFontFamily?: string; - /** - * Sets the font color of label. - * Default: "orange" - * Example: "blue","#4135e9" - */ - labelFontColor?: string; - /** - * Sets the font size of the label in pixels. - * Default: 12 - * Example: 18,19,20,22 - */ - labelFontSize?: number; - /** - * Sets the font weight of stripLine’s label. - * Default: "normal" - * Example: "lighter","normal","bold","bolder" - */ - labelFontWeight?: string; - /** - * Sets the font style of stripLine’s label. - * Default: "normal" - * Example: "normal","italic","oblique" - */ - labelFontStyle?: string; - } - - interface ChartAxisXOptions extends ChartAxisOptions { - /** - * Sets the minimum value of Axis. Values smaller than minimum are clipped. - * Default: Automatically Calculated based on the data - * Example: 100, 350.. - */ - minimum?: number | Date; - /** - * Sets the maximum value permitted on Axis. Values greater than maximum are clipped. - * Default: Automatically Calculated based on the data - * Example: 100, 350.. - */ - maximum?: number | Date; - } - - interface ChartAxisYOptions extends ChartAxisOptions { - /** - * When includeZero is set to true, axisY sets the range in such a way that Zero is a part of it. It is set to true by default. But, whenever y values are very big and difference among dataPoints are hard to judge, setting includeZero to false makes axisY to set a range that makes the differences prominently visible. - * Default: true - * Example: true, false - */ - includeZero?: boolean; - - /** - * Sets the minimum value of Axis. Values smaller than minimum are clipped. - * Default: Automatically Calculated based on the data - * Example: 100, 350.. - */ + * Sets the minimum value of Axis. Values smaller than minimum are clipped. minimum also sets the lower limit while panning chart. + * Default: Automatically Calculated based on the data. + * Example: 100, 350.. + */ minimum?: number; /** - * Sets the maximum value permitted on Axis. Values greater than maximum are clipped. - * Default: Automatically Calculated based on the data - * Example: 100, 350.. - */ + * Sets the maximum value permitted on Axis. Values greater than maximum are clipped. maximum also set the upper limit while panning chart. + * Default: Automatically Calculated based on the data. + * Example: 100, 350.. + */ maximum?: number; + /** + * Viewport is the visible range of the axis and viewportMinimum allows you to set its minimum value. + * This can be used in combination with viewportMaximum in order to zoom into a certain region programmatically. + * Default: Automatically Calculated based on the data. + * Example: -100, 350.. + */ + viewportMinimum?: number; + /** + * Viewport is the visible range of the axis and viewportMinimum allows you to set its minimum value. + * This can be used in combination with viewportMaximum in order to zoom into a certain region programmatically. + * Default: Automatically Calculated based on the data. + * Example: -100, 350.. + */ + viewportMaximum?: number; } - interface ChartToolTipOptions { + class ChartStripLinesOptions { /** - * Enables or Disables the toolTip for the chart. - * Default: True - * Example: True, False - */ - enabled?: boolean; + * Sets the point where the stripLine has to be plotted or drawn along the axis X. + * Default: null + * Example: 20,30,100,50 + */ + value?: number; /** - * In a Multi-Series or a Combination Chart, it is often required to display all values common to x value in a single bubble. Setting shared to true will show in a common bubble all the values of y from each series next to their name. - * Default: True - * Example: True, False - */ - shared?: boolean; + * Sets the point where the stripLine’s shaded region begins on the x-axis. + * Default: null + * Example: 20,30,100,50 + */ + startValue?: number; /** - * toolTip for entire chart can be set by adding content at toolTip object. content can either be a string or a custom function that returns HTML/String to be displayed inside the toolTip. - * Default: auto - */ - content?: string; + * Sets the point where the stripLine’s shaded region ends on the x-axis. + * Default: null + * Example: 50,60,200,300 + */ + endValue?: number; /** - * While mouse hovers from one dataPoint to another there is a smooth transition in toolTip. This effect can be controlled by animationEnabled Property. Setting it to false, will disable the animation and toolTip will directly switch from one dataPoint to the other. - * Default: True - * Example: True, False - */ - animationEnabled?: boolean; + * Sets the thickness of the stripLine in pixels. + * Default: 2 + * Example: 2,4,5,6 + */ + thickness?: number; /** - * Sets the border color around Tool Tip. When not set it takes the color of corresponding dataSeries or dataPoint. - * Default: dataSeries color/ dataPoint color - * Example: "red", "#808080".. - */ - borderColor?: string; - } - - interface ChartDataCommon { - /** - * Sets the dataPoint Name. dataPoint name is shown in various places like toolTip & legend unless overridden. - * Default: Automatically Named ("dataPoint 1", "dataPoint 2" .. ) - * Example: "apple", "mango" .. - */ - name?: string; - /** - * Sets the color of dataSeries. The value of tickColor can be a "HTML Color Name" or "Hex Code". - * Default: Automatically set from Theme. - * Example: "red", "green" .. - */ + * Sets the color of the stripLine. + * Default: "orange" + * Example: "green", "#23EA23" + */ color?: string; /** - * Instead of setting string values for all indexLabels, you can also use keywords like x, y, etc that will automatically show corresponding properties as indexLabel. This will allow you to define indexLabel at the series level once. While setting indexLabel you specify a keyword by enclosing it in flower brackets like {x}, {y}, {color}, etc. - * Range Charts have two indexLabels – one for each y value. This requires the use of a special keyword #index to show index label on either sides of the column/bar/area. - * eg: indexLabel: "{x}: {y[#index]}" - * Important keywords to keep in mind are. {x}, {y}, {name}, {label}. - * Default: null - * Example: "{label}", "Win", "x: {x}, y: {y} " - */ + * Sets the label of the stripLine. These are shown on top of axis labels. + * Default: "" (empty string) + * Example: "Threshold", "Deaths in 1920" + */ + label?: string; + /** + * labelPlacement allows you to place stripline’s Label either inside or outside of plotArea. + * Default: “inside” + * Options: “inside”, “outside” + */ + labelPlacement?: string; + /** + * labelAlign allows you to place the stripline’s Label far, center or near the axis. + * Default: “far” + * Options: “far”, “center”, “near” + */ + labelAlign?: string; + /** + * Setting labelWrap to true wraps the labels at labelMaxWidth. Clips the same when set to false. It overrides the labelWrap set at axis level. + * Default: true + * Example: true, false. + */ + labelWrap: boolean; + /** + * labelMaxWidth defines the maximum width of labels after which they get wrapped or clipped depending on labelWrap’s value. + * It overrides the labelMaxWidth value set at axis level. + * Default: Automatically calculated based on the length of label. + * Example: 4, 20, 100 etc. + */ + labelMaxWidth: number; + /** + * Sets the background color of stripLine’s label. + * Default: "#eeeeee" + * Example: "red","#fabd76" + */ + labelBackgroundColor?: string; + /** + * Sets the font-family of stripLine’s label. If the first font is not found in the system from the specified font-family list, it tries to use the next font in the list. + * Default: "arial" + * Example: "Arial, Trebuchet MS, Tahoma, sans-serif" + */ + labelFontFamily?: string; + /** + * Sets the font color of label. + * Default: "orange" + * Example: "blue","#4135e9" + */ + labelFontColor?: string; + /** + * Sets the font size of the label in pixels. + * Default: 12 + * Example: 18,19,20,22 + */ + labelFontSize?: number; + /** + * Sets the font weight of stripLine’s label. + * Default: "normal" + * Example: "lighter","normal","bold","bolder" + */ + labelFontWeight?: string; + /** + * Sets the font style of stripLine’s label. + * Default: "normal" + * Example: "normal","italic","oblique" + */ + labelFontStyle?: string; + /** + * stripLine is displayed on top of dataPoints when showOnTop is set to true. + * Default: false + * Example: true, false + */ + showOnTop?: boolean; + /** + * Sets the Dash Type for stripLine. + * Default: solid + * Example: “dot”, “dash”, etc. + */ + lineDashType?: string; + /** + * Sets opacity of stripLine. + * Default: null + * Example: .1, .5, 1 etc. + */ + opacity?: number; + /** + * A custom formatter function that returns stripLine’s label. + */ + labelFormatter?(e?: { chart: Chart, axis: ChartAxisYOptions, stripline: ChartStripLinesOptions }): string; + } + + class ChartStrip extends ChartStripLinesOptions { + /** + * Returns the specified property of stripLines. + * @param propertyName Name of the property + */ + get(propertyName: string): number | string | boolean; + /** + * Sets the specified property of stripLines. + * @param propertyName Name of the property. + * @param value value to be set on property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: number | string | boolean, updateChart: boolean): void; + /** + * Removes specified stripLine from stripLines Array. + */ + remove(): void; + } + + class ChartAxisXOptions extends ChartAxisOptions { + /** + * TitleWrap specifies whether to wrap or clip axis title once its width crosses titleMaxWidth. + * Default: true + * Options: true, false + */ + titleWrap?: boolean; + /** + * Sets the maximum width of title after which it gets wrapped or clipped depending on whether titleWrap is set to true (default) or false. + * Default: Automatically calculated based on the length of axis. + * Example: 100, 200... + */ + titleMaxWidth?: number; + /** + * Sets the Axis Label background color. The value of labelBackgroundColor can be a “HTML Color Name” or “hex” code. + * Default: “transparent” + * Example: “red”,”#fabd76″ + */ + labelBackgroundColor?: string; + /** + * Sets the maximum width of label after which it gets wrapped or clipped depending on whether labelWrap is set to true (default) or false. + * Default: Automatically calculated based on the length of label. + * Example: 4, 20, 100 etc. + */ + labelMaxWidth?: number; + /** + * labelWrap specifies whether to wrap or clip label once its width crosses labelMaxWidth. + * Default: true + * Example: true, false + */ + labelWrap?: boolean; + /** + * Setting labelAutoFit to true automatically wraps and/or rotates and/or reduces font size of label when they are too long and overlaps, + * finds the best-fit and automatically manages label overlapping. + * Default: true + * Options: true, false + */ + labelAutoFit?: boolean; + /** + * Sets the angle for Axis Labels. + * Notes: + * 1.Units in degrees. + * 2.Values can be positive or negative. + * Default: null; + * Example: 20, 45, -30.. + */ + labelAngle?: number; + /** + * Sets the Font Family of Axis labels. + * Default: “calibri, optima, Candara, Verdana, Geneva, sans-serif” + * Example: “calibri”, “tahoma”, “verdana” .. + */ + labelFontFamily?: string; + /** + * Sets the Axis Label color. The value of labelFontColor can be a "HTML Color Name" or "hex" code . + * Default: "grey" + * Example: "red", "#FAC003" .. + */ + labelFontColor?: string; + /** + * Sets the Axis Label Font Size in pixels. + * Default: Automatically Calculated based on Chart Size + * Example: 16, 18, 22.. + */ + labelFontSize?: number; + /** + * Set the font Weight used in Axis Labels. It can be set to one of the options below. + * Default: "normal" + * Options: "lighter", "normal", "bold" , "bolder" + */ + labelFontWeight?: string; + /** + * Sets the Font Style of Axis Labels. It can be set to one of the below options. + * Default: "normal" + * Options: "italic", "oblique", "normal" + */ + labelFontStyle?: string; + /** + * A string that prepends all the labels on axisX. + * Default: null + * Example: "$","cat".. + */ + prefix?: string; + /** + * A string that appends all the labels on axisX. + * Default: null + * Example: "$","cat".. + */ + suffix?: string; + /** + * Defines how values must be formatted before they appear on Axis X. + * You can format numbers and date time values using this property. + * More Detail: https://canvasjs.com/docs/charts/chart-options/axisx/valueformatstring/ + */ + valueFormatString?: string; + /** + * Sets the distance between Tick Marks, Grid Lines and Interlaced Colors. + * Default: Automatically Calculated + * Example: 50, 75.. + */ + interval?: number; + /** + * intervalType is the unit of interval property. + * intervalType is by default set to "number" and hence you need to specify the interval type (eg "week", "month", etc) depending on the type of interval you intend to set. + * If required interval is 3 months, you need to provide interval as 3 and intervalType as "month" + * Default: Automatically handled when interval property is not set. Defaults to "number" when you set the interval. + * Option: "number","millisecond" ,"second"," minute", "hour", "day", "month" ,"year" + * Example: for interval as 15 minutes, set interval as 15, and set intervalType as "minute", + */ + intervalType?: string; + /** + * Setting reversed property to true shows axis in reverse order. + * Default: false + * Options: true, false + */ + reversed?: boolean; + /** + * Setting logarithmic property to true changes axis scale to logarithmic scale. Default Logarithm Base is 10 – which you can customize using logarithmBase property. + * Default: false + * Options: true, false + */ + logarithmic?: boolean; + /** + * Sets the logarithm base for Axis X. Works only when logarithm property is set to true. + * Default: 10 + * Options: 2, 16, Math.E, .. + */ + logarithmBase?: number; + /** + * Sets the length of Tick Marks that are drawn on the Axis. + * Default: 5 + * Example: 10, 14.. + */ + tickLength?: number; + /** + * Sets the color of Tick Marks drawn on the axis. The value of tickColor can be a "HTML Color Name" or "hex" code . + * Default: "#BBBBBB" + * Example: "red", "#006400". + */ + tickColor?: string; + /** + * Sets the thickness of the Tick Marks in pixels. + * Default: 2 + * Example: 3, 4.. + */ + tickThickness?: number; + /** + * Sets the Interlacing Color that alternates between the set interval. + * If the interval is not set explicitly, then the auto calculated interval is considered. The value of interlacedColor can be a “HTML Color Name” or “hex” code. + * Default: null + * Example: "#F8F1E4", "#FEFDDF"... + */ + interlacedColor?: string; + /** + * Sets the Thickness of Grid Lines. To display grid on Axis X, set the Grid Thickness to a number greater than zero. + * Default: 0 + * Example: 2,4 .. + */ + gridThickness?: number; + /** + * Sets the Color of Grid Lines. Value of gridColor can be a "HTML Color Name" or "hex" code . + * Default: "#BBBBBB" + * Example: "red", "#FEFDDF" .. + */ + gridColor?: string; + /** + * Sets the Dash Type for grid lines on axisX. + * Default: solid + * Options: “solid”, “shortDash”, “shortDot”, “shortDashDot”, “shortDashDotDot”, “dot”, “dash”, “dashDot”, “longDash”, “longDashDot”, “longDashDotDot” + */ + gridDashType?: string; + /** + * A custom formatter function that returns label to be displayed on axisX. + * Notes: + * 1.labelFormatter function should return a string. + * 2.You can use formatNumber and formatDate functions to format number/date values inside the formatter function. + */ + labelFormatter?(e: { chart: Chart, axis: ChartAxisYOptions, value: number, label: string }): string; + /** + * Strip Lines / Trend Lines are vertical or horizontal lines used to highlight/mark a certain region on the plot area. + * You can choose whether to draw a line at a specific position or shade a region on the plot area. Strip Lines are also referred to as Trend Lines. + */ + stripLines?: ChartStripLinesOptions | ChartStripLinesOptions[]; + } + + class ChartAxisX extends ChartAxisXOptions { + /** + * Returns the specified property of Axis. + * @param propertyName Name of the property. + */ + get(propertyName: string): string | number | boolean; + /** + * Sets the specified property of Axis. + * @param propertyName Name of the property. + * @param value value to be set on property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: string | number | boolean, updateChart: boolean): void; + /** + * Removes specified axis from axis Array. + */ + remove(): void; + /** + * Adds a new element of given type to the specified array. For example, it can be used to add new stripLine to stripLines array. + * @param propertyName Name of the property. + * @param options Option for the new element. + * @param index Index of the array where the new element is to be added. Defaults to the length (end) of array. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + addTo(propertyName: string, options: ChartStripLinesOptions, index?: number, updateChart?: boolean): void; + /** + * Return the pixel coordinate of the given value over axis. + * @param value Numeric value over Axis + */ + convertValueToPixel(value: number): number; + /** + * Return the value along Axis for given pixel coordinate. + * @param pixel pixel value over Axis + */ + convertPixelToValue(pixel: number): number; + } + class ChartAxisYOptions extends ChartAxisXOptions { + /** + * When includeZero is set to true, axisY sets the range in such a way that Zero is a part of it. It is set to true by default. + * But, whenever y values are very big and difference among dataPoints are hard to judge, + * setting includeZero to false makes axisY to set a range that makes the differences prominently visible. + * Default: true + * Example: true, false + */ + includeZero?: boolean; + } + + class ChartAxisY extends ChartAxisYOptions { + /** + * Returns the specified property of Axis. + * @param propertyName Name of the property. + */ + get(propertyName: string): string | number | boolean; + /** + * Sets the specified property of Axis. + * @param propertyName Name of the property. + * @param value value to be set on property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: string | number | boolean, updateChart: boolean): void; + /** + * Removes specified axis from axis Array. + */ + remove(): void; + /** + * Adds a new element of given type to the specified array. For example, it can be used to add new stripLine to stripLines array. + * @param propertyName Name of the property. + * @param options Option for the new element. + * @param index Index of the array where the new element is to be added. Defaults to the length (end) of array. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + addTo(propertyName: string, options: ChartStripLinesOptions, index?: number, updateChart?: boolean): void; + /** + * Return the pixel coordinate of the given value over axis. + * @param value Numeric value over Axis + */ + convertValueToPixel(value: number): number; + /** + * Return the value along Axis for given pixel coordinate. + * @param pixel pixel value over Axis + */ + convertPixelToValue(pixel: number): number; + } + + class ChartToolTipOptions { + /** + * While mouse hovers from one dataPoint to another there is a smooth transition in toolTip. + * This effect can be controlled by animationEnabled Property. Setting it to false, will disable the animation and toolTip will directly switch from one dataPoint to the other. + * Default: True + * Example: True, False + */ + animationEnabled?: boolean; + /** + * Enables or Disables the toolTip for the chart. + * Default: True + * Example: True, False + */ + enabled?: boolean; + /** + * In a Multi-Series or a Combination Chart, it is often required to display all values common to x value in a single bubble. + * Setting shared to true will show in a common bubble all the values of y from each series next to their name. + * Default: True + * Example: True, False + */ + shared?: boolean; + /** + * Sets the border color around Tool Tip. When not set it takes the color of corresponding dataSeries or dataPoint. + * Default: dataSeries color/ dataPoint color + * Example: "red", "#808080".. + */ + borderColor?: string; + /** + * toolTip for entire chart can be set by adding content at toolTip object. + * content can either be a string or a custom function that returns HTML/String to be displayed inside the toolTip. + * Default: auto + */ + content?: string; + /** + * Sets the Font Color of toolTipContent. The value of fontColor can be a “HTML Color Name” or “hex” code. + * Default: “black” + * Example: “red”, “#FAC003″ .. + */ + fontColor?: string; + /** + * Sets the Font Style of ToolTip Content. It can be set to one of the below options. + * Default: “italic” + * Example: “normal”, “italic” , “oblique” + */ + fontStyle?: string; + /** + * Sets the font Size of ToolTip Content in pixels. + * Default: 14 + * Example: 16,18,22 .. + */ + fontSize?: number; + /** + * Sets the Font Family of ToolTip Content. + * Default: “Calibri, Arial, Georgia, serif” + * Example: “arial” , “tahoma”, “verdana” .. + */ + fontFamily?: string; + /** + * Set the font Weight of ToolTip Content. + * Default: “normal” + * Example: “lighter”, “normal”, “bold” , “bolder” + */ + fontWeight?: string; + /** + * Sets the thickness of border around the toolTip in pixels. To display border around toolTip, set the borderThickness to a number greater than zero. Setting it to zero removes the border. + * Default: 2 + * Example: 2,4 .. + */ + borderThickness?: number; + /** + * Setting a value higher than 0 makes the corners of toolTip rounded. Higher the value, more rounded the corners are. + * Default: 5 + * Options: 2,3,8 .. + */ + cornerRadius?: number; + /** + * Reverses the order in which items inside toolTip are shown. + * Default: false + * Example: true, false + */ + reversed?: boolean; + /** + * A custom formatter function that returns the content (text/html) to be displayed inside the toolTip. + */ + contentFormatter?(e: { chart: Chart, toolTip: ChartToolTipOptions, entries: Array<{ dataPoint: ChartDataPoint, dataSeries: ChartDataSeriesOptions }> }): string; + /** + * Sets the background color of toolTip. Values can be “HTML Color Name” or “hex” code. + * Default: white + * Example: “red”, “#FF0000” .. + */ + backgroundColor?: string; + } + + class ChartToolTip extends ChartToolTipOptions { + /** + * Returns the specified property of legend. + * @param propertyName Name of the property. + */ + get(propertyName: string): number | string | boolean; + /** + * Sets the specified property of legend. + * @param propertyName Name of the property. + * @param value Name of the property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: number | string | boolean, updateChart?: boolean): void; + } + + class ChartDataCommon { + /** + * Sets the dataPoint Name. dataPoint name is shown in various places like toolTip & legend unless overridden. + * Default: Automatically Named ("dataPoint 1", "dataPoint 2" .. ) + * Example: "apple", "mango" .. + */ + name?: string; + /** + * Sets the color of dataSeries. The value of tickColor can be a "HTML Color Name" or "Hex Code". + * Default: Automatically set from Theme. + * Example: "red", "green" .. + */ + color?: string; + /** + * Enables or Disables highlighting of dataPoints on mouse hover. + * Default: true + * Example: true,false + */ + highlightEnabled?: boolean; + /** + * Instead of setting string values for all indexLabels, you can also use keywords like x, y, etc that will automatically show corresponding properties as indexLabel. + * This will allow you to define indexLabel at the series level once. While setting indexLabel you specify a keyword by enclosing it in flower brackets like {x}, {y}, {color}, etc. + * Range Charts have two indexLabels – one for each y value. This requires the use of a special keyword #index to show index label on either sides of the column/bar/area. + * eg: indexLabel: "{x}: {y[#index]}" + * Important keywords to keep in mind are. {x}, {y}, {name}, {label}. + * Default: null + * Example: "{label}", "Win", "x: {x}, y: {y} " + */ indexLabel?: string; /** - * Using this property you can define whether to render indexLabel "inside" or "outside" the dataPoint. - * Default: "outside" - * Example: "outside", "inside" - */ + * Sets the Dash Type for indexLabel’s line. It is applicable only for pie and doughnut charts when indexLabelPlacement is set to “outside”. + * For other chart-types, indexLabelLineThickness should be set greater than zero. + * Default: solid + * Example: “dot”, “dash”, etc. + */ + indexLabelLineDashType?: string; + /** + * A custom formatter function which returns the text to be displayed as indexLabel on dataPoints. + * @param e event object + */ + indexLabelFormatter?(e: { chart: Chart, dataSeries: ChartDataSeriesOptions, dataPoint: ChartDataPoint, index?: number, total?: number, pencent?: number }): string; + /** + * Using this property you can define whether to render indexLabel "inside" or "outside" the dataPoint. + * Default: "outside" + * Example: "outside", "inside" + */ indexLabelPlacement?: string; /** - * Sets the Orientation of indexLabel to "horizontal" or "vertical". - * Default: "horizontal" - * Options: "horizontal", "vertical" - */ + * Sets the Orientation of indexLabel to "horizontal" or "vertical". + * Default: "horizontal" + * Options: "horizontal", "vertical" + */ indexLabelOrientation?: string; /** - * Sets the Background color of Index Labels. The value of indexLabelBackgroundColor can be a "HTML Color Name" or "Hex Code". - * Default: null - * Example: "red", "#FAC003" .. - */ + * Sets the Background color of Index Labels. The value of indexLabelBackgroundColor can be a "HTML Color Name" or "Hex Code". + * Default: null + * Example: "red", "#FAC003" .. + */ indexLabelBackgroundColor?: string; /** - * Sets the Index Label’s Font Style. It can be set to one of the below options. - * Default: "normal" - * Options: "italic", "oblique", "normal" - */ + * Sets the Index Label’s Font Style. It can be set to one of the below options. + * Default: "normal" + * Options: "italic", "oblique", "normal" + */ indexLabelFontStyle?: string; /** - * Sets the Index Label’s Font color. The value of IndexLabelFontColor can be a "HTML Color Name" or "Hex Code". - * Default: "grey" - * Example: "red", "#FAC003" .. - */ + * Sets the Index Label’s Font color. The value of IndexLabelFontColor can be a "HTML Color Name" or "Hex Code". + * Default: "grey" + * Example: "red", "#FAC003" .. + */ indexLabelFontColor?: string; /** - * Sets the Index Label’s Font Size in pixels. - * Default: 18 - * Example: 12, 16, 22.. - */ + * Sets the Index Label’s Font Size in pixels. + * Default: 18 + * Example: 12, 16, 22.. + */ indexLabelFontSize?: number; /** - * Sets the Index Label’s Font Family. - * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "calibri", "tahoma", "verdana".. - */ + * Sets the Index Label’s Font Family. + * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" + * Example: "calibri", "tahoma", "verdana".. + */ indexLabelFontFamily?: string; /** - * Sets the Index Label’s Font Weight. It can be set to one of the below options. - * Default: "normal" - * Example: "lighter", "normal" ,"bold" , "bolder" - */ + * Sets the Index Label’s Font Weight. It can be set to one of the below options. + * Default: "normal" + * Example: "lighter", "normal" ,"bold" , "bolder" + */ indexLabelFontWeight?: string; /** - * Sets the color of line connecting index labels with their dataPoint. It is only applicable for pie and doughnut chart when indexLabelPlacment is outside. The value of indexLineColor can be a "HTML Color Name" or "Hex Code". - * Default: "lightgrey" - * Example: "red", "#FAC003" .. - */ + * Sets the color of line connecting index labels with their dataPoint. It is only applicable for pie and doughnut chart when indexLabelPlacment is outside. + * The value of indexLineColor can be a "HTML Color Name" or "Hex Code". + * Default: "lightgrey" + * Example: "red", "#FAC003" .. + */ indexLabelLineColor?: string; /** - * Sets the thickness of line connecting indexLabel with its corresponding dataPoint. It is only applicable for pie and doughnut chart when indexLabelPlacement is set to "outside". - * Default: 2 - * Example: 4, 6 - */ - indexLabelLineThickness?: string; + * Sets the thickness of line connecting indexLabel with its corresponding dataPoint. + * It is only applicable for pie and doughnut chart when indexLabelPlacement is set to "outside". + * Default: 2 + * Example: 4, 6 + */ + indexLabelLineThickness?: number; /** - * Default Tooltip can be modified at dataSeries or dataPoint level. You can add content to be displayed in toolTip using toolTipContent. toolTipContent set at dataPoint will override toolTipContent set at dataSeries level. - * Default: auto set depending on chart type. - */ + * Default Tooltip can be modified at dataSeries or dataPoint level. You can add content to be displayed in toolTip using toolTipContent. + * toolTipContent set at dataPoint will override toolTipContent set at dataSeries level. + * Default: auto set depending on chart type. + */ toolTipContent?: string; /** - * Sets marker type to be rendered at each dataPoint. While markers are helpful in highlighting individual dataPoints, they do not help much when the dataPoints are crowded. In case of large number of dataPoints it is recommended to disable markers in order to improve the appearance and performance of chart. - * Same marker type is also used in legend unless overridden by legendMarkerType property. - * Default: "circle" - * Options: "none", "circle", "square", "triangle" and "cross" - */ + * Sets marker type to be rendered at each dataPoint. While markers are helpful in highlighting individual dataPoints, they do not help much when the dataPoints are crowded. + * In case of large number of dataPoints it is recommended to disable markers in order to improve the appearance and performance of chart. + * Same marker type is also used in legend unless overridden by legendMarkerType property. + * Default: "circle" + * Options: "none", "circle", "square", "triangle" and "cross" + */ markerType?: string; /** - * Sets the color of marker that is displayed on the Chart. Legend Marker for the series uses the same Color as set here unless overridden using legendMarkerColor property. - * Default: dataSeries Color - * Example: "red", "#008000" .. - */ + * Sets the color of marker that is displayed on the Chart. Legend Marker for the series uses the same Color as set here unless overridden using legendMarkerColor property. + * Default: dataSeries Color + * Example: "red", "#008000" .. + */ markerColor?: string; /** - * Sets the Size of the marker that is drawn. To display marker in area Chart, set markerSize to a value greater than zero. For line, scatter chart, size it is automatically set unless overridden. - * Default: auto. Zero for area chart - * Example: 5, 10.. - */ + * Sets the Size of the marker that is drawn. To display marker in area Chart, set markerSize to a value greater than zero. + * For line, scatter chart, size it is automatically set unless overridden. + * Default: auto. Zero for area chart + * Example: 5, 10.. + */ markerSize?: number; /** - * Sets the border color around marker. Value of markerBorderColor can be "HTML Color Name" or "hex code". - * Default: dataSeries color. - * Example: "red", "#008000" .. - */ + * Sets the border color around marker. Value of markerBorderColor can be "HTML Color Name" or "hex code". + * Default: dataSeries color. + * Example: "red", "#008000" .. + */ markerBorderColor?: string; /** - * Sets the thickness of the Marker’s Border in pixels. - * Default: 1 - * Example: 2,4 .. - */ + * Sets the thickness of the Marker’s Border in pixels. + * Default: 1 + * Example: 2,4 .. + */ markerBorderThickness?: number; /** - * Sets the text that describes the dataSeries in legend. - * Default: "DataSeries 1", "DataSeries 2" ..etc - * Example: "2010", "2011".. - */ + * Sets the text that describes the dataSeries in legend. + * Default: "DataSeries 1", "DataSeries 2" ..etc + * Example: "2010", "2011".. + */ legendText?: string; /** - * Sets the Legend Marker to one of the options below. This property is used to override the default marker in legend, which is same as dataSeries Marker Type. - * Default: same as markerType - * Options: "circle", "square", "cross" and "triangle" - */ + * Sets the Legend Marker to one of the options below. This property is used to override the default marker in legend, which is same as dataSeries Marker Type. + * Default: same as markerType + * Options: "circle", "square", "cross" and "triangle" + */ legendMarkerType?: string; /** - * Sets the click event handler for dataSeries which is triggered when user clicks on a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null - */ - click?: (event: ChartEvent) => void; - /** - * Sets the color of marker that is displayed on legend. This property overrides default Marker’s Color in Legend, which is same as dataSeries Marker Color. Value of legendMarkerColor can be "HTML Color Name" or "hex code". - * Default: dataSeries marker color - * Example: "red", "#008000" .. - */ + * Sets the color of marker that is displayed on legend. This property overrides default Marker’s Color in Legend, which is same as dataSeries Marker Color. + * Value of legendMarkerColor can be "HTML Color Name" or "hex code". + * Default: dataSeries marker color + * Example: "red", "#008000" .. + */ legendMarkerColor?: string; /** - * Sets the mouseover event handler for dataSeries which is triggered when user moves Mouse Over a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null - */ + * Sets the border color around the legend marker. Value of legendMarkerBorderColor can be “color names” or “hex code”. + * Default: dataSeries color. + * Example: “red”, “#008000” .. + */ + legendMarkerBorderColor?: string; + /** + * Sets the thickness of the legend’s Marker Border in pixels. + * Default: 0 + * Example: 2, 4 .. + */ + legendMarkerBorderThickness?: number; + /** + * Sets the click event handler for dataSeries which is triggered when user clicks on a dataSeries. + * Upon event, a parameter that contains event related data is sent to the assigned event handler. + * Parameter includes dataPoint and dataSeries corresponding to the event. + * Default: null + */ + click?: (event: ChartEvent) => void; + /** + * Sets the mouseover event handler for dataSeries which is triggered when user moves Mouse Over a dataSeries. + * Upon event, a parameter that contains event related data is sent to the assigned event handler. + * Parameter includes dataPoint and dataSeries corresponding to the event. + * Default: null + */ mouseover?: (event: ChartEvent) => void; /** - * Sets the mousemove event handler for dataSeries which is triggered when user Moves mouse on a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null - */ + * Sets the mousemove event handler for dataSeries which is triggered when user Moves mouse on a dataSeries. + * Upon event, a parameter that contains event related data is sent to the assigned event handler. + * Parameter includes dataPoint and dataSeries corresponding to the event. + * Default: null + */ mousemove?: (event: ChartEvent) => void; /** - * Sets the mouseout event handler for dataSeries which is triggered when user moves mouse out of a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null - */ + * Sets the mouseout event handler for dataSeries which is triggered when user moves mouse out of a dataSeries. + * Upon event, a parameter that contains event related data is sent to the assigned event handler. + * Parameter includes dataPoint and dataSeries corresponding to the event. + * Default: null + */ mouseout?: (event: ChartEvent) => void; } - interface ChartDataOptions extends ChartDataCommon { + class ChartDataSeriesOptions extends ChartDataCommon { /** - * Sets the visibility of dataSeries. Data Series is visible by default and you can hide the same by setting visible property to false. - * Default: true - * Example: true, false - */ + * Sets the visibility of dataSeries. Data Series is visible by default and you can hide the same by setting visible property to false. + * Default: true + * Example: true, false + */ visible?: boolean; /** - * Sets the type of chart to be rendered for corresponding dataSeries. One can choose from the following options. - * Default: "column" - * Options: - * "line" - * "column" - * "bar" - * "area" - * "spline" - * "splineArea" - * "stepLine" - * "scatter" - * "bubble" - * "stackedColumn" - * "stackedBar" - * "stackedArea" - * "stackedColumn100" - * "stackedBar100" - * "stackedArea100" - * "pie" - * "doughnut" - */ + * Sets the type of chart to be rendered for corresponding dataSeries. One can choose from the following options. + * Default: "column" + * Options: + * "line" + * "column" + * "bar" + * "area" + * "spline" + * "splineArea" + * "stepLine" + * "scatter" + * "bubble" + * "stackedColumn" + * "stackedBar" + * "stackedArea" + * "stackedColumn100" + * "stackedBar100" + * "stackedArea100" + * "pie" + * "doughnut" + */ type?: string; /** - * Setting axisYType lets you choose between primary and secondary Y Axis for a dataSeries to plot against. By choosing "secondary" Axis you can plot the series against axisY2. - * In case of Multi-Series or Combinational Charts, one can assign primary axis to some series and secondary axis to other series. - * This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against primary Y axis. - * Default: "primary" - * Options: "primary", "secondary" - */ + * Setting axisXType lets you choose between primary and secondary X Axis for a dataSeries to plot against. By choosing “secondary” Axis you can plot the series against axisX2. + * In case of Multi-Series or Combinational Charts, one can assign primary axis to some series and secondary axis to other series. + * This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against primary X axis. + */ + axisXType?: string; + /** + * Setting axisYType lets you choose between primary and secondary Y Axis for a dataSeries to plot against. By choosing "secondary" Axis you can plot the series against axisY2. + * In case of Multi-Series or Combinational Charts, one can assign primary axis to some series and secondary axis to other series. + * This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against primary Y axis. + * Default: "primary" + * Options: "primary", "secondary" + */ axisYType?: string; /** - * This defines the data type of x values. Data Type is normally figured out by default based on the object type that is assigned to x. But if you are providing time stamp (which is integer) values instead of Date objects, you’ll have to explicitly set the xValueType to "dateTime". - * Default: Automatically Calculated - * Options: "number", "dateTime" - */ + * Setting axisXIndex lets you choose to which X axis the dataSeries should be attached. + * In case of Multi-Series or Combinational Charts, one can assign some series to first X axis and rest to another axis. + * This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against first axis. + */ + axisXIndex?: number; + /** + * Setting axisYIndex lets you choose to which Y axis the dataSeries should be attached to. + * In case of Multi-Series or Combinational Charts, one can assign some series to first Y axis and rest to another axis. + * This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against first axis. + */ + axisYIndex?: number; + /** + * This defines the data type of x values. Data Type is normally figured out by default based on the object type that is assigned to x. + * But if you are providing time stamp (which is integer) values instead of Date objects, you’ll have to explicitly set the xValueType to "dateTime". + * Default: Automatically Calculated + * Options: "number", "dateTime" + */ xValueType?: string; /** - * Defines how y axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property. - */ + * Defines how y axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property. + */ yValueFormatString?: string; /** - * Defines how x axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property. - */ + * Defines how x axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property. + */ xValueFormatString?: string; /** - * Defines how z values is formatted before they appear on the indexLabel or toolTip. You can format numbers using this property. - */ + * Defines how z values is formatted before they appear on the indexLabel or toolTip. You can format numbers using this property. + */ zValueFormatString?: string; /** - * Sets the bevel property, which creates a chiselled effect at the corners of a Column Charts and Bar Charts. - * Default: "true" - * Example: "true", "false" - */ + * Defines how percent values are formatted before they appear on the indexLabel or toolTip. You can format percent values using this property. + */ + percentFormatString?: string; + /** + * Sets the bevel property, which creates a chiselled effect at the corners of a Column Charts and Bar Charts. + * Default: "true" + * Example: "true", "false" + */ bevelEnabled?: boolean; /** - * Sets opacity of the filled color. - * Default: .7 for Area Charts and 1 for all other chart types. - */ + * Sets opacity of the filled color. + * Default: .7 for Area Charts and 1 for all other chart types. + */ fillOpacity?: number; /** - * Sets the starting Angle of the Pie or Doughnut Chart in degrees. - * Default: 0 - * Example: 30, 240, -100.. - */ + * Sets the starting Angle of the Pie or Doughnut Chart in degrees. + * Default: 0 + * Example: 30, 240, -100.. + */ startAngle?: number; /** - * Sets the thickness of line in line charts and area charts. - * Default: 2 - * Example: 3,4.. - */ + * innerRadius property allows you to set a Doughnut chart’s inner radius. + * Value can either be in pixels (number – ex: 100) or percent (string – ex: “80%”). Percent values are relative to the outer radius of doughnut chart. + * Default: “70%” + * Example: 200, 150, “90%”, “75%” + */ + innerRadius?: number | string; + /** + * radius property allows you to set the Pie/Doughnut chart’s (outer) radius. + * Value can either be in pixels (number – ex: 100) or percent (string – ex: “80%”). Percent values are relative to the plot area’s size. + * By default, a pie/doughnut chart’s size(radius) changes in order to best fit the indexLabels. This can lead to charts of different sizes in the same page. + * In order to override this behavior and set equal sizes to all pie/doughnut charts in a page, you can use radius property. + * Default: Automatically calculate in order to best fit the indexLabels. + * Example: 200, 150, “90%”, “75%” + */ + radius?: number | string; + /** + * Sets the thickness of line in line charts and area charts. + * Default: 2 + * Example: 3,4.. + */ lineThickness?: number; /** - * Setting this property to true makes the dataSeries to appear in legend. In case of pie/ doughnut chart, dataPoints of the single series chart appear in legend. - * Default: false - * Options: false, true - */ + * Setting this property to true makes the dataSeries to appear in legend. In case of pie/ doughnut chart, dataPoints of the single series chart appear in legend. + * Default: false + * Options: false, true + */ showInLegend?: boolean; /** - * In candle Stick chart, when Closing Price is greater than Opening price, the body is filled with white by default and it can be overridden by risingColor property. - * Default: "white" - * Options: "red", "#DD7E86", etc. - */ + * Enables or disables exploding of Pie/Doughnut segment on click. + * Default: true + * Options: false, true + */ + explodeOnClick?: boolean; + /** + * In candle Stick chart, when Closing Price is greater than Opening price, the body is filled with white by default and it can be overridden by risingColor property. + * Default: "white" + * Options: "red", "#DD7E86", etc. + */ risingColor?: string; /** - * It represents collection dataPoint inside dataSeries . - */ + * It represents collection dataPoint inside dataSeries. + */ dataPoints: ChartDataPoint[]; + /** + * By default, a line breaks wherever a null dataPoint (y = null) is present. + * You can change this behaviour to draw a line between adjacent non-null dataPoints by setting connectNullData to true. + * Default: false + * Example: true, false + */ + connectNullData?: boolean; + /** + * Sets the Line Dash Type of line wherever null data is present. + * Note: + * 1.Will effect only if connectNullData is set to true. + * 2.Supported with all Line and Area Charts. + * 3.Not Supported on IE8. + * Default: "dash" + * Supported Line Dash Types: + * “solid” + * “shortDash” + * “shortDot” + * “shortDashDot” + * “shortDashDotDot” + * "dot" + * “dash” + * “dashDot” + * “longDash” + * “longDashDot” + * “longDashDotDot” + */ + nullDataLineDashType?: string; + } + + class ChartDataSeries extends ChartDataSeriesOptions { + /** + * Returns the specified property of dataSeries + * @param propertyName Name of the property. + */ + get(propertyName: string): boolean | string | number | ChartDataPoint; + /** + * Sets the specified property of dataSeries. + * @param propertyName Name of the property. + * @param value value to be set on property. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + set(propertyName: string, value: boolean | string | number | ChartDataPoint, updateChart: boolean): void; + /** + * Adds a new element of given type to the specified array. For example, it can be used to add new dataPoint to datPoints array. + * @param propertyName Name of the property + * @param options Option for the new element + * @param index Index of the array where the new element is to be added. Defaults to the length (end) of array. + * @param updateChart When true, Updates the chart automatically after setting the value. Defaults to true. + */ + addTo(propertyName: string, options: ChartDataPoint, index?: number, updateChart?: boolean): void; + /** + * Removes specified dataSeries from data Array. + */ + remove(): void; } interface ChartDataPoint extends ChartDataCommon { /** - * Sets the x value. It determines the position of the dataPoint on X Axis. It can be numeric or a dateTime value. Values can be positive or Negative. - * Default: null - * Example: 10, 20, 30 .. - * new Date(2011, 08, 01) - */ - x?: any; + * Sets the x value. It determines the position of the dataPoint on X Axis. It can be numeric or a dateTime value. Values can be positive or Negative. + * If no x value is provided, they are automatically set sequentially starting from zero + * Default: null + * Example: 10, 20, 30 .. + * new Date(2011, 08, 01) + */ + x?: number | Date; /** - * Sets the y value of dataPoint. It determines the position of dataPoint on Y Axis. Values can be positive or Negative - * Default: null - * Example: 5, 20, -30 .. - */ - y?: number; + * Sets the y value of dataPoint. It determines the position of dataPoint on Y Axis. Values can be positive or Negative + * Default: null + * Example: 5, 20, -30 .. + */ + y?: number | null; /** - * Sets the z value of dataPoint. It is only applicable in case of Bubble chart. This value determines the size of the bubble. - * Default: 1 - * Example: 10, 20, 35.. - */ + * Sets the z value of dataPoint. It is only applicable in case of Bubble chart. This value determines the size of the bubble. + * Default: 1 + * Example: 10, 20, 35.. + */ z?: number; /** - * Sets label value of a dataPoint. The value appears next to the dataPoint on axisX Line. If not provided, it takes x value for label. - * Default: x value - * Example: "label1", "label2".. - */ + * Sets label value of a dataPoint. The value appears next to the dataPoint on axisX Line. If not provided, it takes x value for label. + * Default: x value + * Example: "label1", "label2".. + */ label?: string; /** - * Sets the exploded value of dataPoint. It is applicable only in case of Pie and Doughnut Charts. This property causes the Pie/Doughnut slice to separate out. - * Default: true - * Example: true, false - */ + * Sets the exploded value of dataPoint. It is applicable only in case of Pie and Doughnut Charts. This property causes the Pie/Doughnut slice to separate out. + * Default: true + * Example: true, false + */ exploded?: boolean; - /** - * Sets the color of marker that is displayed on legend. This property works only with Pie and Doughnut charts. Value of legendMarkerColor can be "HTML Color Name" or "hex" code. - * Default: dataSeries marker color - * Example: "red", "#008000".. - */ - legendMarkerColor?: string; } } +declare function CanvasJS(): void; +export = CanvasJS; +export as namespace CanvasJS; diff --git a/types/canvasjs/tsconfig.json b/types/canvasjs/tsconfig.json index 218036fa08..459ca95138 100644 --- a/types/canvasjs/tsconfig.json +++ b/types/canvasjs/tsconfig.json @@ -19,4 +19,4 @@ "index.d.ts", "canvasjs-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/canvasjs/tslint.json b/types/canvasjs/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/canvasjs/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 322fd6daf1047a44e8556a5e5f820a0fac63aec7 Mon Sep 17 00:00:00 2001 From: taoqf Date: Wed, 2 Aug 2017 18:13:10 -0500 Subject: [PATCH 040/166] fixed numjs typing bugs (#18515) * add type definition numjs * move ndtype from ndarry to numjs, remove unnecessary comments * remote jsdoc annotations * fixed: [#18508](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18508) * add temptype to tolist * fixed: merge Error. * add interface TouchEvent --- types/numjs/index.d.ts | 26 +++++++++++++------------- types/numjs/numjs-tests.ts | 2 ++ types/weixin-app/index.d.ts | 18 ++++++++++++++++++ 3 files changed, 33 insertions(+), 13 deletions(-) diff --git a/types/numjs/index.d.ts b/types/numjs/index.d.ts index af464b7410..e9712c912d 100644 --- a/types/numjs/index.d.ts +++ b/types/numjs/index.d.ts @@ -123,9 +123,9 @@ export interface NdArray extends BaseNdArray { * Converts {NdArray} to a native JavaScript {Array} * */ - tolist(): T[]; + tolist(): LT[]; - valueOf(): T[]; + valueOf(): LT[]; /** * Stringify the array to make it readable in the console, by a human. @@ -523,17 +523,17 @@ export namespace images { */ const moon: NdArray; } - function read(input: string): NdArray; - function save(img: NdArray, dest: string): void; - function resize(img: NdArray, height: number, width: number): NdArray; - function sat(img: NdArray): NdArray; - function ssat(img: NdArray): NdArray; - function sobel(img: NdArray): NdArray; - function scharr(img: NdArray): NdArray; - function areaSum(h0: number, w0: number, H: number, W: number, SAT: NdArray): number; - function areaValue(img: NdArray): number; - function rgb2gray(img: NdArray): NdArray; - function flip(img: NdArray): NdArray; + function read(input: string): NdArray; + function save(img: NdArray, dest: string): void; + function resize(img: NdArray, height: number, width: number): NdArray; + function sat(img: NdArray): NdArray; + function ssat(img: NdArray): NdArray; + function sobel(img: NdArray): NdArray; + function scharr(img: NdArray): NdArray; + function areaSum(h0: number, w0: number, H: number, W: number, SAT: NdArray): number; + function areaValue(img: NdArray): number; + function rgb2gray(img: NdArray): NdArray; + function flip(img: NdArray): NdArray; } export function array(arr: NjArray, dtype?: BaseNdArray.DataType): NdArray; diff --git a/types/numjs/numjs-tests.ts b/types/numjs/numjs-tests.ts index b13cf60fb0..2b82c1b16f 100644 --- a/types/numjs/numjs-tests.ts +++ b/types/numjs/numjs-tests.ts @@ -21,3 +21,5 @@ arr.transpose(1, 0, 2); const b = nj.array([2, 3, 4]); const c = nj.uint8([1, 2, 3]); + +const d = nj.array([[2], [3, 4]]); diff --git a/types/weixin-app/index.d.ts b/types/weixin-app/index.d.ts index 89110f06c6..6ee9f35e59 100644 --- a/types/weixin-app/index.d.ts +++ b/types/weixin-app/index.d.ts @@ -2137,6 +2137,24 @@ declare namespace wx { } } +declare namespace wx { + interface Touch { + identifier: number; + pageX: number; + pageY: number; + clientX: number; + clientY: number; + } + interface TouchEvent extends BaseEvent { + detail: { + x: number; + y: number; + }; + touches: Touch[]; + changedTouches: Touch[]; + } +} + declare var App: wx.AppConstructor; /** From de042124bd7a26a29ecd5f5917358b344f6dc978 Mon Sep 17 00:00:00 2001 From: Joscha Feth Date: Thu, 3 Aug 2017 13:26:10 +1000 Subject: [PATCH 041/166] fix: @storybook/addon-options: hierarchySeparator (#18253) * fix: @storybook/addon-options: hierarchySeparator * Update storybook__addon-options-tests.ts * Update index.d.ts * Update storybook__addon-options-tests.ts --- types/storybook__addon-options/index.d.ts | 3 ++- .../storybook__addon-options-tests.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/types/storybook__addon-options/index.d.ts b/types/storybook__addon-options/index.d.ts index b60230784b..2638cdab8d 100644 --- a/types/storybook__addon-options/index.d.ts +++ b/types/storybook__addon-options/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @storybook/addon-options 3.0 +// Type definitions for @storybook/addon-options 3.2 // Project: https://github.com/storybooks/storybook // Definitions by: Joscha Feth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -13,6 +13,7 @@ export interface Options { showSearchBox?: boolean; downPanelInRight?: boolean; sortStoriesByKind?: boolean; + hierarchySeparator?: RegExp | string; } export function setOptions(options: Options): void; diff --git a/types/storybook__addon-options/storybook__addon-options-tests.ts b/types/storybook__addon-options/storybook__addon-options-tests.ts index c4a53edf05..b88cf0504f 100644 --- a/types/storybook__addon-options/storybook__addon-options-tests.ts +++ b/types/storybook__addon-options/storybook__addon-options-tests.ts @@ -9,4 +9,9 @@ setOptions({ showSearchBox: false, downPanelInRight: false, sortStoriesByKind: false, + hierarchySeparator: /\//, +}); + +setOptions({ + hierarchySeparator: '.', }); From 1ad787e3ed74294ca04002476680863eea5114d6 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 3 Aug 2017 18:13:56 +0200 Subject: [PATCH 042/166] [p-event] introduce typings (#18568) * [p-event] introduce typings * [p-event] extend tests * [p-all] add missing overload for direct filtering --- types/p-event/index.d.ts | 36 ++++++++++++++++++++ types/p-event/p-event-tests.ts | 61 ++++++++++++++++++++++++++++++++++ types/p-event/tsconfig.json | 23 +++++++++++++ types/p-event/tslint.json | 1 + 4 files changed, 121 insertions(+) create mode 100644 types/p-event/index.d.ts create mode 100644 types/p-event/p-event-tests.ts create mode 100644 types/p-event/tsconfig.json create mode 100644 types/p-event/tslint.json diff --git a/types/p-event/index.d.ts b/types/p-event/index.d.ts new file mode 100644 index 0000000000..0fde40d140 --- /dev/null +++ b/types/p-event/index.d.ts @@ -0,0 +1,36 @@ +// Type definitions for p-event 1.3 +// Project: https://github.com/sindresorhus/p-event#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export = pEvent; + +declare function pEvent(emitter: pEvent.Emitter, event: string | symbol, options: MultiArgsOptions): Promise>; +declare function pEvent(emitter: pEvent.Emitter, event: string | symbol, filter: FilterFn): Promise; +declare function pEvent(emitter: pEvent.Emitter, event: string | symbol, options?: pEvent.Options): Promise; + +declare namespace pEvent { + interface Emitter { + on?: AddRmListenerFn; + addListener?: AddRmListenerFn; + addEventListener?: AddRmListenerFn; + off?: AddRmListenerFn; + removeListener?: AddRmListenerFn; + removeEventListener?: AddRmListenerFn; + } + + interface Options { + rejectionEvents?: string[]; + multiArgs?: boolean; + timeout?: number; + filter?: FilterFn; + } +} + +type AddRmListenerFn = (event: string | symbol, listener: (arg1: T, ...args: TRest[]) => void) => void; +type FilterFn = (el: T) => boolean; + +interface MultiArgsOptions extends pEvent.Options { + multiArgs: true; +} diff --git a/types/p-event/p-event-tests.ts b/types/p-event/p-event-tests.ts new file mode 100644 index 0000000000..d963e22bed --- /dev/null +++ b/types/p-event/p-event-tests.ts @@ -0,0 +1,61 @@ +/// + +import pEvent = require('p-event'); +import * as events from 'events'; +import * as fs from 'fs'; + +class MyEmitter extends events.EventEmitter { +} + +class MyDomEmitter implements EventTarget { + addEventListener(type: 'foo', listener?: (event: Event) => void): void { + } + + dispatchEvent(event: Event): boolean { + return false; + } + + removeEventListener(type: 'foo', listener?: (event: Event) => void): void { + } +} + +pEvent(new MyEmitter(), 'finish') + .then(result => { + console.log(result); + }) + .catch(error => { + console.error(error); + }); + +pEvent(new MyEmitter(), 'finish').then(result => { + const str: string = result; +}); + +pEvent(new MyDomEmitter(), 'finish').then(result => { + const e: Event | undefined = result; +}); + +pEvent(document, 'DOMContentLoaded').then(() => { + console.log('😎'); +}); + +pEvent(new MyEmitter(), 'finish', {multiArgs: true}).then(result => { + const strArr: string[] = result; +}); + +pEvent(new MyEmitter(), '🦄', value => value > 3).then(result => { + const num: number = result; +}); + +async function getOpenReadStream(file: string) { + const stream = fs.createReadStream(file); + await pEvent(stream, 'open'); + return stream; +} + +getOpenReadStream('unicorn.txt') + .then(stream => { + console.log('Is readable:', stream.readable); + stream.pipe(process.stdout); + }) + .catch(console.error); diff --git a/types/p-event/tsconfig.json b/types/p-event/tsconfig.json new file mode 100644 index 0000000000..3d45d58840 --- /dev/null +++ b/types/p-event/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-event-tests.ts" + ] +} diff --git a/types/p-event/tslint.json b/types/p-event/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-event/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 2be68bbacd9d3c04f16990881ea90afc98d31f6b Mon Sep 17 00:00:00 2001 From: mntdn Date: Thu, 3 Aug 2017 17:43:09 +0100 Subject: [PATCH 043/166] [react-color] Type updates for the individual APIs (#18571) Update to the type definition of the individual APIs to reflect their specificity (adding of onSwatchHover for example) --- types/react-color/index.d.ts | 4 ++-- types/react-color/lib/components/block/Block.d.ts | 4 +++- types/react-color/lib/components/circle/Circle.d.ts | 5 ++++- types/react-color/lib/components/compact/Compact.d.ts | 3 ++- types/react-color/lib/components/github/Github.d.ts | 3 ++- types/react-color/lib/components/sketch/Sketch.d.ts | 3 ++- types/react-color/lib/components/swatches/Swatches.d.ts | 3 ++- types/react-color/lib/components/twitter/Twitter.d.ts | 9 +++++++-- 8 files changed, 24 insertions(+), 10 deletions(-) diff --git a/types/react-color/index.d.ts b/types/react-color/index.d.ts index f29529cc09..3739d3f9d1 100644 --- a/types/react-color/index.d.ts +++ b/types/react-color/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for react-color 2.11 +// Type definitions for react-color 2.13 // Project: https://github.com/casesandberg/react-color/ -// Definitions by: Karol Janyst , Marks Polakovs +// Definitions by: Karol Janyst , Marks Polakovs , Matthieu Montaudouin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-color/lib/components/block/Block.d.ts b/types/react-color/lib/components/block/Block.d.ts index 9b3633265b..e50b84c6ac 100644 --- a/types/react-color/lib/components/block/Block.d.ts +++ b/types/react-color/lib/components/block/Block.d.ts @@ -1,9 +1,11 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; export interface BlockPickerProps extends ColorPickerProps { colors?: string[]; width?: string; + triangle?: 'hide' | 'top'; + onSwatchHover?(color: Color, event: MouseEvent): void; } export default class BlockPicker extends Component {} diff --git a/types/react-color/lib/components/circle/Circle.d.ts b/types/react-color/lib/components/circle/Circle.d.ts index 045c5a93bb..5b9e79a0b4 100644 --- a/types/react-color/lib/components/circle/Circle.d.ts +++ b/types/react-color/lib/components/circle/Circle.d.ts @@ -1,9 +1,12 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; export interface CirclePickerProps extends ColorPickerProps { colors?: string[]; width?: string; + circleSize?: number; + circleSpacing?: number; + onSwatchHover?(color: Color, event: MouseEvent): void; } export default class CirclePicker extends Component {} diff --git a/types/react-color/lib/components/compact/Compact.d.ts b/types/react-color/lib/components/compact/Compact.d.ts index a661972a41..125f496f90 100644 --- a/types/react-color/lib/components/compact/Compact.d.ts +++ b/types/react-color/lib/components/compact/Compact.d.ts @@ -1,8 +1,9 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; export interface CompactPickerProps extends ColorPickerProps { colors?: string[]; + onSwatchHover?(color: Color, event: MouseEvent): void; } export default class CompactPicker extends Component {} diff --git a/types/react-color/lib/components/github/Github.d.ts b/types/react-color/lib/components/github/Github.d.ts index c4b6e7c27c..d0800c9740 100644 --- a/types/react-color/lib/components/github/Github.d.ts +++ b/types/react-color/lib/components/github/Github.d.ts @@ -1,10 +1,11 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; export interface GithubPickerProps extends ColorPickerProps { colors?: string[]; width?: string; triangle?: 'hide' | 'top-left' | 'top-right'; + onSwatchHover?(color: Color, event: MouseEvent): void; } export default class GithubPicker extends Component {} diff --git a/types/react-color/lib/components/sketch/Sketch.d.ts b/types/react-color/lib/components/sketch/Sketch.d.ts index 3a1ac6c3fe..6018674809 100644 --- a/types/react-color/lib/components/sketch/Sketch.d.ts +++ b/types/react-color/lib/components/sketch/Sketch.d.ts @@ -1,10 +1,11 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; export interface SketchPickerProps extends ColorPickerProps { disableAlpha?: boolean; presetColors?: string[]; width?: string; + onSwatchHover?(color: Color, event: MouseEvent): void; } export default class SketchPicker extends Component {} diff --git a/types/react-color/lib/components/swatches/Swatches.d.ts b/types/react-color/lib/components/swatches/Swatches.d.ts index d821fc7c3d..af3efb7652 100644 --- a/types/react-color/lib/components/swatches/Swatches.d.ts +++ b/types/react-color/lib/components/swatches/Swatches.d.ts @@ -1,10 +1,11 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; export interface SwatchesPickerProps extends ColorPickerProps { colors?: string[][]; height?: number; width?: number; + onSwatchHover?(color: Color, event: MouseEvent): void; } export default class SwatchesPicker extends Component {} diff --git a/types/react-color/lib/components/twitter/Twitter.d.ts b/types/react-color/lib/components/twitter/Twitter.d.ts index 84b53dbc7a..3c37ebb8f5 100644 --- a/types/react-color/lib/components/twitter/Twitter.d.ts +++ b/types/react-color/lib/components/twitter/Twitter.d.ts @@ -1,6 +1,11 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps, Color } from "react-color"; -export type TwitterPickerProps = ColorPickerProps; +export interface TwitterPickerProps extends ColorPickerProps { + colors?: string[]; + width?: string; + triangle?: 'hide' | 'top-left' | 'top-right'; + onSwatchHover?(color: Color, event: MouseEvent): void; +} export default class TwitterPicker extends Component {} From b7ffa4797db8a7bdeac55360985acfdd9b3b2b31 Mon Sep 17 00:00:00 2001 From: Sa-ryong Kang Date: Fri, 4 Aug 2017 01:45:11 +0900 Subject: [PATCH 044/166] [react-daum-postcode] bump js package version to 1.3.0 (#18555) * [react-daum-postcode] bump js package version to 1.3.0 * [react-daum-postcode] add default export * [react-daum-postcode] fix errors from CI * [react-daum-postcode] fix import --- types/react-daum-postcode/index.d.ts | 27 ++++++++++++++------------ types/react-daum-postcode/package.json | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/types/react-daum-postcode/index.d.ts b/types/react-daum-postcode/index.d.ts index d5256161f0..cd2713a459 100644 --- a/types/react-daum-postcode/index.d.ts +++ b/types/react-daum-postcode/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-daum-postcode 1.2 +// Type definitions for react-daum-postcode 1.3 // Project: https://github.com/kimminsik-bernard/react-daum-postcode // Definitions by: Sa-ryong Kang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,18 +6,21 @@ import { Component } from 'react'; -export interface DaumPostcodeProps { - onComplete?: any; - width?: any; - height?: any; - autoClose?: any; - autoResize?: any; - animation?: any; - style?: any; - defaultQuery?: any; - theme?: any; +export namespace DaumPostcode { + interface Props { + onComplete: any; + width?: number | string; + height?: number | string; + autoClose?: boolean; + autoResize?: boolean; + animation?: boolean; + style?: any; + defaultQuery?: string; + theme?: any; + scriptUrl?: string; + } } -export default class DaumPostcode extends Component { +export default class DaumPostcode extends Component { render(): JSX.Element; } diff --git a/types/react-daum-postcode/package.json b/types/react-daum-postcode/package.json index ea72a99f2c..54cf661ac8 100644 --- a/types/react-daum-postcode/package.json +++ b/types/react-daum-postcode/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "react-daum-postcode": "^1.2.1" + "react-daum-postcode": "^1.3.0" } } \ No newline at end of file From 6908279bc574232ba6aad12590f59cfc96cfa9a2 Mon Sep 17 00:00:00 2001 From: benny-medflyt Date: Thu, 3 Aug 2017 19:46:37 +0300 Subject: [PATCH 045/166] pg-connection-string fix (#18583) --- types/pg-connection-string/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/pg-connection-string/index.d.ts b/types/pg-connection-string/index.d.ts index bc2f8bafa5..fa79138728 100644 --- a/types/pg-connection-string/index.d.ts +++ b/types/pg-connection-string/index.d.ts @@ -6,8 +6,8 @@ export function parse(connectionString: string): { host: string; - database: string; - port: string; + database: string | null; + port: string | null; application_name?: string; client_encoding?: string; fallback_application_name?: string; From 567377968c0c3d249a45cd712fb9e60d0e2152bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Str=C3=B6mkvist?= Date: Thu, 3 Aug 2017 18:57:02 +0200 Subject: [PATCH 046/166] Use correct type for rc-tooltip's overlay (#18579) The previous type signature doesn't allow e.g. strings to be passed in, even though they're completely valid. --- types/rc-tooltip/index.d.ts | 3 ++- types/rc-tooltip/rc-tooltip-tests.tsx | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/types/rc-tooltip/index.d.ts b/types/rc-tooltip/index.d.ts index 84068dd920..c24f0018fd 100644 --- a/types/rc-tooltip/index.d.ts +++ b/types/rc-tooltip/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for rc-tooltip v3.4.2 // Project: https://github.com/react-component/tooltip // Definitions by: rhysd +// ahstro // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -26,7 +27,7 @@ declare namespace Tooltip { placement?: Placement | Object; align?: Object; onPopupAlign?: (popupDomNode: Element, align: Object) => void; - overlay: React.ReactElement | (() => React.ReactElement); + overlay: React.ReactNode; arrowContent?: React.ReactNode; getTooltipContainer?: () => Element; destroyTooltipOnHide?: boolean; diff --git a/types/rc-tooltip/rc-tooltip-tests.tsx b/types/rc-tooltip/rc-tooltip-tests.tsx index 751ffc43ec..832a292e97 100644 --- a/types/rc-tooltip/rc-tooltip-tests.tsx +++ b/types/rc-tooltip/rc-tooltip-tests.tsx @@ -9,6 +9,13 @@ ReactDOM.render( document.querySelector('.app') ); +ReactDOM.render( + + hover + , + document.querySelector('.app') +); + ReactDOM.render( Date: Thu, 3 Aug 2017 12:02:53 -0500 Subject: [PATCH 047/166] [Google-Cloud/Storage] fix GCS types to work at runtime (#18430) * fix GCS types to work. We don't export a constructor, instead we export a namespace + function combo that works * fix build break * fix another build issue: * fix tslint errors * address review notes by @ento --- types/google-cloud__storage/bucket.d.ts | 100 --- types/google-cloud__storage/channel.d.ts | 15 - types/google-cloud__storage/file.d.ts | 95 --- .../google-cloud__storage-tests.ts | 666 +++++++++--------- types/google-cloud__storage/index.d.ts | 341 ++++++++- types/google-cloud__storage/storage.d.ts | 136 ---- types/google-cloud__storage/tsconfig.json | 4 +- 7 files changed, 672 insertions(+), 685 deletions(-) delete mode 100644 types/google-cloud__storage/bucket.d.ts delete mode 100644 types/google-cloud__storage/channel.d.ts delete mode 100644 types/google-cloud__storage/file.d.ts delete mode 100644 types/google-cloud__storage/storage.d.ts diff --git a/types/google-cloud__storage/bucket.d.ts b/types/google-cloud__storage/bucket.d.ts deleted file mode 100644 index 75829380cf..0000000000 --- a/types/google-cloud__storage/bucket.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { ReadStream } from "fs"; -import { Channel, ChannelConfig } from "./channel"; -import { File } from "./file"; -import { - Acl, - ApiResponse, - UploadOptions -} from "./storage"; - -/** - * A bucket in the cloud. - */ -export class Bucket { - acl: Acl; - combine(sources: string[] | File[], destination: string [] | File[]): Promise<[File, ApiResponse]>; - create(config?: BucketConfig): Promise<[Bucket, ApiResponse]>; - createChannel(id: string, config: ChannelConfig): Promise<[Channel, ApiResponse]>; - delete(): Promise<[ApiResponse]>; - deleteFiles(query?: BucketQuery): Promise; - exists(): Promise<[boolean]>; - file(name: string, options?: BucketFileOptions): File; - get(options?: BucketGetOptions): Promise<[Bucket, ApiResponse]>; - getFiles(query?: BucketQuery): Promise<[File[]]>; - getFilesStream(query?: BucketQuery): ReadStream; - getMetadata(): Promise<[BucketMetadata, ApiResponse]>; - id: string; - makePrivate(options?: BucketPrivacyOptions): Promise<[File[]]>; - makePublic(options?: BucketPrivacyOptions): Promise<[File[]]>; - metadata: BucketMetadata; - name: string; - setMetadata(metadata?: BucketMetadata): Promise<[ApiResponse]>; - upload(localPath: string, options?: UploadOptions): Promise<[File]>; -} - -/** - * Bucket configuration. - */ -export interface BucketConfig { - coldline?: boolean; - dra?: boolean; - location?: string; - multiRegional?: boolean; - nearline?: boolean; - regional?: boolean; - versioning?: { - enabled?: boolean - }; -} - -/** - * Options for getting a file. - */ -export interface BucketFileOptions { - generation?: string | number; -} - -/** - * Options for getting a bucket. - */ -export interface BucketGetOptions { - autoCreate?: boolean; -} - -/** - * Bucket metadata. - */ -export interface BucketMetadata { - etag?: string; - id?: string; - kind?: string; - location?: string; - metageneration?: string; - name?: string; - projectNumber?: string; - selfLink?: string; - storageClass?: string; - timeCreated?: string; - updated?: string; -} - -/** - * The options for making the bucket private. - */ -export interface BucketPrivacyOptions { - includeFiles?: boolean; - force?: boolean; -} - -/** - * Query a bucket. - */ -export interface BucketQuery { - autoPaginate?: boolean; - delimiter?: string; - prefix?: string; - maxApiCalls?: number; - maxResults?: number; - pageToken?: string; - versions?: boolean; -} \ No newline at end of file diff --git a/types/google-cloud__storage/channel.d.ts b/types/google-cloud__storage/channel.d.ts deleted file mode 100644 index ede6d73e3d..0000000000 --- a/types/google-cloud__storage/channel.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ApiResponse } from "./storage"; - -/** - * This class allows you interact with Google Cloud Storage. - */ -export class Channel { - stop(): Promise<[ApiResponse]>; -} - -/** - * Channel configuration. - */ -export interface ChannelConfig { - address: string; -} diff --git a/types/google-cloud__storage/file.d.ts b/types/google-cloud__storage/file.d.ts deleted file mode 100644 index bc212d3786..0000000000 --- a/types/google-cloud__storage/file.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { ReadStream, WriteStream } from "fs"; -import { Bucket } from "./bucket"; -import { - Acl, - ApiResponse, - DownloadOptions, - ReadStreamOptions, - UploadOptions, - WriteStreamOptions -} from "./storage"; - -/** - * Options for specifying the content length range. - */ -export interface ContentLengthRange { - max?: number; - min?: number; -} - -/** - * A file in the cloud. - */ -export class File { - acl: Acl; - copy(destination: string | Bucket | File): Promise<[File, ApiResponse]>; - createReadStream(options?: ReadStreamOptions): ReadStream; - createWriteStream(options?: WriteStreamOptions): WriteStream; - delete(): Promise<[ApiResponse]>; - download(options?: DownloadOptions): Promise<[string]>; - exists(): Promise<[boolean]>; - get(): Promise<[File, ApiResponse]>; - getMetadata(): Promise<[FileMetadata, ApiResponse]>; - getSignedPolicy(options?: SignedPolicyOptions): Promise<[SignedPolicy]>; - getSignedUrl(config?: SignedUrlConfig): Promise<[string]>; - makePrivate(options?: FilePrivateOptions): Promise<[ApiResponse]>; - makePublic(): Promise<[ApiResponse]>; - move(destination: string | Bucket | File): Promise<[File, ApiResponse]>; - name: string; - save(data: string, options?: WriteStreamOptions): Promise; - setEncryptionKey(encryptionKey: string | Buffer): File; - setMetadata(metadata: FileMetadata): Promise<[ApiResponse]>; -} - -/** - * File metadata. - */ -export interface FileMetadata { - contentType?: string; -} - -/** - * Options when setting the file as private. - */ -export interface FilePrivateOptions { - strict?: boolean; -} - -/** - * A signed policy allowing a user to upload a file with a POST. - */ -export interface SignedPolicy { - base64?: string; - signature?: string; - string?: string; -} - -/** - * Options when obtaining the signed policy. - */ -export interface SignedPolicyOptions { - acl?: string; - contentLengthRange?: ContentLengthRange; - equals?: string[] | [string[]]; - expires?: number | string; - max?: number; - min?: number; - startsWith?: string[] | [string[]]; - successRedirect?: string; - successStatus?: string; -} - -/** - * Options when obtaining a temporary signed URL for a file. - */ -export interface SignedUrlConfig { - action: string; - cname?: string; - contentMd5?: string; - contentType?: string; - expires?: number | string; - extensionHeaders?: {[key: string]: string}; - promptSaveAs?: string; - responseDisposition?: string; - responseType?: string; -} diff --git a/types/google-cloud__storage/google-cloud__storage-tests.ts b/types/google-cloud__storage/google-cloud__storage-tests.ts index a301aa063c..b46b4766a1 100644 --- a/types/google-cloud__storage/google-cloud__storage-tests.ts +++ b/types/google-cloud__storage/google-cloud__storage-tests.ts @@ -3,83 +3,83 @@ import * as fs from "fs"; // import Google Cloud Storage import { - Acl, - Bucket, - Channel, - File, - ApiResponse, - BucketConfig, - BucketFileOptions, - BucketGetOptions, - BucketMetadata, - BucketPrivacyOptions, - BucketQuery, - ChannelConfig, - DownloadOptions, - FileMetadata, - FilePrivateOptions, - ReadStreamOptions, - SignedPolicy, - SignedPolicyOptions, - SignedUrlConfig, - WriteStreamOptions, - UploadOptions, - Storage + Acl, + Bucket, + Channel, + File, + ApiResponse, + BucketConfig, + BucketFileOptions, + BucketGetOptions, + BucketMetadata, + BucketPrivacyOptions, + BucketQuery, + ChannelConfig, + DownloadOptions, + FileMetadata, + FilePrivateOptions, + ReadStreamOptions, + SignedPolicy, + SignedPolicyOptions, + SignedUrlConfig, + WriteStreamOptions, + UploadOptions } from "@google-cloud/storage"; +import * as CloudStorage from "@google-cloud/storage"; /** * Test the storage service. * @class TestStorage */ export class TestStorage { - // constants - static BUCKET_CONFIG: BucketConfig = { - multiRegional: true - }; + // constants + static BUCKET_CONFIG: BucketConfig = { + multiRegional: true + }; - // import Storage class - static gcs: Storage = new Storage(); + // import Storage class + static gcs = CloudStorage(); - // the bucket - private buckets: Bucket[] = []; + // the bucket + private buckets: Bucket[] = []; - /** - * @constructor - */ - constructor() { - // nothing to do - } + /** + * @constructor + */ + constructor() { + // nothing to do + } - /** - * Returns the bucket. - * @method bucket - * @param {string} name - * @return {Bucket} - */ - bucket(name: string): Bucket { - return TestStorage.gcs.bucket(name); - } + /** + * Returns the bucket. + * @method bucket + * @param {string} name + * @return {Bucket} + */ + bucket(name: string): Bucket { + return TestStorage.gcs.bucket(name); + } - /** - * Create a new bucket. - * @param {string} name - * @param {BucketConfig} metadata - * @return {Promise<[Bucket, ApiResponse]>} - */ - createBucket(name: string, config?: BucketConfig): Promise<[Bucket, ApiResponse]> { - // overwrite default values with custom config - config = Object.assign(TestStorage.BUCKET_CONFIG, config); + /** + * Create a new bucket. + * @param {string} name + * @param {BucketConfig} metadata + * @return {Promise<[Bucket, ApiResponse]>} + */ + createBucket(name: string, config?: BucketConfig): Promise<[Bucket, ApiResponse]> { + // overwrite default values with custom config + config = Object.assign(TestStorage.BUCKET_CONFIG, config); - return TestStorage.gcs.createBucket(name, config); - } + return TestStorage.gcs.createBucket(name, config); + } - /** - * Query for buckets. - * @param {BucketQuery} query - */ - getBuckets(query?: BucketQuery): Promise<[Bucket[]]> { - return TestStorage.gcs.getBuckets(query); - } + /** + * Query for buckets. + * @param {BucketQuery} query + */ + getBuckets(query?: BucketQuery): Promise<[Bucket[]]> { + return TestStorage.gcs.getBuckets(query); + } } /** @@ -87,143 +87,143 @@ export class TestStorage { * @class TestBucket */ export class TestBucket { - // the bucket in the cloud - bucket: Bucket; + // the bucket in the cloud + bucket: Bucket; - /** - * Create a bucket. - * @param {BucketConfig} config - * @return {Promise<[Bucket, ApiResponse]>} - */ - create(config?: BucketConfig): Promise<[Bucket, ApiResponse]> { - return this.bucket.create(config); - } + /** + * Create a bucket. + * @param {BucketConfig} config + * @return {Promise<[Bucket, ApiResponse]>} + */ + create(config?: BucketConfig): Promise<[Bucket, ApiResponse]> { + return this.bucket.create(config); + } - /** - * Create a channel that will be notified when objects in this bucket changes. - * @method createChannel - * @param {string} id - * @param {ChannelConfig} config - * @return {Promise<[Channel, ApiResponse]>} - */ - createChannel(id: string, config: ChannelConfig): Promise<[Channel, ApiResponse]> { - return this.bucket.createChannel(id, config); - } + /** + * Create a channel that will be notified when objects in this bucket changes. + * @method createChannel + * @param {string} id + * @param {ChannelConfig} config + * @return {Promise<[Channel, ApiResponse]>} + */ + createChannel(id: string, config: ChannelConfig): Promise<[Channel, ApiResponse]> { + return this.bucket.createChannel(id, config); + } - /** - * Delete the bucket. - * @method delete - * @return {Promise<[ApiResponse]>} - */ - delete(): Promise<[ApiResponse]> { - return this.bucket.delete(); - } + /** + * Delete the bucket. + * @method delete + * @return {Promise<[ApiResponse]>} + */ + delete(): Promise<[ApiResponse]> { + return this.bucket.delete(); + } - /** - * Iterate over the bucket's files, calling file.delete() on each. - * @method deleteFiles - * @return {Promise} - */ - deleteFiles(query?: BucketQuery): Promise { - return this.bucket.deleteFiles(query); - } + /** + * Iterate over the bucket's files, calling file.delete() on each. + * @method deleteFiles + * @return {Promise} + */ + deleteFiles(query?: BucketQuery): Promise { + return this.bucket.deleteFiles(query); + } - /** - * Check if the bucket exists. - * @method exists - * @return {Promise<[boolean]>} - */ - exists(): Promise<[boolean]> { - return this.bucket.exists(); - } + /** + * Check if the bucket exists. + * @method exists + * @return {Promise<[boolean]>} + */ + exists(): Promise<[boolean]> { + return this.bucket.exists(); + } - /** - * Create a File object. - * @method file - * @param {string} name - * @param {BucketFileOptions} options - */ - file(name: string, options?: BucketFileOptions): File { - return this.bucket.file(name); - } + /** + * Create a File object. + * @method file + * @param {string} name + * @param {BucketFileOptions} options + */ + file(name: string, options?: BucketFileOptions): File { + return this.bucket.file(name); + } - /** - * Get a bucket if it exists. - * @method get - * @param {BucketGetOptions} options - */ - get(options?: BucketGetOptions): Promise<[Bucket, ApiResponse]> { - return this.bucket.get(options); - } + /** + * Get a bucket if it exists. + * @method get + * @param {BucketGetOptions} options + */ + get(options?: BucketGetOptions): Promise<[Bucket, ApiResponse]> { + return this.bucket.get(options); + } - /** - * Get File objects for the files currently in the bucket - * @method getFiles - * @param {BucketQuery} query - * @return {Promise<[File[]]>} - */ - getFiles(query?: BucketQuery): Promise<[File[]]> { - return this.bucket.getFiles(query); - } + /** + * Get File objects for the files currently in the bucket + * @method getFiles + * @param {BucketQuery} query + * @return {Promise<[File[]]>} + */ + getFiles(query?: BucketQuery): Promise<[File[]]> { + return this.bucket.getFiles(query); + } - /** - * Get File objects for the files currently in the bucket as a readable object stream. - * @method getFilesStream - * @param {BucketQuery} query - * @return {ReadStream} - */ - getFilesStream(query?: BucketQuery): fs.ReadStream { - return this.bucket.getFilesStream(query); - } + /** + * Get File objects for the files currently in the bucket as a readable object stream. + * @method getFilesStream + * @param {BucketQuery} query + * @return {ReadStream} + */ + getFilesStream(query?: BucketQuery): fs.ReadStream { + return this.bucket.getFilesStream(query); + } - /** - * Get the bucket's metadata. - * @method getMetadata - * @return {Promise<[BucketMetadata, ApiResponse]>} - */ - getMetadata(): Promise<[BucketMetadata, ApiResponse]> { - return this.bucket.getMetadata(); - } + /** + * Get the bucket's metadata. + * @method getMetadata + * @return {Promise<[BucketMetadata, ApiResponse]>} + */ + getMetadata(): Promise<[BucketMetadata, ApiResponse]> { + return this.bucket.getMetadata(); + } - /** - * Make the bucket listing private. - * @method makePrivate - * @param {} options - * @return Promise<[File[]]> - */ - makePrivate(options?: BucketPrivacyOptions): Promise<[File[]]> { - return this.bucket.makePrivate(options); - } + /** + * Make the bucket listing private. + * @method makePrivate + * @param {} options + * @return Promise<[File[]]> + */ + makePrivate(options?: BucketPrivacyOptions): Promise<[File[]]> { + return this.bucket.makePrivate(options); + } - /** - * Make the bucket publicly readable. - * @method makePublic - * @param {} options - * @return Promise<[File[]]> - */ - makePublic(options?: BucketPrivacyOptions): Promise<[File[]]> { - return this.bucket.makePublic(options); - } + /** + * Make the bucket publicly readable. + * @method makePublic + * @param {} options + * @return Promise<[File[]]> + */ + makePublic(options?: BucketPrivacyOptions): Promise<[File[]]> { + return this.bucket.makePublic(options); + } - /** - * Set the bucket's metadata. - * @method setMetadata - * @param {BucketMetadata} metadata - * @return {Promise<[ApiResponse]>} - */ - setMetadata(metadata?: BucketMetadata): Promise<[ApiResponse]> { - return this.bucket.setMetadata(metadata); - } + /** + * Set the bucket's metadata. + * @method setMetadata + * @param {BucketMetadata} metadata + * @return {Promise<[ApiResponse]>} + */ + setMetadata(metadata?: BucketMetadata): Promise<[ApiResponse]> { + return this.bucket.setMetadata(metadata); + } - /** - * Upload a file. - * @method upload - * @param {localPath} string - * @param {UploadOptions} options - */ - upload(localPath: string, options?: UploadOptions): Promise<[File]> { - return this.bucket.upload(localPath, options); - } + /** + * Upload a file. + * @method upload + * @param {localPath} string + * @param {UploadOptions} options + */ + upload(localPath: string, options?: UploadOptions): Promise<[File]> { + return this.bucket.upload(localPath, options); + } } /** @@ -231,168 +231,168 @@ export class TestBucket { * @class TestFile */ export class TestFile { - // the file in the cloud - file: File; + // the file in the cloud + file: File; - /** - * Copy this file to another file. - * By default, this will copy the file to the same bucket, but you can choose to copy it to another - * Bucket by providing a Bucket or File object or a URL starting with "gs:// ". - * @method copy - * @param {string} destination - * @return Promise<[File, ApiResponse]> - */ + /** + * Copy this file to another file. + * By default, this will copy the file to the same bucket, but you can choose to copy it to another + * Bucket by providing a Bucket or File object or a URL starting with "gs:// ". + * @method copy + * @param {string} destination + * @return Promise<[File, ApiResponse]> + */ - copy(destination: string | Bucket | File): Promise<[File, ApiResponse]> { - return this.file.copy(destination); - } + copy(destination: string | Bucket | File): Promise<[File, ApiResponse]> { + return this.file.copy(destination); + } - /** - * Create a readable stream to read the contents of the remote file. - * It can be piped to a writable stream or listened to for 'data' events to read a file's contents. - * @method createReadStream - * @param {ReadStreamOptions} options - * @return {ReadStream} - */ - createReadStream(options?: ReadStreamOptions): fs.ReadStream { - return this.file.createReadStream(options); - } + /** + * Create a readable stream to read the contents of the remote file. + * It can be piped to a writable stream or listened to for 'data' events to read a file's contents. + * @method createReadStream + * @param {ReadStreamOptions} options + * @return {ReadStream} + */ + createReadStream(options?: ReadStreamOptions): fs.ReadStream { + return this.file.createReadStream(options); + } - /** - * Create a writable stream to overwrite the contents of the file in your bucket. - * @method createWriteStream - * @param {WriteStreamOptions} options - * @return {WriteStream} - */ - createWriteStream(options?: WriteStreamOptions): fs.WriteStream { - return this.file.createWriteStream(options); - } + /** + * Create a writable stream to overwrite the contents of the file in your bucket. + * @method createWriteStream + * @param {WriteStreamOptions} options + * @return {WriteStream} + */ + createWriteStream(options?: WriteStreamOptions): fs.WriteStream { + return this.file.createWriteStream(options); + } - /** - * Delete the file. - * @method delete - * @return {Promise<[ApiResponse]>} - */ - delete(): Promise<[ApiResponse]> { - return this.file.delete(); - } + /** + * Delete the file. + * @method delete + * @return {Promise<[ApiResponse]>} + */ + delete(): Promise<[ApiResponse]> { + return this.file.delete(); + } - /** - * Convenience method to download a file into memory or to a local destination. - * @method download - * @param {DownloadOptions} options - * @return {Promise<[string]>} - */ - download(options?: DownloadOptions): Promise<[string]> { - return this.file.download(options); - } + /** + * Convenience method to download a file into memory or to a local destination. + * @method download + * @param {DownloadOptions} options + * @return {Promise<[string]>} + */ + download(options?: DownloadOptions): Promise<[string]> { + return this.file.download(options); + } - /** - * Check if the file exists. - * @method exists - * @return {Promise<[boolean]>} - */ - exists(): Promise<[boolean]> { - return this.file.exists(); - } + /** + * Check if the file exists. + * @method exists + * @return {Promise<[boolean]>} + */ + exists(): Promise<[boolean]> { + return this.file.exists(); + } - /** - * Get a file object and its metadata if it exists. - * @method get - * @return {Promise<[File, ApiResponse]>} - */ - get(): Promise<[File, ApiResponse]> { - return this.file.get(); - } + /** + * Get a file object and its metadata if it exists. + * @method get + * @return {Promise<[File, ApiResponse]>} + */ + get(): Promise<[File, ApiResponse]> { + return this.file.get(); + } - /** - * Get the file's metadata. - * @method getMetadata - * @return {Promise<[FileMetadata, ApiResponse]>} - */ - getMetadata(): Promise<[FileMetadata, ApiResponse]> { - return this.file.getMetadata(); - } + /** + * Get the file's metadata. + * @method getMetadata + * @return {Promise<[FileMetadata, ApiResponse]>} + */ + getMetadata(): Promise<[FileMetadata, ApiResponse]> { + return this.file.getMetadata(); + } - /** - * Get a signed policy document to allow a user to upload data with a POST request - * @method getSignedPolicy - * @param {SignedPolicyOptions} options - * @return {Promise<[SignedPolicy]>} - */ - getSignedPolicy(options?: SignedPolicyOptions): Promise<[SignedPolicy]> { - return this.file.getSignedPolicy(options); - } + /** + * Get a signed policy document to allow a user to upload data with a POST request + * @method getSignedPolicy + * @param {SignedPolicyOptions} options + * @return {Promise<[SignedPolicy]>} + */ + getSignedPolicy(options?: SignedPolicyOptions): Promise<[SignedPolicy]> { + return this.file.getSignedPolicy(options); + } - /** - * Get a signed URL to allow limited time access to the file - * @method getSignedUrl - * @param {SignedUrlConfig} config - * @return {Promise<[string]>} - */ - getSignedUrl(config?: SignedUrlConfig): Promise<[string]> { - return this.file.getSignedUrl(config); - } + /** + * Get a signed URL to allow limited time access to the file + * @method getSignedUrl + * @param {SignedUrlConfig} config + * @return {Promise<[string]>} + */ + getSignedUrl(config?: SignedUrlConfig): Promise<[string]> { + return this.file.getSignedUrl(config); + } - /** - * Make a file private to the project and remove all other permissions. - * @method makePrivate - * @param {FilePrivateOptions} options - * @return {Promise<[ApiResponse]>} - */ - makePrivate(options?: FilePrivateOptions): Promise<[ApiResponse]> { - return this.file.makePrivate(options); - } + /** + * Make a file private to the project and remove all other permissions. + * @method makePrivate + * @param {FilePrivateOptions} options + * @return {Promise<[ApiResponse]>} + */ + makePrivate(options?: FilePrivateOptions): Promise<[ApiResponse]> { + return this.file.makePrivate(options); + } - /** - * Set a file to be publicly readable and maintain all previous permissions. - * @method makePublic - * @return {Promise<[ApiResponse]>} - */ - makePublic(): Promise<[ApiResponse]> { - return this.file.makePublic(); - } + /** + * Set a file to be publicly readable and maintain all previous permissions. + * @method makePublic + * @return {Promise<[ApiResponse]>} + */ + makePublic(): Promise<[ApiResponse]> { + return this.file.makePublic(); + } - /** - * Move this file to another location. - * By default, this will move the file to the same bucket, but you can choose to move it to - * another Bucket by providing a Bucket or File object or a URL beginning with "gs:// ". - * @method move - * @param {string|Bucket|File} destination - * @return {Promise<[File, ApiResponse]>} - */ - move(destination: string | Bucket | File): Promise<[File, ApiResponse]> { - return this.file.move(destination); - } + /** + * Move this file to another location. + * By default, this will move the file to the same bucket, but you can choose to move it to + * another Bucket by providing a Bucket or File object or a URL beginning with "gs:// ". + * @method move + * @param {string|Bucket|File} destination + * @return {Promise<[File, ApiResponse]>} + */ + move(destination: string | Bucket | File): Promise<[File, ApiResponse]> { + return this.file.move(destination); + } - /** - * Write arbitrary data to a file. - * @param {string} data - * @param {WriteStreamOptions} options - * @return {Promise} - */ - save(data: string, options?: WriteStreamOptions): Promise { - return this.file.save(data); - } + /** + * Write arbitrary data to a file. + * @param {string} data + * @param {WriteStreamOptions} options + * @return {Promise} + */ + save(data: string, options?: WriteStreamOptions): Promise { + return this.file.save(data); + } - /** - * The Storage API allows you to use a custom key for server-side encryption. - * @param {string|Buffer} encryptionKey - * @return {File} - */ - setEncryptionKey(encryptionKey: string | Buffer): File { - return this.file.setEncryptionKey(encryptionKey); - } + /** + * The Storage API allows you to use a custom key for server-side encryption. + * @param {string|Buffer} encryptionKey + * @return {File} + */ + setEncryptionKey(encryptionKey: string | Buffer): File { + return this.file.setEncryptionKey(encryptionKey); + } - /** - * Merge the given metadata with the current remote file's metadata. - * This will set metadata if it was previously unset or update previously set metadata. - * To unset previously set metadata, set its value to null. - * @method setMetadata - * @param {FileMetadata} metadata - * @return {Promise<[ApiResponse]>} - */ - setMetadata(metadata: FileMetadata): Promise<[ApiResponse]> { - return this.file.setMetadata(metadata); - } + /** + * Merge the given metadata with the current remote file's metadata. + * This will set metadata if it was previously unset or update previously set metadata. + * To unset previously set metadata, set its value to null. + * @method setMetadata + * @param {FileMetadata} metadata + * @return {Promise<[ApiResponse]>} + */ + setMetadata(metadata: FileMetadata): Promise<[ApiResponse]> { + return this.file.setMetadata(metadata); + } } diff --git a/types/google-cloud__storage/index.d.ts b/types/google-cloud__storage/index.d.ts index 6141f8ee6b..dcea17e5d4 100644 --- a/types/google-cloud__storage/index.d.ts +++ b/types/google-cloud__storage/index.d.ts @@ -5,7 +5,340 @@ /// -export * from "./bucket"; -export * from "./channel"; -export * from "./file"; -export * from "./storage"; +import { ReadStream, WriteStream } from "fs"; + +type PromiseLibrary = () => PromiseLike; + +declare namespace Storage { + /** + * A bucket in the cloud. + */ + class Bucket { + constructor(storage: Storage, name: string); + acl: Storage.Acl; + combine(sources: string[] | File[], destination: string[] | File[]): Promise<[File, Storage.ApiResponse]>; + create(config?: BucketConfig): Promise<[Bucket, Storage.ApiResponse]>; + createChannel(id: string, config: ChannelConfig): Promise<[Channel, Storage.ApiResponse]>; + delete(): Promise<[Storage.ApiResponse]>; + deleteFiles(query?: BucketQuery): Promise; + exists(): Promise<[boolean]>; + file(name: string, options?: BucketFileOptions): File; + get(options?: BucketGetOptions): Promise<[Bucket, Storage.ApiResponse]>; + getFiles(query?: BucketQuery): Promise<[File[]]>; + getFilesStream(query?: BucketQuery): ReadStream; + getMetadata(): Promise<[BucketMetadata, Storage.ApiResponse]>; + id: string; + makePrivate(options?: BucketPrivacyOptions): Promise<[File[]]>; + makePublic(options?: BucketPrivacyOptions): Promise<[File[]]>; + metadata: BucketMetadata; + name: string; + setMetadata(metadata?: BucketMetadata): Promise<[Storage.ApiResponse]>; + upload(localPath: string, options?: Storage.UploadOptions): Promise<[File]>; + } + + /** + * Bucket configuration. + */ + interface BucketConfig { + coldline?: boolean; + dra?: boolean; + location?: string; + multiRegional?: boolean; + nearline?: boolean; + regional?: boolean; + versioning?: { + enabled?: boolean + }; + } + + /** + * Options for getting a file. + */ + interface BucketFileOptions { + generation?: string | number; + } + + /** + * Options for getting a bucket. + */ + interface BucketGetOptions { + autoCreate?: boolean; + } + + /** + * Bucket metadata. + */ + interface BucketMetadata { + etag?: string; + id?: string; + kind?: string; + location?: string; + metageneration?: string; + name?: string; + projectNumber?: string; + selfLink?: string; + storageClass?: string; + timeCreated?: string; + updated?: string; + } + + /** + * The options for making the bucket private. + */ + interface BucketPrivacyOptions { + includeFiles?: boolean; + force?: boolean; + } + + /** + * Query a bucket. + */ + interface BucketQuery { + autoPaginate?: boolean; + delimiter?: string; + prefix?: string; + maxApiCalls?: number; + maxResults?: number; + pageToken?: string; + versions?: boolean; + } + + /** + * Options for specifying the content length range. + */ + interface ContentLengthRange { + max?: number; + min?: number; + } + + /** + * A file in the cloud. + */ + class File { + constructor(bucket: Bucket, name: string, options?: BucketFileOptions); + acl: Acl; + copy(destination: string | Bucket | File): Promise<[File, ApiResponse]>; + createReadStream(options?: ReadStreamOptions): ReadStream; + createWriteStream(options?: WriteStreamOptions): WriteStream; + delete(): Promise<[ApiResponse]>; + download(options?: DownloadOptions): Promise<[Buffer]>; + exists(): Promise<[boolean]>; + get(): Promise<[File, ApiResponse]>; + getMetadata(): Promise<[FileMetadata, ApiResponse]>; + getSignedPolicy(options?: SignedPolicyOptions): Promise<[SignedPolicy]>; + getSignedUrl(config?: SignedUrlConfig): Promise<[string]>; + makePrivate(options?: FilePrivateOptions): Promise<[ApiResponse]>; + makePublic(): Promise<[ApiResponse]>; + move(destination: string | Bucket | File): Promise<[File, ApiResponse]>; + name: string; + save(data: string, options?: WriteStreamOptions): Promise; + setEncryptionKey(encryptionKey: string | Buffer): File; + setMetadata(metadata: FileMetadata): Promise<[ApiResponse]>; + metadata?: FileMetadata; + } + + /** + * File metadata. + */ + interface FileMetadata { + contentType?: string; + } + + /** + * Options when setting the file as private. + */ + interface FilePrivateOptions { + strict?: boolean; + } + + /** + * A signed policy allowing a user to upload a file with a POST. + */ + interface SignedPolicy { + base64?: string; + signature?: string; + string?: string; + } + + /** + * Options when obtaining the signed policy. + */ + interface SignedPolicyOptions { + acl?: string; + contentLengthRange?: ContentLengthRange; + equals?: string[] | [string[]]; + expires?: number | string; + max?: number; + min?: number; + startsWith?: string[] | [string[]]; + successRedirect?: string; + successStatus?: string; + } + + /** + * Options when obtaining a temporary signed URL for a file. + */ + interface SignedUrlConfig { + action: string; + cname?: string; + contentMd5?: string; + contentType?: string; + expires?: number | string; + extensionHeaders?: { [key: string]: string }; + promptSaveAs?: string; + responseDisposition?: string; + responseType?: string; + } + + /** + * Access control list for storage buckets and files. + */ + interface Acl extends AclActions { + default: AclEntity; + owners: AclEntity; + readers: AclEntity; + writers: AclEntity; + } + + /** + * Actions that can be performed on all ACL entities, including the root Acl. + */ + interface AclActions { + add(options: AclOptions): Promise<[Acl, ApiResponse]>; + delete(options: AclOptions): Promise<[Acl, ApiResponse]>; + get(options: AclOptions): Promise<[Acl, ApiResponse]>; + update(options: AclOptions): Promise<[Acl, ApiResponse]>; + } + + /** + * An object of convenience methods to add or delete reader ACL permissions for a given entity. + */ + interface AclEntity extends AclActions { + addAllAuthenticatedUsers(): Promise<[Acl, ApiResponse]>; + addAllUsers(): Promise<[Acl, ApiResponse]>; + addDomain(entity: string): Promise<[Acl, ApiResponse]>; + addGroup(entity: string): Promise<[Acl, ApiResponse]>; + addProject(entity: string): Promise<[Acl, ApiResponse]>; + addUser(entity: string): Promise<[Acl, ApiResponse]>; + deleteAllAuthenticatedUsers(): Promise<[Acl, ApiResponse]>; + deleteAllUsers(): Promise<[Acl, ApiResponse]>; + deleteDomain(entity: string): Promise<[Acl, ApiResponse]>; + deleteGroup(entity: string): Promise<[Acl, ApiResponse]>; + deleteProject(entity: string): Promise<[Acl, ApiResponse]>; + deleteUser(entity: string): Promise<[Acl, ApiResponse]>; + } + + /** + * ACL options. + */ + interface AclOptions { + entity?: string; + role?: string; + generation?: number; + } + + /** + * The response object. + */ + interface ApiResponse { + etag?: string; + id?: string; + kind?: string; + location?: string; + metageneration?: string; + name?: string; + projectNumber?: string; + selfLink?: string; + storageClass?: string; + timeCreated?: string; + updated?: string; + } + + interface Credentials { + client_email?: string; + private_key?: string; + } + + interface ConfigurationObject { + autoRetry?: boolean; + credentials?: Credentials; + email?: string; + keyFilename?: string; + maxRetries?: number; + projectId?: string; + promise?: PromiseLibrary; + } + + /** + * The options when downloading a file. + */ + interface DownloadOptions extends ReadStreamOptions { + destination?: string; + } + + /** + * Options when reading a file stream. + */ + interface ReadStreamOptions { + end?: number; + start?: number; + validation?: string | boolean; + } + + /** + * Options when uploading file to bucket. + */ + interface UploadOptions extends WriteStreamOptions { + destination?: string; + } + + /** + * Options when writing to a file stream. + */ + interface WriteStreamOptions { + gzip?: boolean; + metadata?: FileMetadata; + offset?: number; + predefinedAcl?: string; + private?: boolean; + public?: boolean; + resumable?: boolean; + uri?: string; + validation?: string | boolean; + } + + /** + * The Storage class allows you interact with Google Cloud Storage. + */ + class Storage { + constructor(config?: ConfigurationObject); + acl: Acl; + bucket(name: string | Bucket): Bucket; + channel(id: string, resourceId: string): Channel; + createBucket(name: string, metadata?: BucketConfig): Promise<[Bucket, ApiResponse]>; + getBuckets(query?: BucketQuery): Promise<[Bucket[]]>; + getBucketsStream(query?: BucketQuery): Promise<[ReadStream]>; + Channel: (storage: Storage, id: string, resourceId: string) => Channel; + File: (bucket: Bucket, name: string, opts: BucketFileOptions) => File; + Bucket: (storage: Storage, name: string) => Bucket; + } + + /** + * This class allows you interact with Google Cloud Storage. + */ + class Channel { + constructor(storage: Storage, id: string, resourceId: string); + stop(): Promise<[Storage.ApiResponse]>; + } + + /** + * Channel configuration. + */ + interface ChannelConfig { + address: string; + } +} + +declare function Storage(config?: Storage.ConfigurationObject): Storage.Storage; + +export = Storage; diff --git a/types/google-cloud__storage/storage.d.ts b/types/google-cloud__storage/storage.d.ts deleted file mode 100644 index 34cbb3bef2..0000000000 --- a/types/google-cloud__storage/storage.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { ReadStream } from "fs"; -import { Bucket, BucketConfig, BucketQuery } from "./bucket"; -import { Channel } from "./channel"; -import { FileMetadata } from "./file"; - -/** - * Access control list for storage buckets and files. - */ -export class Acl extends AclActions { - default: AclEntity; - owners: AclEntity; - readers: AclEntity; - writers: AclEntity; -} - -/** - * Actions that can be performed on all ACL entities, including the root Acl. - */ -export class AclActions { - add(options: AclOptions): Promise<[Acl, ApiResponse]>; - delete(options: AclOptions): Promise<[Acl, ApiResponse]>; - get(options: AclOptions): Promise<[Acl, ApiResponse]>; - update(options: AclOptions): Promise<[Acl, ApiResponse]>; -} - -/** - * An object of convenience methods to add or delete reader ACL permissions for a given entity. - */ -export class AclEntity extends AclActions { - addAllAuthenticatedUsers(): Promise<[Acl, ApiResponse]>; - addAllUsers(): Promise<[Acl, ApiResponse]>; - addDomain(entity: string): Promise<[Acl, ApiResponse]>; - addGroup(entity: string): Promise<[Acl, ApiResponse]>; - addProject(entity: string): Promise<[Acl, ApiResponse]>; - addUser(entity: string): Promise<[Acl, ApiResponse]>; - deleteAllAuthenticatedUsers(): Promise<[Acl, ApiResponse]>; - deleteAllUsers(): Promise<[Acl, ApiResponse]>; - deleteDomain(entity: string): Promise<[Acl, ApiResponse]>; - deleteGroup(entity: string): Promise<[Acl, ApiResponse]>; - deleteProject(entity: string): Promise<[Acl, ApiResponse]>; - deleteUser(entity: string): Promise<[Acl, ApiResponse]>; -} - -/** - * ACL options. - */ -export interface AclOptions { - entity?: string; - role?: string; - generation?: number; -} - -/** - * The response object. - */ -export interface ApiResponse { - etag?: string; - id?: string; - kind?: string; - location?: string; - metageneration?: string; - name?: string; - projectNumber?: string; - selfLink?: string; - storageClass?: string; - timeCreated?: string; - updated?: string; -} - -export interface Credentials { - client_email?: string; - private_key?: string; -} - -export interface ConfigurationObject { - autoRetry?: boolean; - credentials?: Credentials; - email?: string; - keyFilename?: string; - maxRetries?: number; - projectId?: string; - promise?: PromiseLibrary; -} - -/** - * The options when downloading a file. - */ -export interface DownloadOptions extends ReadStreamOptions { - destination?: string; -} - -/** - * Options when reading a file stream. - */ -export interface ReadStreamOptions { - end?: number; - start?: number; - validation?: string | boolean; -} - -/** - * Options when uploading file to bucket. - */ -export interface UploadOptions extends WriteStreamOptions { - destination?: string; -} - -/** - * Options when writing to a file stream. - */ -export interface WriteStreamOptions { - gzip?: boolean; - metadata?: FileMetadata; - offset?: number; - predefinedAcl?: string; - private?: boolean; - public?: boolean; - resumable?: boolean; - uri?: string; - validation?: string | boolean; -} - -/** - * The Storage class allows you interact with Google Cloud Storage. - */ - export class Storage { - constructor(options?: ConfigurationObject); - acl: Acl; - bucket(name: string|Bucket): Bucket; - channel(id: string, resourceId: string): Channel; - createBucket(name: string, metadata?: BucketConfig): Promise<[Bucket, ApiResponse]>; - getBuckets(query?: BucketQuery): Promise<[Bucket[]]>; - getBucketsStream(query?: BucketQuery): Promise<[ReadStream]>; -} - -export type PromiseLibrary = () => PromiseLike; diff --git a/types/google-cloud__storage/tsconfig.json b/types/google-cloud__storage/tsconfig.json index 1495f211db..f579440bb8 100644 --- a/types/google-cloud__storage/tsconfig.json +++ b/types/google-cloud__storage/tsconfig.json @@ -11,10 +11,10 @@ "typeRoots": [ "../" ], + "types" : [], "paths":{ "@google-cloud/storage": ["google-cloud__storage"] }, - "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, @@ -22,4 +22,4 @@ "index.d.ts", "google-cloud__storage-tests.ts" ] -} \ No newline at end of file +} From d23d058d30ceb4342dab3776e52b6624d42503c5 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Thu, 3 Aug 2017 19:03:54 +0200 Subject: [PATCH 048/166] Updated FinishedRequest interface. Fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18576 (#18601) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/chai-http/chai-http-tests.ts | 8 +++++++- types/chai-http/index.d.ts | 10 ++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/types/chai-http/chai-http-tests.ts b/types/chai-http/chai-http-tests.ts index 83e434f9e1..c9c80c31ed 100644 --- a/types/chai-http/chai-http-tests.ts +++ b/types/chai-http/chai-http-tests.ts @@ -39,7 +39,7 @@ chai.request(app) chai.request(app) .get('/search') - .query({name: 'foo', limit: 10}); + .query({ name: 'foo', limit: 10 }); chai.request(app) .put('/user/me') @@ -98,3 +98,9 @@ function test1() { } when(chai.request(app).get('/')).done(() => console.log('success'), () => console.log('failure')); + +Promise.resolve(1) + .then(val => chai.request(app).get(`/user/${val}`)) + .then(res => { + chai.expect(res).to.have.status(200); + }); diff --git a/types/chai-http/index.d.ts b/types/chai-http/index.d.ts index 88ab7f8b84..5b09d7fd28 100644 --- a/types/chai-http/index.d.ts +++ b/types/chai-http/index.d.ts @@ -1,8 +1,10 @@ // Type definitions for chai-http 3.0 // Project: https://github.com/chaijs/chai-http // Definitions by: Wim Looman -// Liam Jones +// Liam Jones +// Federico Caselli // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 /// /// @@ -60,9 +62,9 @@ declare global { end(callback?: (err: any, res: Response) => void): FinishedRequest; } - interface FinishedRequest { - then(success?: (res: Response) => void, failure?: (err: any) => void): FinishedRequest; - catch(failure?: (err: any) => void): FinishedRequest; + interface FinishedRequest{ + then(success?: (res: T) => TR1 | PromiseLike, failure?: (err: any) => TR2 | PromiseLike): FinishedRequest; + catch(failure?: (err: any) => void): FinishedRequest; } interface Agent { From 49404d9c0381f7562753c5a0a62ea986a16571e3 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Thu, 3 Aug 2017 19:18:06 +0200 Subject: [PATCH 049/166] Binding functions may return undefined for babel-traverse (#18486) --- types/babel-traverse/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/babel-traverse/index.d.ts b/types/babel-traverse/index.d.ts index bf92ae899f..01f00c75c8 100644 --- a/types/babel-traverse/index.d.ts +++ b/types/babel-traverse/index.d.ts @@ -98,9 +98,9 @@ export class Scope { bindingIdentifierEquals(name: string, node: Node): boolean; - getBinding(name: string): Binding; + getBinding(name: string): Binding | undefined; - getOwnBinding(name: string): Binding; + getOwnBinding(name: string): Binding | undefined; getBindingIdentifier(name: string): t.Identifier; From 42af8aa75a02f93c12d9fea523a49495290f53bd Mon Sep 17 00:00:00 2001 From: Alan Savage Date: Thu, 3 Aug 2017 22:36:53 +0100 Subject: [PATCH 050/166] Add typings for createTransport with smtp connection url (#18608) * Add function to createTransport which takes a SMTP connection url * Corrected issue with file in wrong directory. * Add supporting test Add test for createTransporter with smtp connection url * Add additional unit test Test the override with the options parameter --- types/nodemailer/index.d.ts | 6 +++++- types/nodemailer/nodemailer-tests.ts | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/types/nodemailer/index.d.ts b/types/nodemailer/index.d.ts index 1b745ed08c..cbaa9b8228 100644 --- a/types/nodemailer/index.d.ts +++ b/types/nodemailer/index.d.ts @@ -63,10 +63,14 @@ export declare function createTransport(options?: directTransport.DirectOptions, * Create an SMTP transporter */ export declare function createTransport(options?: smtpTransport.SmtpOptions, defaults?: Object): Transporter; +/** + * Create an SMTP transporter using a connection url + */ +export declare function createTransport(connectionUrl: string, defaults?: Object): Transporter; /** * Create an AWS SES transporter */ -export declare function createTransport(options?: sesTransport.SesOptions, defaults?: Object): Transporter +export declare function createTransport(options?: sesTransport.SesOptions, defaults?: Object): Transporter; /** * Create a transporter from a given implementation */ diff --git a/types/nodemailer/nodemailer-tests.ts b/types/nodemailer/nodemailer-tests.ts index 2552b9696d..cd26579189 100644 --- a/types/nodemailer/nodemailer-tests.ts +++ b/types/nodemailer/nodemailer-tests.ts @@ -10,6 +10,18 @@ var transporter: nodemailer.Transporter = nodemailer.createTransport({ } }); +// create reusable transporter object using SMTP connection url using default options +transporter = nodemailer.createTransport("smtps://gmail.user@gmail.com:userpass@gmail/?pool=true"); + +// create reusable transporter object using SMTP connection url and specify some options +transporter = nodemailer.createTransport("smtps://gmail.user@gmail.com:userpass@gmail/?pool=true", + { + from: 'sender@address', + headers: { + 'My-Awesome-Header': '123' + } + }); + // create reusable transporter object using SES transport and set default values for mail options. transporter = nodemailer.createTransport({ SES: new AWS.SES() From 7883111a5bafd9b17ebe0735576ab67965bdd37b Mon Sep 17 00:00:00 2001 From: Philip Johnson Date: Thu, 3 Aug 2017 14:37:23 -0700 Subject: [PATCH 051/166] [angular-material] Adds missing methods `openFrom`, `closeTo`, and `multiple` to the IPresetDialog interface (#18611) * Adds `openFrom`, `closeTo`, and `multiple` to IPresetDialog interface * Fixes tab spacing --- types/angular-material/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/angular-material/index.d.ts b/types/angular-material/index.d.ts index 58e1ae5dd6..36a43329f6 100644 --- a/types/angular-material/index.d.ts +++ b/types/angular-material/index.d.ts @@ -61,6 +61,9 @@ declare module 'angular' { controllerAs(controllerAs?: string): T; parent(parent?: string | Element | JQuery): T; // default: root node ariaLabel(ariaLabel: string): T; + openFrom(from: string | Element | Event | { top: number, left: number }): T; + closeTo(to: string | Element | { top: number, left: number }): T; + multiple(multiple: boolean): T; } // tslint:disable-next-line no-empty-interface From c9bd9cf538154169c9e61e179e0fd8d4d1ba2c26 Mon Sep 17 00:00:00 2001 From: Michael Haan Date: Thu, 3 Aug 2017 14:38:02 -0700 Subject: [PATCH 052/166] add on reconnect to KafkaClient (#18614) Signed-off-by: Michael Haan --- types/kafka-node/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/kafka-node/index.d.ts b/types/kafka-node/index.d.ts index 1a20c7f969..73ba5dd792 100644 --- a/types/kafka-node/index.d.ts +++ b/types/kafka-node/index.d.ts @@ -15,6 +15,7 @@ export class Client { export class KafkaClient extends Client { constructor(options?: KafkaClientOptions); on(eventName: "ready", cb: () => any): this; + on(eventName: "reconnect", cb: () => void): this; on(eventName: "error", cb: (error: any) => any): this; connect(): void; } From 57b59f6488568554245210a0115b1dbad7f61e43 Mon Sep 17 00:00:00 2001 From: cervengoc Date: Fri, 4 Aug 2017 14:47:49 +0200 Subject: [PATCH 053/166] Change Elements to Node where reasonable --- types/knockout/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/knockout/index.d.ts b/types/knockout/index.d.ts index 427b422b20..27e583722f 100644 --- a/types/knockout/index.d.ts +++ b/types/knockout/index.d.ts @@ -233,13 +233,13 @@ interface KnockoutUtils { ////////////////////////////////// domData: { - get (node: Element, key: string): any; + get(node: Node, key: string): any; - set (node: Element, key: string, value: any): void; + set(node: Node, key: string, value: any): void; - getAll(node: Element, createIfNotFound: boolean): any; + getAll(node: Node, createIfNotFound: boolean): any; - clear(node: Element): boolean; + clear(node: Node): boolean; }; ////////////////////////////////// @@ -247,11 +247,11 @@ interface KnockoutUtils { ////////////////////////////////// domNodeDisposal: { - addDisposeCallback(node: Element, callback: Function): void; + addDisposeCallback(node: Node, callback: Function): void; - removeDisposeCallback(node: Element, callback: Function): void; + removeDisposeCallback(node: Node, callback: Function): void; - cleanNode(node: Node): Element; + cleanNode(node: Node): Node; removeNode(node: Node): void; }; @@ -440,8 +440,8 @@ interface KnockoutStatic { isWriteableObservable(instance: any): instance is KnockoutObservable; isComputed(instance: any): instance is KnockoutComputed; dataFor(node: any): any; - removeNode(node: Element): void; - cleanNode(node: Element): Element; + removeNode(node: Node): void; + cleanNode(node: Node): Node; renderTemplate(template: Function, viewModel: any, options?: any, target?: any, renderMode?: any): any; renderTemplate(template: string, viewModel: any, options?: any, target?: any, renderMode?: any): any; unwrap(value: KnockoutObservable | T): T; From 28022c0fe8151ac5e8bb3d8f540db585f9a65e85 Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Fri, 4 Aug 2017 10:52:39 -0400 Subject: [PATCH 054/166] [jquery] `after()`, `append()`, `before()`, and `prepend()` should accept `JQuery`. --- types/jquery/index.d.ts | 16 ++++++++-------- types/jquery/jquery-tests.ts | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index 024dcc3ab8..d0e80de159 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -3017,7 +3017,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/after/} * @since 1.0 */ - after(...contents: Array | JQuery>): this; + after(...contents: Array | JQuery>): this; /** * Insert content, specified by the parameter, after each element in the set of matched elements. * @@ -3029,7 +3029,7 @@ interface JQuery extends Iterable * @since 1.4 * @since 1.10 */ - after(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + after(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; /** * Register a handler to be called when Ajax requests complete. This is an AjaxEvent. * @@ -3133,7 +3133,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/append/} * @since 1.0 */ - append(...contents: Array | JQuery>): this; + append(...contents: Array | JQuery>): this; /** * Insert content, specified by the parameter, to the end of each element in the set of matched elements. * @@ -3144,7 +3144,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/append/} * @since 1.4 */ - append(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + append(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; /** * Insert every element in the set of matched elements to the end of the target. * @@ -3191,7 +3191,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/before/} * @since 1.0 */ - before(...contents: Array | JQuery>): this; + before(...contents: Array | JQuery>): this; /** * Insert content, specified by the parameter, before each element in the set of matched elements. * @@ -3203,7 +3203,7 @@ interface JQuery extends Iterable * @since 1.4 * @since 1.10 */ - before(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + before(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; // [bind() overloads] https://github.com/jquery/api.jquery.com/issues/1048 /** * Attach a handler to an event for the elements. @@ -4595,7 +4595,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/prepend/} * @since 1.0 */ - prepend(...contents: Array | JQuery>): this; + prepend(...contents: Array | JQuery>): this; /** * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. * @@ -4606,7 +4606,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/prepend/} * @since 1.4 */ - prepend(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + prepend(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; /** * Insert every element in the set of matched elements to the beginning of the target. * diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index d223be9d5c..d81dd3b6f3 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -5130,7 +5130,7 @@ function JQuery() { function manipulation() { function after() { // $ExpectType JQuery - $('p').after('

', new Element(), new Text(), $('p'), [new Element(), new Text()]); + $('p').after('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); // $ExpectType JQuery $('p').after(function(index, html) { @@ -5189,13 +5189,13 @@ function JQuery() { // $ExpectType string html; - return $('p'); + return $('p').contents(); }); } function append() { // $ExpectType JQuery - $('p').append('

', new Element(), new Text(), $('p'), [new Element(), new Text()]); + $('p').append('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); // $ExpectType JQuery $('p').append(function(index, html) { @@ -5254,7 +5254,7 @@ function JQuery() { // $ExpectType string html; - return $('p'); + return $('p').contents(); }); // $ExpectType JQuery @@ -5263,7 +5263,7 @@ function JQuery() { function before() { // $ExpectType JQuery - $('p').before('

', new Element(), new Text(), $('p'), [new Element(), new Text()]); + $('p').before('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); // $ExpectType JQuery $('p').before(function(index, html) { @@ -5322,13 +5322,13 @@ function JQuery() { // $ExpectType string html; - return $('p'); + return $('p').contents(); }); } function prepend() { // $ExpectType JQuery - $('p').prepend('

', new Element(), new Text(), $('p'), [new Element(), new Text()]); + $('p').prepend('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); // $ExpectType JQuery $('p').prepend(function(index, html) { @@ -5387,7 +5387,7 @@ function JQuery() { // $ExpectType string html; - return $('p'); + return $('p').contents(); }); } From dd585495d9edef3ac30cb0283b6f0e83c60b171c Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Fri, 4 Aug 2017 23:52:20 +0200 Subject: [PATCH 055/166] [redlock] add typings for v3, enable linting & strictNullChecks --- types/redlock/index.d.ts | 50 +++++++++----- types/redlock/redlock-tests.ts | 109 +++++++++++++++++++++++------- types/redlock/tsconfig.json | 4 +- types/redlock/tslint.json | 1 + types/redlock/v2/index.d.ts | 64 ++++++++++++++++++ types/redlock/v2/redlock-tests.ts | 37 ++++++++++ types/redlock/v2/tsconfig.json | 25 +++++++ types/redlock/v2/tslint.json | 1 + 8 files changed, 248 insertions(+), 43 deletions(-) create mode 100644 types/redlock/tslint.json create mode 100644 types/redlock/v2/index.d.ts create mode 100644 types/redlock/v2/redlock-tests.ts create mode 100644 types/redlock/v2/tsconfig.json create mode 100644 types/redlock/v2/tslint.json diff --git a/types/redlock/index.d.ts b/types/redlock/index.d.ts index 1e00de6ed1..3cd1bf7d2e 100644 --- a/types/redlock/index.d.ts +++ b/types/redlock/index.d.ts @@ -1,24 +1,22 @@ -// Type definitions for Redlock +// Type definitions for redlock 3.0 // Project: https://github.com/mike-marcacci/node-redlock // Definitions by: Ilya Mochalov +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -import * as redis from 'redis'; import * as Promise from 'bluebird'; +import { EventEmitter } from 'events'; export = Redlock; declare namespace Redlock { - interface Callback { - (err: any, value?: T): void; - } + type Callback = (err: any, value?: T) => void; interface Lock { - redlock: Redlock; resource: string; - value: any; + value: string | null; expiration: number; unlock(callback?: Callback): Promise; @@ -30,30 +28,50 @@ declare namespace Redlock { driftFactor?: number; retryCount?: number; retryDelay?: number; + retryJitter?: number; + lockScript?(origLockScript: string): string; + unlockScript?(origUnlockScript: string): string; + extendScript?(origExtendScript: string): string; } - interface LockError extends Error { } + interface LockErrorConstructor { + new(message?: string): LockError; + (message?: string): LockError; + readonly prototype: LockError; + } + + interface LockError extends Error { + readonly name: 'LockError'; + } + + interface CompatibleRedisClient { + eval(args: any[], callback?: (err: Error | null, res: any) => void): any; + eval(...args: any[]): any; + } } -declare class Redlock { - LockError: Redlock.LockError; - +declare class Redlock extends EventEmitter { + LockError: Redlock.LockErrorConstructor; driftFactor: number; retryCount: number; retryDelay: number; + retryJitter: number; + servers: Redlock.CompatibleRedisClient[]; - servers: redis.RedisClient[]; - - constructor(clients: any[], options?: Redlock.Options); + constructor(clients: Redlock.CompatibleRedisClient[], options?: Redlock.Options); acquire(resource: string, ttl: number, callback?: Redlock.Callback): Promise; lock(resource: string, ttl: number, callback?: Redlock.Callback): Promise; - disposer(resource: string, ttl: number, errorHandler?: Redlock.Callback): any; // bluebird Disposer + disposer(resource: string, ttl: number, errorHandler?: Redlock.Callback): Promise.Disposer; release(lock: Redlock.Lock, callback?: Redlock.Callback): Promise; unlock(lock: Redlock.Lock, callback?: Redlock.Callback): Promise; extend(lock: Redlock.Lock, ttl: number, callback?: Redlock.Callback): Promise; - _lock(resource: string, value: string, ttl: number, callback?: Redlock.Callback): Promise; + + addListener(event: 'clientError', listener: (err: any) => void): this; + on(event: 'clientError', listener: (err: any) => void): this; + once(event: 'clientError', listener: (err: any) => void): this; + removeListener(event: 'clientError', listener: (err: any) => void): this; } diff --git a/types/redlock/redlock-tests.ts b/types/redlock/redlock-tests.ts index 3b2c8f25f7..8a36679fe7 100644 --- a/types/redlock/redlock-tests.ts +++ b/types/redlock/redlock-tests.ts @@ -1,38 +1,97 @@ -import * as Redlock from 'redlock'; -import { Callback as NodeifyCallback, Options, Lock } from 'redlock'; -import * as Promise from 'bluebird'; +import Redlock = require('redlock'); +import { Lock } from 'redlock'; import { RedisClient } from 'redis'; +import IoRedisClient = require('ioredis'); +import { using } from 'bluebird'; -let redlock: Redlock; -let client: RedisClient; -let lock: Lock; +let lock: Lock = {}; -redlock = new Redlock([client]); -redlock = new Redlock([client], { - driftFactor: 0.1, - retryCount: 2, - retryDelay: 3 +const client1 = new RedisClient({port: 6379, host: 'redis1.example.com'}); +const client2 = new RedisClient({port: 6379, host: 'redis2.example.com'}); +const client3 = new IoRedisClient({port: 6379, host: 'redis3.example.com'}); + +const redlock = new Redlock( + [client1, client2, client3], + { + driftFactor: 0.01, + retryCount: 10, + retryDelay: 200, + retryJitter: 200 + } +); + +redlock.on('clientError', (err) => { + console.error('A redis error has occurred:', err); }); -redlock.acquire('resource', 30).then((lock: Lock) => { }); -redlock.acquire('resource', 30, (err: any, lock: Lock) => { }); -redlock.lock('resource', 30).then((lock: Lock) => { }); -redlock.lock('resource', 30, (err: any, lock: Lock) => { }); +redlock.acquire('resource', 30).then((lock: Lock) => {}); +redlock.acquire('resource', 30, (err: any, lock: Lock) => {}); +redlock.lock('resource', 30).then((lock: Lock) => {}); +redlock.lock('resource', 30, (err: any, lock: Lock) => {}); -// There is currently no way to test the disposer as the bluebird typings does not -// expose the .using method. -// promise.using(redlock.disposer('resource', 30), (lock: Lock) => {}); +using(redlock.disposer('locks:account:322456', 1000, err => console.error(err)), (lock) => { + return Promise.resolve(); +}); +using(redlock.disposer('locks:account:322456', 1000, err => console.error(err)), (lock) => { + return lock.extend(1000).then((extended: Lock) => {}); +}); redlock.release(lock); -redlock.release(lock, (err: any) => { }); +redlock.release(lock, (err: any) => {}); redlock.unlock(lock); -redlock.unlock(lock, (err: any) => { }); +redlock.unlock(lock, (err: any) => {}); -redlock.extend(lock, 30).then((lock: Lock) => { }); -redlock.extend(lock, 30, (err: any, lock: Lock) => { }); +redlock.extend(lock, 30).then((lock: Lock) => {}); +redlock.extend(lock, 30, (err: any, lock: Lock) => {}); lock.unlock(); -lock.unlock((err) => { }); +lock.unlock((err) => {}); -lock.extend(30).then((lock: Lock) => { }); -lock.extend(30, (err: any, lock: Lock) => { }); +lock.extend(30).then((lock: Lock) => {}); +lock.extend(30, (err: any, lock: Lock) => {}); + +redlock.lock('locks:account:322456', 1000).then((lock) => { + return lock + .unlock() + .catch((err) => { + console.error(err); + }); +}); + +redlock.lock('locks:account:322456', 1000).then(lock => { + return lock + .extend(1000) + .then(lock => { + return lock + .unlock() + .catch(err => { + console.error(err); + }); + }); +}); + +redlock.lock('locks:account:322456', 1000, (err, lock) => { + if (err || !lock) { + } else { + lock.unlock(err => { + console.error(err); + }); + } +}); + +redlock.lock('locks:account:322456', 1000, (err, lock) => { + if (err || !lock) { + } else { + lock.extend(1000, (err, lock) => { + if (err || !lock) { + } else { + lock.unlock(); + } + }); + } +}); + +new Error() instanceof redlock.LockError; + +redlock.LockError.prototype; +const lockError: Redlock.LockError = new redlock.LockError(); diff --git a/types/redlock/tsconfig.json b/types/redlock/tsconfig.json index 827a006b43..dff5c324f6 100644 --- a/types/redlock/tsconfig.json +++ b/types/redlock/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "redlock-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/redlock/tslint.json b/types/redlock/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/redlock/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/redlock/v2/index.d.ts b/types/redlock/v2/index.d.ts new file mode 100644 index 0000000000..5ef9bb80c1 --- /dev/null +++ b/types/redlock/v2/index.d.ts @@ -0,0 +1,64 @@ +// Type definitions for redlock 2.x +// Project: https://github.com/mike-marcacci/node-redlock +// Definitions by: Ilya Mochalov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as redis from 'redis'; +import * as Promise from 'bluebird'; + +export = Redlock; + +declare namespace Redlock { + type Callback = (err: any, value?: T) => void; + + interface Lock { + redlock: Redlock; + resource: string; + value: any; + expiration: number; + + unlock(callback?: Callback): Promise; + + extend(ttl: number, callback?: Callback): Promise; + } + + interface Options { + driftFactor?: number; + retryCount?: number; + retryDelay?: number; + } + + interface LockErrorConstructor { + new(message?: string): LockError; + (message?: string): LockError; + readonly prototype: LockError; + } + + interface LockError extends Error { + readonly name: 'LockError'; + } +} + +declare class Redlock { + LockError: Redlock.LockErrorConstructor; + + driftFactor: number; + retryCount: number; + retryDelay: number; + + servers: redis.RedisClient[]; + + constructor(clients: any[], options?: Redlock.Options); + + acquire(resource: string, ttl: number, callback?: Redlock.Callback): Promise; + lock(resource: string, ttl: number, callback?: Redlock.Callback): Promise; + + disposer(resource: string, ttl: number, errorHandler?: Redlock.Callback): any; // bluebird Disposer + + release(lock: Redlock.Lock, callback?: Redlock.Callback): Promise; + unlock(lock: Redlock.Lock, callback?: Redlock.Callback): Promise; + + extend(lock: Redlock.Lock, ttl: number, callback?: Redlock.Callback): Promise; + _lock(resource: string, value: string, ttl: number, callback?: Redlock.Callback): Promise; +} diff --git a/types/redlock/v2/redlock-tests.ts b/types/redlock/v2/redlock-tests.ts new file mode 100644 index 0000000000..8b1c83c282 --- /dev/null +++ b/types/redlock/v2/redlock-tests.ts @@ -0,0 +1,37 @@ +import * as Redlock from 'redlock'; +import { Lock } from 'redlock'; +import { RedisClient } from 'redis'; + +let redlock: Redlock; +let client: RedisClient = {}; +let lock: Lock = {}; + +redlock = new Redlock([client]); +redlock = new Redlock([client], { + driftFactor: 0.1, + retryCount: 2, + retryDelay: 3 +}); + +redlock.acquire('resource', 30).then((lock: Lock) => {}); +redlock.acquire('resource', 30, (err: any, lock: Lock) => {}); +redlock.lock('resource', 30).then((lock: Lock) => {}); +redlock.lock('resource', 30, (err: any, lock: Lock) => {}); + +// There is currently no way to test the disposer as the bluebird typings does not +// expose the .using method. +// promise.using(redlock.disposer('resource', 30), (lock: Lock) => {}); + +redlock.release(lock); +redlock.release(lock, (err: any) => {}); +redlock.unlock(lock); +redlock.unlock(lock, (err: any) => {}); + +redlock.extend(lock, 30).then((lock: Lock) => {}); +redlock.extend(lock, 30, (err: any, lock: Lock) => {}); + +lock.unlock(); +lock.unlock((err) => {}); + +lock.extend(30).then((lock: Lock) => {}); +lock.extend(30, (err: any, lock: Lock) => {}); diff --git a/types/redlock/v2/tsconfig.json b/types/redlock/v2/tsconfig.json new file mode 100644 index 0000000000..0ae54b3474 --- /dev/null +++ b/types/redlock/v2/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "redlock": [ "redlock/v2" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "redlock-tests.ts" + ] +} diff --git a/types/redlock/v2/tslint.json b/types/redlock/v2/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/redlock/v2/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From c4e3656a590f5fe8fa8f3abdb387233ecee79767 Mon Sep 17 00:00:00 2001 From: Vignesh Venkataraman Date: Fri, 4 Aug 2017 15:54:23 -0700 Subject: [PATCH 056/166] [redux-first-router] Update type definitions to v1.9 (#18562) * Update redux-first-router typings with API changes as of v1.9.8 * Scrub trailing commas * Fix style of author declarations * Carefully exact-match typings to flow typings * Revert Params and Payload to object type --- types/redux-first-router/index.d.ts | 63 +++++++++++++++---- .../redux-first-router-tests.ts | 7 ++- 2 files changed, 55 insertions(+), 15 deletions(-) diff --git a/types/redux-first-router/index.d.ts b/types/redux-first-router/index.d.ts index e1f62e1014..5acbe08493 100644 --- a/types/redux-first-router/index.d.ts +++ b/types/redux-first-router/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for redux-first-router 1.4 +// Type definitions for redux-first-router 1.9 // Project: https://github.com/faceyspacey/redux-first-router#readme // Definitions by: Valbrand +// viggyfresh // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -38,9 +39,23 @@ export interface RoutesMap { export interface ReceivedAction { type: string; - payload: object; + payload: Payload; meta?: object; - navKey?: string | null; + query?: object; + search?: string; + navKey?: Nullable; +} + +export interface ReceivedActionMeta { + type: string; + payload: Payload; + query?: object; + navKey?: Nullable; + meta: { + notFoundPath?: string; + query?: object; + search?: string; + }; } export interface HistoryData { @@ -52,13 +67,17 @@ export interface HistoryData { export interface Location { pathname: string; type: string; - payload: object; + payload: Payload; + query?: object; + search?: string; } export interface LocationState { pathname: string; type: string; - payload: object; + payload: Payload; + query?: object; + search?: string; prev: Location; kind: Nullable; history: Nullable; @@ -80,7 +99,7 @@ export interface NavigationAction { routeName?: string; actions?: NavigationAction[]; action?: NavigationAction; - params?: object; + params?: Params; meta?: object; } @@ -88,17 +107,21 @@ export interface Meta { location: ActionMetaLocation; notFoundPath?: string; navigation?: NavigationAction; + query?: object; + search?: string; } export interface Action { type: string; - payload: object; + payload: Payload; meta: Meta; - navKey?: string; + query?: object; + navKey?: Nullable; } export interface HistoryLocation { pathname: string; + search?: string; } export type HistoryAction = string; @@ -110,7 +133,7 @@ export type ScrollBehavior = object; export interface Router { getStateForActionOriginal(action: object, state: Nullable): Nullable; getStateForAction(action: object, state: Nullable): Nullable; - getPathAndParamsForState(state: object): { path: Nullable, params: Nullable }; + getPathAndParamsForState(state: object): { path: Nullable, params: Nullable }; getActionForPathAndParams(path: string): Nullable; } @@ -122,6 +145,14 @@ export interface Navigators { [key: string]: Navigator; } +export type SelectLocationState = (state: object) => LocationState; +export type SelectTitleState = (state: object) => string; + +export interface QuerySerializer { + stringify(params: Params): string; + parse(queryString: string): object; +} + export interface NavigatorsConfig { navigators: Navigators; patchNavigators(navigators: Navigators): void; @@ -144,17 +175,22 @@ export interface NavigatorsConfig { } export interface Options { - title?: string; - location?: string; + title?: string | SelectTitleState; + location?: string | SelectLocationState; notFoundPath?: string; scrollTop?: boolean; onBeforeChange?(dispatch: Dispatch, getState: StateGetter): void; onAfterChange?(dispatch: Dispatch, getState: StateGetter): void; onBackNext?(dispatch: Dispatch, getState: StateGetter): void; restoreScroll?(history: History): ScrollBehavior; + initialDispatch?: boolean; + querySerializer?: QuerySerializer; navigators?: NavigatorsConfig; } +export type Params = object; +export type Payload = object; + export type ScrollUpdater = (performedByUser: boolean) => void; export const NOT_FOUND: string; @@ -170,10 +206,11 @@ export function canGoBack(): boolean; export function canGoForward(): boolean; export function connectRoutes(history: History, routesMap: RoutesMap, options?: Options): { - reducer: Reducer + reducer: Reducer, middleware: Middleware, thunk(store: Store): Promise>, - enhancer: GenericStoreEnhancer + enhancer: GenericStoreEnhancer, + initialDispatch?(): void }; export function go(n: number): void; diff --git a/types/redux-first-router/redux-first-router-tests.ts b/types/redux-first-router/redux-first-router-tests.ts index aab3f8c2a0..fc913aebcf 100644 --- a/types/redux-first-router/redux-first-router-tests.ts +++ b/types/redux-first-router/redux-first-router-tests.ts @@ -26,8 +26,11 @@ const routesMap = { const { reducer, middleware, - enhancer -} = connectRoutes(history, routesMap); + enhancer, + initialDispatch +} = connectRoutes(history, routesMap, { + initialDispatch: false +}); const dumbMiddleware: Middleware = (store: MiddlewareAPI) => (next: Dispatch) => (action: Action) => { next(action); From 257c4789753e19209871c01bcf9c34ac22d7c0ff Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Fri, 4 Aug 2017 18:55:37 -0400 Subject: [PATCH 057/166] Types for gulp-mustache (#18607) * Types for gulp-mustache * Remove unnecessary ///reference to node * Review: rename Partials > Hash --- types/gulp-mustache/gulp-mustache-tests.ts | 18 +++++++++++++++ types/gulp-mustache/index.d.ts | 27 ++++++++++++++++++++++ types/gulp-mustache/tsconfig.json | 22 ++++++++++++++++++ types/gulp-mustache/tslint.json | 1 + 4 files changed, 68 insertions(+) create mode 100644 types/gulp-mustache/gulp-mustache-tests.ts create mode 100644 types/gulp-mustache/index.d.ts create mode 100644 types/gulp-mustache/tsconfig.json create mode 100644 types/gulp-mustache/tslint.json diff --git a/types/gulp-mustache/gulp-mustache-tests.ts b/types/gulp-mustache/gulp-mustache-tests.ts new file mode 100644 index 0000000000..c069a1dd02 --- /dev/null +++ b/types/gulp-mustache/gulp-mustache-tests.ts @@ -0,0 +1,18 @@ +import * as mustache from "gulp-mustache"; +// noinspection ES6UnusedImports +import { Transform } from "stream"; + +mustache({ // $ExpectType Transform + msg: "Hello Gulp!" +}); + +mustache({ // $ExpectType Transform + msg: "Hello Gulp!", + nested_value: "I am nested.", + another_value: "1 2 3" +}, {}, { + some_inner_partial: "

{{nested_value}}

", + another_partial: "
{{another_value}}
" +}); + +mustache('your_json_file.json', {}, {}); // $ExpectType Transform diff --git a/types/gulp-mustache/index.d.ts b/types/gulp-mustache/index.d.ts new file mode 100644 index 0000000000..3b01944b19 --- /dev/null +++ b/types/gulp-mustache/index.d.ts @@ -0,0 +1,27 @@ +// Type definitions for gulp-mustache v 3.0 +// Project: https://github.com/rogeriopvl/gulp-mustache +// Definitions by: Christopher Durham +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { Transform } from "stream"; + +declare namespace GulpMustache { + type View = Hash | string | undefined; + + interface Hash { + [key: string]: string; + } + + interface Options { + extension?: string; + tags?: ReadonlyArray | undefined; + } +} + +declare function GulpMustache(view: GulpMustache.View, + options?: GulpMustache.Options, + partials?: GulpMustache.Hash): Transform; + +export = GulpMustache; diff --git a/types/gulp-mustache/tsconfig.json b/types/gulp-mustache/tsconfig.json new file mode 100644 index 0000000000..df7c5074b4 --- /dev/null +++ b/types/gulp-mustache/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "gulp-mustache-tests.ts" + ] +} diff --git a/types/gulp-mustache/tslint.json b/types/gulp-mustache/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/gulp-mustache/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 879ee09301f39b7343642b40497123725fc8b053 Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Fri, 4 Aug 2017 19:19:13 -0400 Subject: [PATCH 058/166] [gulp-uglify] Update type definitions to v3.0 (#18514) * [gulp-uglify] Update type definitions to v3.0. * [gulp-uglify] Use existing declaration for `minify`. --- types/gulp-uglify/composer.d.ts | 18 +++++++++++ types/gulp-uglify/gulp-uglify-tests.ts | 43 +++++++++++++++++++++++--- types/gulp-uglify/index.d.ts | 11 ++----- types/gulp-uglify/tsconfig.json | 8 ++--- types/gulp-uglify/tslint.json | 6 ++++ 5 files changed, 67 insertions(+), 19 deletions(-) create mode 100644 types/gulp-uglify/composer.d.ts create mode 100644 types/gulp-uglify/tslint.json diff --git a/types/gulp-uglify/composer.d.ts b/types/gulp-uglify/composer.d.ts new file mode 100644 index 0000000000..ec592ad5e8 --- /dev/null +++ b/types/gulp-uglify/composer.d.ts @@ -0,0 +1,18 @@ +import * as UglifyJS from 'uglify-js'; +import * as GulpUglify from 'gulp-uglify'; + +interface Composer { + (uglify: Uglify, log: Logger): typeof GulpUglify; +} + +interface Uglify { + minify: typeof UglifyJS.minify; +} + +interface Logger { + warn: typeof console.warn; +} + +declare const composer: Composer; + +export = composer; diff --git a/types/gulp-uglify/gulp-uglify-tests.ts b/types/gulp-uglify/gulp-uglify-tests.ts index 499ac15a37..172d7cae0b 100644 --- a/types/gulp-uglify/gulp-uglify-tests.ts +++ b/types/gulp-uglify/gulp-uglify-tests.ts @@ -1,17 +1,19 @@ import * as gulp from 'gulp'; import * as uglify from 'gulp-uglify'; +import pump = require('pump'); +import uglifyjs = require('uglify-js'); +import composer = require('gulp-uglify/composer'); -gulp.task('compress', function() { - var tsResult = gulp.src('lib/*.ts') +gulp.task('compress', () => { + const tsResult = gulp.src('lib/*.ts') .pipe(uglify()) .pipe(gulp.dest('dist')); }); -gulp.task('compress2', function() { - var tsResult = gulp.src('lib/*.ts') +gulp.task('compress2', () => { + const tsResult = gulp.src('lib/*.ts') .pipe(uglify({ mangle: false, - preserveComments: "some", compress: false, output: { max_line_len: 300 @@ -19,3 +21,34 @@ gulp.task('compress2', function() { })) .pipe(gulp.dest('dist')); }); + +gulp.task('compress', (cb) => { + pump([ + gulp.src('lib/*.js'), + uglify(), + gulp.dest('dist') + ], + cb + ); +}); + +const minify = composer(uglifyjs, console); + +gulp.task('compress', (cb) => { + // the same options as described above + const options = {}; + + pump([ + gulp.src('lib/*.js'), + minify(options), + gulp.dest('dist') + ], + cb + ); +}); + +gulp.task('compress', () => { + return gulp.src('lib/*.js') + .pipe(minify()) + .pipe(gulp.dest('dist')); +}); diff --git a/types/gulp-uglify/index.d.ts b/types/gulp-uglify/index.d.ts index 7dafe43efa..4b86c2f2e0 100644 --- a/types/gulp-uglify/index.d.ts +++ b/types/gulp-uglify/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for gulp-uglify +// Type definitions for gulp-uglify 3.0 // Project: https://github.com/terinjokes/gulp-uglify // Definitions by: Christopher Haws +// Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -23,14 +24,6 @@ declare namespace GulpUglify { * Pass an object to specify custom compressor options. Pass false to skip compression completely. */ compress?: UglifyJS.CompressorOptions | boolean; - - /** - * A convenience option for options.output.comments. Defaults to preserving no comments. - * all - Preserve all comments in code blocks - * some - Preserve comments that start with a bang (!) or include a Closure Compiler directive (@preserve, @license, @cc_on) - * function - Specify your own comment preservation function. You will be passed the current node and the current comment and are expected to return either true or false. - */ - preserveComments?: string | ((node: any, comment: UglifyJS.Tokenizer) => boolean); } } diff --git a/types/gulp-uglify/tsconfig.json b/types/gulp-uglify/tsconfig.json index d0ae9de799..16668a9b9f 100644 --- a/types/gulp-uglify/tsconfig.json +++ b/types/gulp-uglify/tsconfig.json @@ -6,20 +6,18 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" ], - "paths": { - "q": [ "q/v0" ] - }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", + "composer.d.ts", "gulp-uglify-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/gulp-uglify/tslint.json b/types/gulp-uglify/tslint.json new file mode 100644 index 0000000000..a4bcc87748 --- /dev/null +++ b/types/gulp-uglify/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "callable-types": false + } +} From e189253e24c2b8a76f3d8e5cf28a07788b14d0e9 Mon Sep 17 00:00:00 2001 From: Ismail Syed Date: Fri, 4 Aug 2017 19:24:47 -0400 Subject: [PATCH 059/166] Add NamedChunksPlugin (#18644) --- types/webpack/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 3dd1a08583..14517ae3d6 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -848,6 +848,10 @@ declare namespace webpack { constructor(); } + class NamedChunksPlugin extends Plugin { + constructor(); + } + class NoEmitOnErrorsPlugin extends Plugin { constructor(); } From 19aea6b3ce15ce823b8c232982ad4dd548b0eb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20C=C3=A9sar=C3=A9-Herriau?= Date: Fri, 4 Aug 2017 16:25:12 -0700 Subject: [PATCH 060/166] Updated CredentialManagement specs to the latest version of 08/04/2017. (#18643) --- .../index.d.ts | 62 ++++++++++- .../webappsec-credential-management-tests.ts | 101 +++++++++++++++++- 2 files changed, 160 insertions(+), 3 deletions(-) diff --git a/types/webappsec-credential-management/index.d.ts b/types/webappsec-credential-management/index.d.ts index d316572aab..503b87181c 100644 --- a/types/webappsec-credential-management/index.d.ts +++ b/types/webappsec-credential-management/index.d.ts @@ -1,10 +1,10 @@ -// Type definitions for W3C (WebAppSec) Credential Management API Level 1, 0.2 +// Type definitions for W3C (WebAppSec) Credential Management API Level 1, 0.3 // Project: https://github.com/w3c/webappsec-credential-management // Definitions by: Iain McGinniss // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 -// Spec: http://www.w3.org/TR/2016/WD-credential-management-1-20160425/ +// Spec: https://www.w3.org/TR/2017/WD-credential-management-1-20170804 /* ************************* FETCH MODIFICATIONS ******************************* * The credential management spec modifies fetch(), by adding a new @@ -80,14 +80,35 @@ interface CredentialsContainer { */ store(credential: Credential): Promise; + /** + * Create a {@link Credential} asynchronously. + * + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dom-credentialscontainer-create} + */ + create(options: CredentialCreationOptions): Promise; + /** * Ask the credential manager to require user mediation before returning * credentials for the origin in which the method is called. This might be * called after a user signs out of a website, for instance, in order to * ensure that they are not automatically signed back in next time they * visits. + * + * @deprecated Use {@link preventSilentAccess} instead. + * @see {@link https://www.w3.org/TR/2016/WD-credential-management-1-20160425/#dom-credentialscontainer-requireusermediation} */ requireUserMediation(): Promise; + + /** + * Ask the credential manager to require user mediation before returning + * credentials for the origin in which the method is called. This might be + * called after a user signs out of a website, for instance, in order to + * ensure that they are not automatically signed back in next time they + * visits. + * + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dom-credentialscontainer-preventsilentaccess} + */ + preventSilentAccess(): Promise; } /** @@ -246,6 +267,11 @@ declare class FederatedCredential extends SiteBoundCredential { readonly protocol: string|null; } +/** + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#enumdef-credentialmediationrequirement} + */ +type CredentialMediationRequirement = 'silent'|'optional'|'required'; + /** * @see {@link https://www.w3.org/TR/credential-management-1/#dictdef-credentialrequestoptions} */ @@ -265,8 +291,40 @@ interface CredentialRequestOptions { /** * If {@code true}, the user agent will only attempt to provide a Credential * without user interaction. Defaults to {@code false}. + * + * @deprecated Use {@link mediation} instead. */ unmediated?: boolean; + + /** + * This property specifies the mediation requirements for a given credential + * request. + */ + mediation?: CredentialMediationRequirement; +} + +/** + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#typedefdef-passwordcredentialinit} + */ +type PasswordCredentialInit = PasswordCredentialData|HTMLFormElement; + +/** + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dictdef-federatedcredentialinit} + */ +type FederatedCredentialInit = FederatedCredentialData; + +/** + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dictdef-credentialcreationoptions} + */ +interface CredentialCreationOptions { + /** + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dictdef-federatedcredentialinit} + */ + password?: PasswordCredentialInit; + /** + * @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dom-credentialcreationoptions-federated} + */ + federated?: FederatedCredentialInit; } /** diff --git a/types/webappsec-credential-management/webappsec-credential-management-tests.ts b/types/webappsec-credential-management/webappsec-credential-management-tests.ts index 148b604a69..43a2e78aa9 100644 --- a/types/webappsec-credential-management/webappsec-credential-management-tests.ts +++ b/types/webappsec-credential-management/webappsec-credential-management-tests.ts @@ -21,6 +21,51 @@ function passwordBasedSignIn() { }); } +// https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#mediation-examples +function signInMediationSilent() { + window.addEventListener('load', _ => { + if (!navigator.credentials) { + return; + } + navigator.credentials.get({ + password: true, + mediation: 'silent' + }).then((credential) => { + // Hooray! Let’s sign the user in using these credentials! + }); + }); +} + +// https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#mediation-examples +function signInMediationRequired() { + window.addEventListener('load', _ => { + if (!navigator.credentials) { + return; + } + navigator.credentials.get({ + password: true, + mediation: 'required' + }).then((credential) => { + // Hooray! Let’s sign the user in using these credentials! + }); + }); +} + +// https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#mediation-examples +function signInMediationOptional() { + window.addEventListener('load', _ => { + if (!navigator.credentials) { + return; + } + navigator.credentials.get({ + password: true, + mediation: 'optional' + }).then((credential) => { + // Hooray! Let’s sign the user in using these credentials! + }); + }); +} + // federated sign-in example from Section 1.2.2: // https://www.w3.org/TR/credential-management-1/#examples-federated-signin function federatedSignIn() { @@ -121,7 +166,7 @@ function formEncodedPost(credential: PasswordCredential, token: string) { // requireUserMediation example: not included in the spec, but included here // to ensure it typechecks correctly. -function signOut() { +function signOutDeprecated() { if (!navigator.credentials) { return; } @@ -130,3 +175,57 @@ function signOut() { document.location.assign('/'); }); } + +function signOut() { + if (!navigator.credentials) { + return; + } + + navigator.credentials.preventSilentAccess().then(() => { + document.location.assign('/'); + }); +} + +// Example not included in spec but added to ensure it typechecks +// correctly. +function createPasswordCredential() { + if (!navigator.credentials) { + return; + } + + navigator.credentials.create({ + password: {id: 'username', password: 'password'} + }).then((credential) => { + // Credential created! + }); +} + +// Example not included in spec but added to ensure it typechecks +// correctly. +function createPasswordCredentialWithForm() { + if (!navigator.credentials) { + return; + } + + const formElt = document.querySelector('#form') as HTMLFormElement; + + navigator.credentials.create({ + password: formElt + }).then((credential) => { + // Credential created! + }); +} + +// Example not included in spec but added to ensure it typechecks +// correctly. +function createFederatedCredential() { + if (!navigator.credentials) { + return; + } + + navigator.credentials.create({ + federated: {id: 'username', provider: 'provider'} + }).then((credential) => { + // Credential created! + }); +} From 27510572ea7ce761dbf1b71d095dd10086781465 Mon Sep 17 00:00:00 2001 From: Rich Seviora Date: Fri, 4 Aug 2017 16:26:12 -0700 Subject: [PATCH 061/166] React - Adding ComponentLifecycle Documentation (#18642) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/react/index.d.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 6b5b163048..261b8886d1 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -346,12 +346,48 @@ declare namespace React { // ---------------------------------------------------------------------- interface ComponentLifecycle { + /** + * Called immediately before mounting occurs, and before `Component#render`. + * Avoid introducing any side-effects or subscriptions in this method. + */ componentWillMount?(): void; + /** + * Called immediately after a compoment is mounted. Setting state here will trigger re-rendering. + */ componentDidMount?(): void; + /** + * Called when the component may be receiving new props. + * React may call this even if props have not changed, so be sure to compare new and existing + * props if you only want to handle changes. + * + * Calling `Component#setState` generally does not trigger this method. + */ componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; + /** + * Called to determine whether the change in props and state should trigger a re-render. + * + * `Component` always returns true. + * `PureComponent` implements a shallow comparison on props and state and returns true if any + * props or states have changed. + * + * If false is returned, `Component#render`, `componentWillUpdate` + * and `componentDidUpdate` will not be called. + */ shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; + /** + * Called immediately before rendering when new props or state is received. Not called for the initial render. + * + * Note: You cannot call `Component#setState` here. + */ componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; + /** + * Called immediately after updating occurs. Not called for the initial render. + */ componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, prevContext: any): void; + /** + * Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as + * cancelled network requests, or cleaning up any DOM elements created in `componentDidMount`. + */ componentWillUnmount?(): void; /** * Catches exceptions generated in descendant components. Unhandled exceptions will cause From 094bb30f88992b72419e12236316e2b4723b4ed6 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 5 Aug 2017 01:35:36 +0200 Subject: [PATCH 062/166] [pino] add typings for v4.7, enable linting & strictNullChecks (#18634) * [pino] add typings for v4.7, enable linting & strictNullChecks * [pino] make Logger instance extend EventEmitter, overload EventEmitter interfaces --- types/pino/index.d.ts | 427 +++++++++++++++++++++++++++++------- types/pino/pino-tests.ts | 114 +++++++--- types/pino/tsconfig.json | 4 +- types/pino/tslint.json | 1 + types/pino/v3/index.d.ts | 105 +++++++++ types/pino/v3/pino-tests.ts | 39 ++++ types/pino/v3/tsconfig.json | 25 +++ types/pino/v3/tslint.json | 1 + 8 files changed, 606 insertions(+), 110 deletions(-) create mode 100644 types/pino/tslint.json create mode 100644 types/pino/v3/index.d.ts create mode 100644 types/pino/v3/pino-tests.ts create mode 100644 types/pino/v3/tsconfig.json create mode 100644 types/pino/v3/tslint.json diff --git a/types/pino/index.d.ts b/types/pino/index.d.ts index a9c4b949e2..d8f37c6414 100644 --- a/types/pino/index.d.ts +++ b/types/pino/index.d.ts @@ -1,105 +1,378 @@ -// Type definitions for pino v3.0.1 +// Type definitions for pino 4.7 // Project: https://github.com/mcollina/pino.git // Definitions by: Peter Snider +// BendingBender // Definitions: https://github.com/borisyankov/DefinitelyTyped +// TypeScript Version: 2.3 /// -import stream = require('stream'); +import * as stream from 'stream'; +import * as http from 'http'; +import { EventEmitter } from 'events'; +export = P; + +/** + * @param [optionsOrStream]: an options object or a writable stream where the logs will be written. It can also receive some log-line metadata, if the + * relative protocol is enabled. Default: process.stdout + * @returns a new logger instance. + */ declare function P(optionsOrStream?: P.LoggerOptions | stream.Writable | stream.Duplex | stream.Transform): P.Logger; + +/** + * @param [options]: an options object + * @param [stream]: a writable stream where the logs will be written. It can also receive some log-line metadata, if the + * relative protocol is enabled. Default: process.stdout + * @returns a new logger instance. + */ declare function P(options: P.LoggerOptions, stream: stream.Writable | stream.Duplex | stream.Transform): P.Logger; declare namespace P { + /** + * Holds the current log format version (as output in the v property of each log record). + */ + const LOG_VERSION: number; + const levels: LevelMapping; + /** + * Provides functions for serializing objects common to many projects. + */ + const stdSerializers: { + /** + * Generates a JSONifiable object from the HTTP `request` object passed to the `createServer` callback of Node's HTTP server. + */ + req(req: http.IncomingMessage): { + method: string; + url: string; + headers: http.IncomingHttpHeaders; + remoteAddress: string; + remotePort: number; + }; + /** + * Generates a JSONifiable object from the HTTP `response` object passed to the `createServer` callback of Node's HTTP server. + */ + res(res: http.ServerResponse): { statusCode: number; header: string; }; + /** + * Serializes an Error object. + */ + err(err: Error): { + type: string; + message: string; + stack: string; + [key: string]: any; + }; + }; + /** + * Provides functions for generating the timestamp property in the log output. You can set the `timestamp` option during + * initialization to one of these functions to adjust the output format. Alternatively, you can specify your own time function. + * A time function must synchronously return a string that would be a valid component of a JSON string. For example, + * the default function returns a string like `,"time":1493426328206`. + */ + const stdTimeFunctions: { + /** + * The default time function for Pino. Returns a string like `,"time":1493426328206`. + */ + epochTime: TimeFn; + /** + * Returns an ISO formatted string like `,"time":"2017-04-29T004749.354Z"`. It is highly recommended that you avoid this function. + * It incurs a significant performance penalty. + */ + slowTime: TimeFn; + /** + * Returns an empty string. This function is used when the `timestamp` option is set to `false`. + */ + nullTime: TimeFn; + }; - function pretty(opts?: { timeTransOnly?: boolean, levelFirst?: boolean, formatter?: (log: IPinoLog) => string }): stream.Transform; + /** + * Provides access to the CLI log prettifier as an API. + * This can also be enabled via the constructor by setting the `prettyPrint` option to either `true` or a configuration object described in this section. + * @param [options]: an options object + * @returns A transform stream to be used as input for the constructor. + */ + function pretty(options?: PrettyOptions): stream.Transform; - type Level = 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent'; - interface Headers { - [header: string]: string; - } - - interface IPinoLog { - pid: number - hostname: string - level: number - time: string - msg: string - v: number - } - - interface LevelLabelsToValues { - [level: string]: number; - } - - interface LevelValuesToLabels { - [level: number]: string; - } - - interface Serializers { - req?: (req: any) => any; - res?: (res: any) => any; - err?: (error: Error) => any; + interface LevelMapping { + /** + * Returns the mappings of level names to their respective internal number representation. + */ + values: { [level: string]: number; }; + /** + * Returns the mappings of level internal level numbers to their string representations. + */ + labels: { [level: number]: string; }; } + type TimeFn = () => string; interface LoggerOptions { - // avoid error causes by circular references in the object tree, default true + /** + * Avoid error causes by circular references in the object tree. Default: `true`. + */ safe?: boolean; - // the name of the logger, default undefined + /** + * The name of the logger. Default: `undefined`. + */ name?: string; - // an object containing functions for custom serialization of objects. - // These functions should return an JSONifiable object and they should never throw - serializers?: Serializers; - // Outputs ISO time stamps ('2016-03-09T15:18:53.889Z') instead of Epoch time stamps (1457536759176). - // WARNING: This option carries a 25% performance drop, we recommend using default Epoch timestamps and transforming logs after if required. - // The pino -t command will do this for you (see CLI). default false. + /** + * an object containing functions for custom serialization of objects. + * These functions should return an JSONifiable object and they should never throw. When logging an object, + * each top-level property matching the exact key of a serializer will be serialized using the defined serializer. + */ + serializers?: { [key: string]: SerializerFn }; + /** + * Enables or disables the inclusion of a timestamp in the log message. If a function is supplied, it must + * synchronously return a JSON string representation of the time. If set to `false`, no timestamp will be included in the output. + * See stdTimeFunctions for a set of available functions for passing in as a value for this option. + * Caution: any sort of formatted time will significantly slow down Pino's performance. + */ + timestamp?: TimeFn | false; + /** + * @deprecated + * This option is scheduled to be removed in Pino 5.0.0. Use `timestamp: pino.stdTimeFunctions.slowTime` instead. + * Outputs ISO time stamps ('2016-03-09T15:18:53.889Z') instead of Epoch time stamps (1457536759176). + * WARNING: This option carries a 25% performance drop, we recommend using default Epoch timestamps and transforming logs after if required. + * The pino -t command will do this for you (see CLI). Default: `false`. + */ slowtime?: boolean; - // Enables extreme mode, yields an additional 60% performance (from 250ms down to 100ms per 10000 ops). - // There are trade-off's should be understood before usage. See Extreme mode explained. default false + /** + * Enables extreme mode, yields an additional 60% performance (from 250ms down to 100ms per 10000 ops). + * There are trade-off's should be understood before usage. See Extreme mode explained. Default: `false`. + */ extreme?: boolean; - // enables logging, defaults to true. - enabled?: boolean; - level?: Level | string; + /** + * One of the supported levels or `silent` to disable logging. Any other value defines a custom level and + * requires supplying a level value via `levelVal`. Default: 'info'. + */ + level?: LevelWithSilent | string; + /** + * When defining a custom log level via level, set to an integer value to define the new level. Default: `undefined`. + */ levelVal?: number; - } - - interface Pino { - (optionsOrStream?: LoggerOptions | stream.Writable | stream.Duplex): Logger; - (options: LoggerOptions, stream: stream.Writable | stream.Duplex): Logger; - levels: { - values: LevelLabelsToValues - labels: LevelValuesToLabels + /** + * The string key for the 'message' in the JSON object. Default: "msg". + */ + messageKey?: string; + /** + * Enables pino.pretty. This is intended for non-production configurations. This may be set to a configuration + * object as outlined in http://getpino.io/#/docs/API?id=pretty. Default: `false`. + */ + prettyPrint?: boolean | PrettyOptions; + /** + * This function will be invoked during process shutdown when `extreme` is set to `true`. If you do not specify + * a function, Pino will invoke `process.exit(0)` when no error has occurred, and `process.exit(1)` otherwise. + * If you do specify a function, it is up to you to terminate the process; you must perform only synchronous + * operations at this point. See http://getpino.io/#/docs/extreme for more detail. + */ + onTerminated?(eventName: string, err: any): void; + /** + * Enables logging. Default: `true`. + */ + enabled?: boolean; + /** + * Browser only, see http://getpino.io/#/?id=pino-in-the-browser. + */ + browser?: { + /** + * This option will create a pino-like log object instead of passing all arguments to a console method. + * When `write` is set, `asObject` will always be `true`. + */ + asObject?: boolean, + /** + * Instead of passing log messages to console.log they can be passed to a supplied function. If `write` is + * set to a single function, all logging objects are passed to this function. If write is an object, it can + * have methods that correspond to the levels. When a message is logged at a given level, the corresponding + * method is called. If a method isn't present, the logging falls back to using the `console`. + */ + write?: WriteFn | ({ + fatal?: WriteFn; + error?: WriteFn; + warn?: WriteFn; + info?: WriteFn; + debug?: WriteFn; + trace?: WriteFn; + } & { [logLevel: string]: WriteFn }); }; - LOG_VERSION: number; } - type LevelChangeEventListener = (lvl: string, val: number, prevLvl: string, prevVal: number) => void; - type LevelChangeEvent = 'level-change'; + interface PrettyOptions { + /** + * If set to true, it will only covert the unix timestamp to ISO 8601 date format, and reserialize the JSON (equivalent to pino -t). + */ + timeTransOnly?: boolean; + /** + * A custom function to format the line, is passed the JSON object as an argument and should return a string value. + */ + formatter?(log: LogDescriptor): string; + /** + * If set to true, it will print the name of the log level as the first field in the log line. Default: `false`. + */ + levelFirst?: boolean; + /** + * The key in the JSON object to use as the highlighted message. Default: "msg". + */ + messageKey?: string; + /** + * If set to true, will add color information to the formatted output message. Default: `false`. + */ + forceColor?: boolean; + } - interface Logger { - child(bindings: {}): Logger; - level: Level; + type Level = 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace'; + type LevelWithSilent = Level | 'silent'; + + type SerializerFn = (value: any) => any; + type WriteFn = (o: object) => void; + + interface LogDescriptor { + pid: number; + hostname: string; + level: number; + time: string; + msg: string; + v: number; + [key: string]: any; + } + + type Logger = BaseLogger & { [key: string]: LogFn; }; + + interface BaseLogger extends EventEmitter { + /** + * Exposes the current version of Pino. + */ + readonly pino: string; + /** + * Holds the current log format version (as output in the v property of each log record). + */ + readonly LOG_VERSION: number; + + levels: LevelMapping; + + /** + * Set this property to the desired logging level. In order of priority, available levels are: + * + * - 'fatal' + * - 'error' + * - 'warn' + * - 'info' + * - 'debug' + * - 'trace' + * + * The logging level is a __minimum__ level. For instance if `logger.level` is `'info'` then all `'fatal'`, `'error'`, `'warn'`, + * and `'info'` logs will be enabled. + * + * You can pass `'silent'` to disable logging. + */ + level: LevelWithSilent | string; + /** + * Returns the integer value for the logger instance's logging level. + */ levelVal: number; - on(event: LevelChangeEvent, listener: LevelChangeEventListener): void; - fatal(msg: string, ...args: any[]): void; - fatal(obj: {}, msg?: string, ...args: any[]): void; - error(msg: string, ...args: any[]): void; - error(obj: {}, msg?: string, ...args: any[]): void; - warn(msg: string, ...args: any[]): void; - warn(obj: {}, msg?: string, ...args: any[]): void; - info(msg: string, ...args: any[]): void; - info(obj: {}, msg?: string, ...args: any[]): void; - debug(msg: string, ...args: any[]): void; - debug(obj: {}, msg?: string, ...args: any[]): void; - trace(msg: string, ...args: any[]): void; - trace(obj: {}, msg?: string, ...args: any[]): void; - levels: { - values: LevelLabelsToValues - labels: LevelValuesToLabels - }; - LOG_VERSION: number; - stdSerializers: Serializers; + + /** + * Defines a new level on the logger instance. Returns `true` on success and `false` if there was a conflict (level name or number already exists). + * When using this method, the current level of the logger instance does not change. You must adjust the level with the `level` property after + * adding your custom level. + * + * @param name: defines the method name of the new level + * @param lvl: value for the level, e.g. `35` is between `info` and `warn` + * @returns whether level was correctly created or not + */ + addLevel(name: string, lvl: number): boolean; + /** + * Registers a listener function that is triggered when the level is changed. + * Note: When browserified, this functionality will only be available if the `events` module has been required elsewhere + * (e.g. if you're using streams in the browser). This allows for a trade-off between bundle size and functionality. + * + * @param event: only ever fires the `'level-change'` event + * @param listener: The listener is passed four arguments: `levelLabel`, `levelValue`, `previousLevelLabel`, `previousLevelValue`. + */ + on(event: 'level-change', listener: LevelChangeEventListener): this; + addListener(event: 'level-change', listener: LevelChangeEventListener): this; + once(event: 'level-change', listener: LevelChangeEventListener): this; + prependListener(event: 'level-change', listener: LevelChangeEventListener): this; + prependOnceListener(event: 'level-change', listener: LevelChangeEventListener): this; + removeListener(event: 'level-change', listener: LevelChangeEventListener): this; + + /** + * Creates a child logger, setting all key-value pairs in `bindings` as properties in the log lines. All serializers will be applied to the given pair. + * Child loggers use the same output stream as the parent and inherit the current log level of the parent at the time they are spawned. + * From v2.x.x the log level of a child is mutable (whereas in v1.x.x it was immutable), and can be set independently of the parent. + * If a `level` property is present in the object passed to `child` it will override the child logger level. + * + * @param bindings: an object of key-value pairs to include in log lines as properties. + * @returns a child logger instance. + */ + child(bindings: { + level?: Level | string; + serializers?: { [key: string]: SerializerFn }; + [key: string]: any; + }): Logger; + + /** + * Log at `'fatal'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. + * If more args follows `msg`, these will be used to format `msg` using `util.format`. + * + * @param obj: object to be serialized + * @param msg: the log message to write + * @param ...args: format string values when `msg` is a format string + */ + fatal: LogFn; + /** + * Log at `'error'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. + * If more args follows `msg`, these will be used to format `msg` using `util.format`. + * + * @param obj: object to be serialized + * @param msg: the log message to write + * @param ...args: format string values when `msg` is a format string + */ + error: LogFn; + /** + * Log at `'warn'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. + * If more args follows `msg`, these will be used to format `msg` using `util.format`. + * + * @param obj: object to be serialized + * @param msg: the log message to write + * @param ...args: format string values when `msg` is a format string + */ + warn: LogFn; + /** + * Log at `'info'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. + * If more args follows `msg`, these will be used to format `msg` using `util.format`. + * + * @param obj: object to be serialized + * @param msg: the log message to write + * @param ...args: format string values when `msg` is a format string + */ + info: LogFn; + /** + * Log at `'debug'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. + * If more args follows `msg`, these will be used to format `msg` using `util.format`. + * + * @param obj: object to be serialized + * @param msg: the log message to write + * @param ...args: format string values when `msg` is a format string + */ + debug: LogFn; + /** + * Log at `'trace'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. + * If more args follows `msg`, these will be used to format `msg` using `util.format`. + * + * @param obj: object to be serialized + * @param msg: the log message to write + * @param ...args: format string values when `msg` is a format string + */ + trace: LogFn; + + /** + * Flushes the content of the buffer in extreme mode. It has no effect if extreme mode is not enabled. + */ + flush(): void; + } + + type LevelChangeEventListener = (lvl: LevelWithSilent | string, val: number, prevLvl: LevelWithSilent | string, prevVal: number) => void; + + interface LogFn { + (msg: string, ...args: any[]): void; + (obj: object, msg?: string, ...args: any[]): void; } } - -export = P; diff --git a/types/pino/pino-tests.ts b/types/pino/pino-tests.ts index 2c9771ad9f..fcb3427114 100644 --- a/types/pino/pino-tests.ts +++ b/types/pino/pino-tests.ts @@ -1,40 +1,92 @@ -// This contains all of the code from the docs on https://www.npmjs.com/package/pino +import pino = require('pino'); -import PINO = require('pino'); -import * as stream from 'stream'; +const log = pino(); +const info = log.info; +const error = log.error; -var pino = PINO() -var info = pino.info -var error = pino.error +info('hello world'); +error('this is at error level'); +info('the answer is %d', 42); +info({obj: 42}, 'hello world'); +info({obj: 42, b: 2}, 'hello world'); +info({obj: {aa: 'bbb'}}, 'another'); +setImmediate(info, 'after setImmediate'); +error(new Error('an error')); -info('hello world') -error('this is at error level') -info('the answer is %d', 42) -info({ obj: 42 }, 'hello world') -info({ obj: 42, b: 2 }, 'hello world') -info({ obj: { aa: 'bbb' } }, 'another') -setImmediate(info, 'after setImmediate') -error(new Error('an error')) +let log2: pino.Logger = pino({ + name: 'myapp', + safe: true, + serializers: { + req: pino.stdSerializers.req, + res: pino.stdSerializers.res + } +}); -let instance:PINO.Logger = PINO({ - name: 'myapp', - safe: true, - serializers: { - req: pino.stdSerializers.req, - res: pino.stdSerializers.res - } -}) +let pretty = pino.pretty(); +pretty.pipe(process.stdout); +const log3 = pino({ + name: 'app', + safe: true +}, pretty); +log3.child({widget: 'foo'}).info('hello'); +log3.child({widget: 'bar'}).warn('hello 2'); -let version:number = pino.LOG_VERSION -let levels:Object = pino.levels +pino({ + browser: { + write(o) { + } + } +}); -let pretty:stream.Transform = PINO.pretty() +pino({ + browser: { + write: { + info(o) { + }, + error(o) { + } + } + } +}); -let logger2:PINO.Logger = PINO({ - name: 'app', - safe: true -}, pretty) +if ('pino' in log) console.log(`pino version: ${log.pino}`); +log.child({a: 'property'}).info('hello child!'); +log.level = 'error'; +log.info('nope'); +const child = log.child({foo: 'bar'}); +child.info('nope again'); +child.level = 'info'; +child.info('hooray'); +log.info('nope nope nope'); +log.child({foo: 'bar', level: 'debug'}).debug('debug!'); +const customSerializers = { + test() { + return 'this is my serializer'; + } +}; +pino().child({serializers: customSerializers}).info({test: 'should not show up'}); +const child2 = log.child({father: true}); +const childChild = child2.child({baby: true}); -var logger = instance -logger.child({ a: 'property' }).info('hello child!') +log.level = 'info'; +if (log.levelVal === 30) { + console.log('logger level is `info`'); +} + +log.addLevel('myLevel', 35); +log.level = 'myLevel'; +log.myLevel('a message'); + +const listener = (lvl: any, val: any, prevLvl: any, prevVal: any) => { + console.log(lvl, val, prevLvl, prevVal); +}; +log.on('level-change', (lvl, val, prevLvl, prevVal) => { + console.log(lvl, val, prevLvl, prevVal); +}); +log.level = 'trace'; +log.removeListener('level-change', listener); +log.level = 'info'; + +pino.levels.values.error === 50; +pino.levels.labels[50] === 'error'; diff --git a/types/pino/tsconfig.json b/types/pino/tsconfig.json index a5370240d2..733bb5bc9a 100644 --- a/types/pino/tsconfig.json +++ b/types/pino/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "pino-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/pino/tslint.json b/types/pino/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pino/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pino/v3/index.d.ts b/types/pino/v3/index.d.ts new file mode 100644 index 0000000000..560f5bea48 --- /dev/null +++ b/types/pino/v3/index.d.ts @@ -0,0 +1,105 @@ +// Type definitions for pino 3.0 +// Project: https://github.com/mcollina/pino.git +// Definitions by: Peter Snider +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +import stream = require('stream'); + +declare function P(optionsOrStream?: P.LoggerOptions | stream.Writable | stream.Duplex | stream.Transform): P.Logger; +declare function P(options: P.LoggerOptions, stream: stream.Writable | stream.Duplex | stream.Transform): P.Logger; + +declare namespace P { + function pretty(opts?: { timeTransOnly?: boolean, levelFirst?: boolean, formatter?(log: IPinoLog): string }): stream.Transform; + + type Level = 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent'; + interface Headers { + [header: string]: string; + } + + // tslint:disable-next-line interface-name + interface IPinoLog { + pid: number; + hostname: string; + level: number; + time: string; + msg: string; + v: number; + } + + interface LevelLabelsToValues { + [level: string]: number; + } + + interface LevelValuesToLabels { + [level: number]: string; + } + + interface Serializers { + req?(req: any): any; + res?(res: any): any; + err?(error: Error): any; + } + + interface LoggerOptions { + // avoid error causes by circular references in the object tree, default true + safe?: boolean; + // the name of the logger, default undefined + name?: string; + // an object containing functions for custom serialization of objects. + // These functions should return an JSONifiable object and they should never throw + serializers?: Serializers; + // Outputs ISO time stamps ('2016-03-09T15:18:53.889Z') instead of Epoch time stamps (1457536759176). + // WARNING: This option carries a 25% performance drop, we recommend using default Epoch timestamps and transforming logs after if required. + // The pino -t command will do this for you (see CLI). default false. + slowtime?: boolean; + // Enables extreme mode, yields an additional 60% performance (from 250ms down to 100ms per 10000 ops). + // There are trade-off's should be understood before usage. See Extreme mode explained. default false + extreme?: boolean; + // enables logging, defaults to true. + enabled?: boolean; + level?: Level | string; + levelVal?: number; + } + + interface Pino { + (optionsOrStream?: LoggerOptions | stream.Writable | stream.Duplex): Logger; + (options: LoggerOptions, stream: stream.Writable | stream.Duplex): Logger; + levels: { + values: LevelLabelsToValues + labels: LevelValuesToLabels + }; + LOG_VERSION: number; + } + + type LevelChangeEventListener = (lvl: string, val: number, prevLvl: string, prevVal: number) => void; + type LevelChangeEvent = 'level-change'; + + interface Logger { + child(bindings: {}): Logger; + level: Level; + levelVal: number; + on(event: LevelChangeEvent, listener: LevelChangeEventListener): void; + fatal(msg: string, ...args: any[]): void; + fatal(obj: {}, msg?: string, ...args: any[]): void; + error(msg: string, ...args: any[]): void; + error(obj: {}, msg?: string, ...args: any[]): void; + warn(msg: string, ...args: any[]): void; + warn(obj: {}, msg?: string, ...args: any[]): void; + info(msg: string, ...args: any[]): void; + info(obj: {}, msg?: string, ...args: any[]): void; + debug(msg: string, ...args: any[]): void; + debug(obj: {}, msg?: string, ...args: any[]): void; + trace(msg: string, ...args: any[]): void; + trace(obj: {}, msg?: string, ...args: any[]): void; + levels: { + values: LevelLabelsToValues + labels: LevelValuesToLabels + }; + LOG_VERSION: number; + stdSerializers: Serializers; + } +} + +export = P; diff --git a/types/pino/v3/pino-tests.ts b/types/pino/v3/pino-tests.ts new file mode 100644 index 0000000000..fb3dad2d9c --- /dev/null +++ b/types/pino/v3/pino-tests.ts @@ -0,0 +1,39 @@ +// This contains all of the code from the docs on https://www.npmjs.com/package/pino + +import PINO = require('pino'); +import * as stream from 'stream'; + +const pino = PINO(); +const info = pino.info; +const error = pino.error; + +info('hello world'); +error('this is at error level'); +info('the answer is %d', 42); +info({ obj: 42 }, 'hello world'); +info({ obj: 42, b: 2 }, 'hello world'); +info({ obj: { aa: 'bbb' } }, 'another'); +setImmediate(info, 'after setImmediate'); +error(new Error('an error')); + +let instance: PINO.Logger = PINO({ + name: 'myapp', + safe: true, + serializers: { + req: pino.stdSerializers.req, + res: pino.stdSerializers.res + } +}); + +let version: number = pino.LOG_VERSION; +let levels: {} = pino.levels; + +let pretty: stream.Transform = PINO.pretty(); + +let logger2: PINO.Logger = PINO({ + name: 'app', + safe: true +}, pretty); + +const logger = instance; +logger.child({ a: 'property' }).info('hello child!'); diff --git a/types/pino/v3/tsconfig.json b/types/pino/v3/tsconfig.json new file mode 100644 index 0000000000..86c9bbdaf2 --- /dev/null +++ b/types/pino/v3/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "pino": [ "pino/v3" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pino-tests.ts" + ] +} diff --git a/types/pino/v3/tslint.json b/types/pino/v3/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pino/v3/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 72d1e73d61c4a6b21b96696458e71cb1105fe99f Mon Sep 17 00:00:00 2001 From: Brian Coleman Date: Sat, 5 Aug 2017 00:36:40 +0100 Subject: [PATCH 063/166] chrome - webrequest.onAuthRequired.addListener (#18629) Fix callback parameter signature passed to webRequest.onAuthRequired.addListener. --- types/chrome/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index ee61cf5575..42ba4c1804 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -7366,7 +7366,7 @@ declare namespace chrome.webRequest { interface WebRedirectionResponseEvent extends _WebResponseHeadersEvent {} interface WebAuthenticationChallengeEvent extends chrome.events.Event<(details: WebAuthenticationChallengeDetails, callback?: (response: BlockingResponse) => void) => void> { - addListener(callback: (details: WebAuthenticationChallengeDetails) => void, filter?: RequestFilter, opt_extraInfoSpec?: string[]): void; + addListener(callback: (details: WebAuthenticationChallengeDetails, callback?: (response: BlockingResponse) => void) => void, filter?: RequestFilter, opt_extraInfoSpec?: string[]): void; } interface WebResponseErrorEvent extends _WebResponseHeadersEvent {} From aa9e285291d4cc35522c9895daa1ef06abbde311 Mon Sep 17 00:00:00 2001 From: rycornell Date: Fri, 4 Aug 2017 19:39:26 -0400 Subject: [PATCH 064/166] Options.services should be a string array (#18624) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/webdriverio/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webdriverio/index.d.ts b/types/webdriverio/index.d.ts index ea34a6c034..a3d7a08d99 100644 --- a/types/webdriverio/index.d.ts +++ b/types/webdriverio/index.d.ts @@ -421,7 +421,7 @@ declare namespace WebdriverIO { mochaOpts?: { [name: string]: any; }; jasmineNodeOpts?: { [name: string]: any; }; cucumberOpts?: { [name: string]: any; }; - services?: string | ((...args: any[]) => void); + services?: string[] | ((...args: any[]) => void); screenshotPath?: string; specs?: string[]; seleniumLogs?: string; From 1a775429022c95cd47ca422cdbfbd7aa021cb0b7 Mon Sep 17 00:00:00 2001 From: Elliot Blackburn Date: Sat, 5 Aug 2017 00:42:58 +0100 Subject: [PATCH 065/166] Update helmet types with support for expect-ct (#18609) * Update helmet types with support for expect-ct * Correct helmet expectCt summary --- types/helmet/index.d.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/types/helmet/index.d.ts b/types/helmet/index.d.ts index ee37b7d298..c5883ae70b 100644 --- a/types/helmet/index.d.ts +++ b/types/helmet/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for helmet // Project: https://github.com/helmetjs/helmet -// Definitions by: Cyril Schumacher , Evan Hahn +// Definitions by: Cyril Schumacher , Evan Hahn , Elliot Blackburn // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import express = require('express'); @@ -19,7 +19,8 @@ declare namespace helmet { ieNoOpen?: boolean, noCache?: boolean, noSniff?: boolean, - xssFilter?: boolean | IHelmetXssFilterConfiguration + xssFilter?: boolean | IHelmetXssFilterConfiguration, + expectCt?: boolean | IHelmetExpectCtConfiguration, } export interface IHelmetContentSecurityPolicyDirectiveFunction { @@ -96,6 +97,12 @@ declare namespace helmet { setOnOldIE?: boolean; } + export interface IHelmetExpectCtConfiguration { + enforce?: boolean; + maxAge?: number; + reportUri?: string; + } + /** * @summary Interface for helmet class. * @interface @@ -179,5 +186,12 @@ declare namespace helmet { * @return {RequestHandler} The Request handler. */ xssFilter(options?: IHelmetXssFilterConfiguration): express.RequestHandler; + + /** + * @summary Adds the "Expect-CT" header. + * @param {helmet.IHelmetExpectCtConfiguration} options + * @returns {e.RequestHandler} + */ + expectCt(options?: IHelmetExpectCtConfiguration): express.RequestHandler; } } From 72b910cdf0b69355217525760619bbdd56d04204 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Fri, 4 Aug 2017 16:43:22 -0700 Subject: [PATCH 066/166] add parseUser config (#18610) --- types/raven/index.d.ts | 3 +++ types/raven/raven-tests.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index 7c1fd4926e..23cd3b05e2 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -62,8 +62,11 @@ export interface ConstructorOptions { transport?(): void; captureUnhandledRejections?: boolean; autoBreadcrumbs?: boolean | any; + parseUser?: boolean | string[] | parseUserCallback; } +export type parseUserCallback = (req: any) => any; + export interface UserData { id: string; handle?: string; diff --git a/types/raven/raven-tests.ts b/types/raven/raven-tests.ts index d419b32d12..4d96e7eafa 100644 --- a/types/raven/raven-tests.ts +++ b/types/raven/raven-tests.ts @@ -3,6 +3,11 @@ import * as Raven from 'raven'; const dsn = '___DSN___'; const client = Raven.config(dsn, { autoBreadcrumbs: true }).install(); +Raven.config(dsn, { + logger: 'logger', + parseUser: ['id', 'name'], + autoBreadcrumbs: false, +}); console.log(Raven.version); Raven.config(dsn).install({ captureUnhandledRejections: true }); client.setContext({}); From 5467f51f78793983f42477c2d834a3c64022fd6b Mon Sep 17 00:00:00 2001 From: Nick Zelei Date: Fri, 4 Aug 2017 18:43:43 -0500 Subject: [PATCH 067/166] updated SwaggerRouterOptions. (#18613) updated SwaggerRouterOptions to include missing option. --- types/swagger-tools/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/swagger-tools/index.d.ts b/types/swagger-tools/index.d.ts index a697e9d7e8..7ff9abea40 100644 --- a/types/swagger-tools/index.d.ts +++ b/types/swagger-tools/index.d.ts @@ -13,6 +13,7 @@ export interface SwaggerRouterOptionsControllers { export interface SwaggerRouterOptions { controllers?: SwaggerRouterOptionsControllers | string | string[]; + ignoreMissingHandlers?: boolean; useStubs?: boolean; } From c04b681612d2ec9e1ffa652d5cd89a081abe5c83 Mon Sep 17 00:00:00 2001 From: Diogo do Carmo Date: Fri, 4 Aug 2017 20:47:23 -0300 Subject: [PATCH 068/166] Add `useForeground` to `TouchableNativeFeedback` (#18617) --- types/react-native/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 2a88c83e42..697b212134 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -4512,6 +4512,7 @@ export interface TouchableNativeFeedbackProperties extends TouchableWithoutFeedb * type is available on Android API level 21+ */ background?: BackgroundPropType + useForeground?: boolean } /** From 8a6349f4559de175695c064c2e22bea358c45843 Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Sat, 5 Aug 2017 07:53:42 +0800 Subject: [PATCH 069/166] [hpp]: Add type definitions (#18619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/hpp/hpp-tests.ts | 17 +++++++++++++++++ types/hpp/index.d.ts | 19 +++++++++++++++++++ types/hpp/tsconfig.json | 22 ++++++++++++++++++++++ types/hpp/tslint.json | 1 + 4 files changed, 59 insertions(+) create mode 100644 types/hpp/hpp-tests.ts create mode 100644 types/hpp/index.d.ts create mode 100644 types/hpp/tsconfig.json create mode 100644 types/hpp/tslint.json diff --git a/types/hpp/hpp-tests.ts b/types/hpp/hpp-tests.ts new file mode 100644 index 0000000000..21432f3d3f --- /dev/null +++ b/types/hpp/hpp-tests.ts @@ -0,0 +1,17 @@ +import * as express from 'express'; +import * as hpp from 'hpp'; + +const app = express(); + +app.use(hpp()); + +app.use(hpp({ + checkBody: true, + checkBodyOnlyForContentType: 'urlencoded', + checkQuery: true, + whitelist: ['foo', 'bar'] +})); + +app.use(hpp({ + whitelist: 'foobar' +})); diff --git a/types/hpp/index.d.ts b/types/hpp/index.d.ts new file mode 100644 index 0000000000..6328df7d70 --- /dev/null +++ b/types/hpp/index.d.ts @@ -0,0 +1,19 @@ +// Type definitions for hpp 0.2 +// Project: https://github.com/analog-nico/hpp +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as express from 'express'; + +declare namespace hpp { + interface Options { + checkBody?: boolean; + checkBodyOnlyForContentType?: string; + checkQuery?: boolean; + whitelist?: string | string[]; + } +} + +declare function hpp(options?: hpp.Options): express.RequestHandler; + +export = hpp; diff --git a/types/hpp/tsconfig.json b/types/hpp/tsconfig.json new file mode 100644 index 0000000000..e355d78a8c --- /dev/null +++ b/types/hpp/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "hpp-tests.ts" + ] +} diff --git a/types/hpp/tslint.json b/types/hpp/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/hpp/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From fe5b420de221d708d61293b5c718ec51689a9bf6 Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Sat, 5 Aug 2017 07:57:17 +0800 Subject: [PATCH 070/166] [smoothscroll-polyfill] Add type definitions (#18618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/smoothscroll-polyfill/index.d.ts | 6 +++++ .../smoothscroll-polyfill-tests.ts | 3 +++ types/smoothscroll-polyfill/tsconfig.json | 22 +++++++++++++++++++ types/smoothscroll-polyfill/tslint.json | 1 + 4 files changed, 32 insertions(+) create mode 100644 types/smoothscroll-polyfill/index.d.ts create mode 100644 types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts create mode 100644 types/smoothscroll-polyfill/tsconfig.json create mode 100644 types/smoothscroll-polyfill/tslint.json diff --git a/types/smoothscroll-polyfill/index.d.ts b/types/smoothscroll-polyfill/index.d.ts new file mode 100644 index 0000000000..1940dc3eec --- /dev/null +++ b/types/smoothscroll-polyfill/index.d.ts @@ -0,0 +1,6 @@ +// Type definitions for smoothscroll-polyfill 0.3 +// Project: https://iamdustan.github.io/smoothscroll +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function polyfill(): void; diff --git a/types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts b/types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts new file mode 100644 index 0000000000..798a8be8af --- /dev/null +++ b/types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts @@ -0,0 +1,3 @@ +import { polyfill } from 'smoothscroll-polyfill'; + +polyfill(); diff --git a/types/smoothscroll-polyfill/tsconfig.json b/types/smoothscroll-polyfill/tsconfig.json new file mode 100644 index 0000000000..8f54f5ebfc --- /dev/null +++ b/types/smoothscroll-polyfill/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "smoothscroll-polyfill-tests.ts" + ] +} diff --git a/types/smoothscroll-polyfill/tslint.json b/types/smoothscroll-polyfill/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/smoothscroll-polyfill/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 7f966ebe48a9854a97ff27d10dace327f07645ce Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Sat, 5 Aug 2017 07:59:54 +0800 Subject: [PATCH 071/166] Adding preloader and default theme modules to spectacle (#18505) * Adding preloader and default theme modules * Updated version number --- types/spectacle/index.d.ts | 22 ++++++++++++++++++---- types/spectacle/spectacle-tests.tsx | 22 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/types/spectacle/index.d.ts b/types/spectacle/index.d.ts index 12716fb32c..41f0d1df79 100644 --- a/types/spectacle/index.d.ts +++ b/types/spectacle/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Spectacle 1.1.1 +// Type definitions for Spectacle 1.2.0 // Project: https://github.com/FormidableLabs/victory // Definitions by: Zachary Maybury // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -45,15 +45,18 @@ declare module "spectacle" { bgDarken?:number } + export type Theme = { [key: string ]: string | number } + export interface SpectacleProps { - theme?:{ [key: string ]: string | number } + theme?: Theme } export interface DeckProps { transition?:transitionType[], transitionDuration?:number, progress?:progressType, - controls?:boolean + controls?:boolean, + theme?: Theme } export interface SlideProps extends BaseProps { @@ -147,4 +150,15 @@ declare module "spectacle" { export class TableItem extends React.Component {} export class Text extends React.Component {} -} \ No newline at end of file +} + +declare module "spectacle/lib/utils/preloader" { + const preloader: (obj: object) => void; + export default preloader; +} + +declare module "spectacle/lib/themes/default" { + import { Theme } from "spectacle"; + const createTheme: (...args: object[]) => Theme; + export default createTheme; +} diff --git a/types/spectacle/spectacle-tests.tsx b/types/spectacle/spectacle-tests.tsx index cfe052a1f1..f0a0b65e5a 100644 --- a/types/spectacle/spectacle-tests.tsx +++ b/types/spectacle/spectacle-tests.tsx @@ -21,6 +21,28 @@ import { Text } from "spectacle"; +// Import image preloader util +import preloader from 'spectacle/lib/utils/preloader' + +// Import theme +import createTheme from 'spectacle/lib/themes/default' + +const images = { + city: 'a-url' +} + +preloader(images) + +const theme = createTheme({ + primary: 'white', + secondary: '#1F2022', + tertiary: '#03A9FC', + quartenary: '#CECECE' +}, { + primary: 'Montserrat', + secondary: 'Helvetica' +}) + export class SpectacleTest extends React.Component { callback() { alert('Callback: ' + JSON.stringify(arguments)); From 4bb9d6ce15c51085c7c24b9ccb6da3fd89e97a1a Mon Sep 17 00:00:00 2001 From: Sebastian Clausen Date: Sat, 5 Aug 2017 02:07:24 +0200 Subject: [PATCH 072/166] missing types in declaration for `source` in Layer (#18241) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/mapbox-gl/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index e18f375eb7..c2a9a3d41e 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -901,7 +901,7 @@ declare namespace mapboxgl { metadata?: any; ref?: string; - source?: string; + source?: string | VectorSource | RasterSource | GeoJSONSource | ImageSource | VideoSource | GeoJSONSourceRaw; "source-layer"?: string; From 1d7334ebedac656bffce159f2f22c85af8f0d5fd Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 5 Aug 2017 02:10:16 +0200 Subject: [PATCH 073/166] [marked] add missing typings, add more specific typings, lint (#18327) --- types/marked/index.d.ts | 379 +++++++++++++++++++++++------------ types/marked/marked-tests.ts | 25 ++- types/marked/tslint.json | 1 + 3 files changed, 263 insertions(+), 142 deletions(-) create mode 100644 types/marked/tslint.json diff --git a/types/marked/index.d.ts b/types/marked/index.d.ts index 63dad27b30..a4dc048cc8 100644 --- a/types/marked/index.d.ts +++ b/types/marked/index.d.ts @@ -1,9 +1,38 @@ -// Type definitions for Marked +// Type definitions for Marked 0.3 // Project: https://github.com/chjj/marked // Definitions by: William Orr +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface MarkedStatic { +export as namespace marked; + +export = marked; +/** + * Compiles markdown to HTML. + * + * @param src String of markdown source to be compiled + * @param callback Function called when the markdownString has been fully parsed when using async highlighting + * @return String of compiled HTML + */ +declare function marked(src: string, callback: (error: any | undefined, parseResult: string) => void): string; + +/** + * Compiles markdown to HTML. + * + * @param src String of markdown source to be compiled + * @param options Hash of options + * @param callback Function called when the markdownString has been fully parsed when using async highlighting + * @return String of compiled HTML + */ +declare function marked(src: string, options?: marked.MarkedOptions, callback?: (error: any | undefined, parseResult: string) => void): string; + +declare namespace marked { + /** + * @param src String of markdown source to be compiled + * @param options Hash of options + */ + function lexer(src: string, options?: MarkedOptions): TokensList; + /** * Compiles markdown to HTML. * @@ -11,7 +40,7 @@ interface MarkedStatic { * @param callback Function called when the markdownString has been fully parsed when using async highlighting * @return String of compiled HTML */ - (src: string, callback: Function): string; + function parse(src: string, callback: (error: any | undefined, parseResult: string) => void): string; /** * Compiles markdown to HTML. @@ -21,144 +50,232 @@ interface MarkedStatic { * @param callback Function called when the markdownString has been fully parsed when using async highlighting * @return String of compiled HTML */ - (src: string, options?: MarkedOptions, callback?: Function): string; + function parse(src: string, options?: MarkedOptions, callback?: (error: any | undefined, parseResult: string) => void): string; /** - * @param src String of markdown source to be compiled + * @param src Tokenized source as array of tokens * @param options Hash of options */ - lexer(src: string, options?: MarkedOptions): any[]; - - /** - * Compiles markdown to HTML. - * - * @param src String of markdown source to be compiled - * @param callback Function called when the markdownString has been fully parsed when using async highlighting - * @return String of compiled HTML - */ - parse(src: string, callback: Function): string; - - /** - * Compiles markdown to HTML. - * - * @param src String of markdown source to be compiled - * @param options Hash of options - * @param callback Function called when the markdownString has been fully parsed when using async highlighting - * @return String of compiled HTML - */ - parse(src: string, options?: MarkedOptions, callback?: Function): string; - - /** - * @param options Hash of options - */ - parser(src: any[], options?: MarkedOptions): string; + function parser(src: TokensList, options?: MarkedOptions): string; /** * Sets the default options. * * @param options Hash of options */ - setOptions(options: MarkedOptions): MarkedStatic; - - Renderer: { - new(): MarkedRenderer; + function setOptions(options: MarkedOptions): typeof marked; + + class Renderer { + constructor(options?: MarkedOptions); + code(code: string, language: string, isEscaped: boolean): string; + blockquote(quote: string): string; + html(html: string): string; + heading(text: string, level: number, raw: string): string; + hr(): string; + list(body: string, ordered: boolean): string; + listitem(text: string): string; + paragraph(text: string): string; + table(header: string, body: string): string; + tablerow(content: string): string; + tablecell(content: string, flags: { + header: boolean; + align: 'center' | 'left' | 'right' | null; + }): string; + strong(text: string): string; + em(text: string): string; + codespan(code: string): string; + br(): string; + del(text: string): string; + link(href: string, title: string, text: string): string; + image(href: string, title: string, text: string): string; + text(text: string): string; } - - Parser: { - new(options: MarkedOptions): MarkedParser; + + class Lexer { + rules: Rules; + tokens: TokensList; + constructor(options?: MarkedOptions); + lex(src: string): TokensList; + } + + interface Rules { + [ruleName: string]: RegExp | Rules; + } + + type TokensList = Token[] & { + links: { + [key: string]: { href: string; title: string; } + } + }; + + type Token = + Tokens.Space + | Tokens.Code + | Tokens.Heading + | Tokens.Table + | Tokens.Hr + | Tokens.BlockquoteStart + | Tokens.BlockquoteEnd + | Tokens.ListStart + | Tokens.LooseItemStart + | Tokens.ListItemStart + | Tokens.ListItemEnd + | Tokens.ListEnd + | Tokens.Paragraph + | Tokens.HTML + | Tokens.Text; + + namespace Tokens { + interface Space { + type: 'space'; + } + + interface Code { + type: 'code'; + lang?: string; + text: string; + } + + interface Heading { + type: 'heading'; + depth: number; + text: string; + } + + interface Table { + type: 'table'; + header: string[]; + align: Array<'center' | 'left' | 'right' | null>; + cells: string[][]; + } + + interface Hr { + type: 'hr'; + } + + interface BlockquoteStart { + type: 'blockquote_start'; + } + + interface BlockquoteEnd { + type: 'blockquote_end'; + } + + interface ListStart { + type: 'list_start'; + ordered: boolean; + } + + interface LooseItemStart { + type: 'loose_item_start'; + } + + interface ListItemStart { + type: 'list_item_start'; + } + + interface ListItemEnd { + type: 'list_item_end'; + } + + interface ListEnd { + type: 'list_end'; + } + + interface Paragraph { + type: 'paragraph'; + pre?: boolean; + text: string; + } + + interface HTML { + type: 'html'; + pre: boolean; + text: string; + } + + interface Text { + type: 'text'; + text: string; + } + } + + interface MarkedOptions { + /** + * Type: object Default: new Renderer() + * + * An object containing functions to render tokens to HTML. + */ + renderer?: Renderer; + + /** + * Enable GitHub flavored markdown. + */ + gfm?: boolean; + + /** + * Enable GFM tables. This option requires the gfm option to be true. + */ + tables?: boolean; + + /** + * Enable GFM line breaks. This option requires the gfm option to be true. + */ + breaks?: boolean; + + /** + * Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior. + */ + pedantic?: boolean; + + /** + * Sanitize the output. Ignore any HTML that has been input. + */ + sanitize?: boolean; + + /** + * Optionally sanitize found HTML with a sanitizer function. + */ + sanitizer?(html: string): string; + + /** + * Mangle autolinks (). + */ + mangle?: boolean; + + /** + * Use smarter list behavior than the original markdown. May eventually be default with the old behavior moved into pedantic. + */ + smartLists?: boolean; + + /** + * Shows an HTML error message when rendering fails. + */ + silent?: boolean; + + /** + * A function to highlight code blocks. The function takes three arguments: code, lang, and callback. + */ + highlight?(code: string, lang: string, callback?: (error: any | undefined, code: string) => void): string; + + /** + * Set the prefix for code block classes. + */ + langPrefix?: string; + + /** + * Use "smart" typograhic punctuation for things like quotes and dashes. + */ + smartypants?: boolean; + + /** + * Set the prefix for header tag ids. + */ + headerPrefix?: string; + + /** + * Generate closing slash for self-closing tags (
instead of
) + */ + xhtml?: boolean; } } - -interface MarkedRenderer { - code(code: string, language: string): string; - blockquote(quote: string): string; - html(html: string): string; - heading(text: string, level: number, raw: string): string; - hr(): string; - list(body: string, ordered: boolean): string; - listitem(text: string): string; - paragraph(text: string): string; - table(header: string, body: string): string; - tablerow(content: string): string; - tablecell(content: string, flags: { - header: boolean, - align: string - }): string; - strong(text: string): string; - em(text: string): string; - codespan(code: string): string; - br(): string; - del(text: string): string; - link(href: string, title: string, text: string): string; - image(href: string, title: string, text: string): string; - text(text: string): string; -} - -interface MarkedParser { - parse(source: any[]): string -} - -interface MarkedOptions { - /** - * Type: object Default: new Renderer() - * - * An object containing functions to render tokens to HTML. - */ - renderer?: MarkedRenderer; - - /** - * Enable GitHub flavored markdown. - */ - gfm?: boolean; - - /** - * Enable GFM tables. This option requires the gfm option to be true. - */ - tables?: boolean; - - /** - * Enable GFM line breaks. This option requires the gfm option to be true. - */ - breaks?: boolean; - - /** - * Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior. - */ - pedantic?: boolean; - - /** - * Sanitize the output. Ignore any HTML that has been input. - */ - sanitize?: boolean; - - /** - * Use smarter list behavior than the original markdown. May eventually be default with the old behavior moved into pedantic. - */ - smartLists?: boolean; - - /** - * Shows an HTML error message when rendering fails. - */ - silent?: boolean; - - /** - * A function to highlight code blocks. The function takes three arguments: code, lang, and callback. - */ - highlight? (code: string, lang: string, callback?: Function): string; - - /** - * Set the prefix for code block classes. - */ - langPrefix?: string; - - /** - * Use "smart" typograhic punctuation for things like quotes and dashes. - */ - smartypants?: boolean; -} - -declare module "marked" { - export = marked; -} - -declare var marked: MarkedStatic; diff --git a/types/marked/marked-tests.ts b/types/marked/marked-tests.ts index 6263b2fff2..9499de3a56 100644 --- a/types/marked/marked-tests.ts +++ b/types/marked/marked-tests.ts @@ -1,8 +1,6 @@ - - import * as marked from 'marked'; -var options: MarkedOptions = { +const options: marked.MarkedOptions = { gfm: true, tables: true, breaks: false, @@ -10,8 +8,8 @@ var options: MarkedOptions = { sanitize: true, smartLists: true, silent: false, - highlight: function (code: string, lang: string) { - return ''; + highlight(code: string, lang: string) { + return ''; }, langPrefix: 'lang-', smartypants: false, @@ -19,10 +17,10 @@ var options: MarkedOptions = { }; function callback() { - console.log('callback called'); + console.log('callback called'); } -marked.setOptions(options); +const myOldMarked: typeof marked = marked.setOptions(options); console.log(marked('i am using __markdown__.')); console.log(marked('i am using __markdown__.', options)); @@ -34,11 +32,16 @@ console.log(marked.parse('i am using __markdown__.', options)); console.log(marked.parse('i am using __markdown__.', callback)); console.log(marked.parse('i am using __markdown__.', options, callback)); -var text = 'something'; -var tokens = marked.lexer(text, options); +const text = 'something'; +const tokens: marked.TokensList = marked.lexer(text, options); console.log(marked.parser(tokens)); -var renderer = new marked.Renderer(); -renderer.heading = function(text, level, raw) { +const lexer = new marked.Lexer(options); +const tokens2 = lexer.lex(text); +console.log(tokens2); +const re: RegExp | marked.Rules = lexer.rules['code']; + +const renderer = new marked.Renderer(); +renderer.heading = (text, level, raw) => { return text + level.toString() + raw; }; diff --git a/types/marked/tslint.json b/types/marked/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/marked/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 504307dd8fb4ecb3f5b9e01e261f4c7cefd11c10 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 5 Aug 2017 02:10:58 +0200 Subject: [PATCH 074/166] [ag-grid] remove typings provided by package directly (#18330) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- notNeededPackages.json | 6 + types/ag-grid/ag-grid-tests.ts | 136 --- types/ag-grid/index.d.ts | 1991 -------------------------------- types/ag-grid/tsconfig.json | 23 - 4 files changed, 6 insertions(+), 2150 deletions(-) delete mode 100644 types/ag-grid/ag-grid-tests.ts delete mode 100644 types/ag-grid/index.d.ts delete mode 100644 types/ag-grid/tsconfig.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 4a3280ccb0..2550b723f2 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1,5 +1,11 @@ { "packages": [ + { + "libraryName": "ag-grid", + "typingsPackageName": "ag-grid", + "sourceRepoURL": "https://github.com/ceolter/ag-grid", + "asOfVersion": "3.2.0" + }, { "libraryName": "ajv", "typingsPackageName": "ajv", diff --git a/types/ag-grid/ag-grid-tests.ts b/types/ag-grid/ag-grid-tests.ts deleted file mode 100644 index 7c4ebb0c8c..0000000000 --- a/types/ag-grid/ag-grid-tests.ts +++ /dev/null @@ -1,136 +0,0 @@ - -checkGridOptions({}); -checkColDef({}); - -function checkGridOptions(gridOptions: ag.grid.GridOptions): void { - - gridOptions.virtualPaging = true; - gridOptions.toolPanelSuppressPivot = true; - gridOptions.toolPanelSuppressValues = true; - gridOptions.rowsAlreadyGrouped = true; - gridOptions.suppressRowClickSelection = true; - gridOptions.suppressCellSelection = true; - gridOptions.sortingOrder = ['asc','desc']; - gridOptions.suppressMultiSort = true; - gridOptions.suppressHorizontalScroll = true; - gridOptions.unSortIcon = true; - gridOptions.rowHeight = 0; - gridOptions.rowBuffer = 0; - gridOptions.enableColResize = true; - gridOptions.enableCellExpressions = true; - gridOptions.enableSorting = true; - gridOptions.enableServerSideSorting = true; - gridOptions.enableFilter = true; - gridOptions.enableServerSideFilter = true; - gridOptions.colWidth = 0; - gridOptions.suppressMenuHide = true; - gridOptions.singleClickEdit = true; - gridOptions.debug = true; - gridOptions.icons = {}; - gridOptions.angularCompileRows = true; - gridOptions.angularCompileFilters = true; - gridOptions.angularCompileHeaders = true; - gridOptions.localeText = {}; - gridOptions.localeTextFunc = function() {} - gridOptions.suppressScrollLag = true; - gridOptions.groupSuppressAutoColumn = true; - gridOptions.groupSelectsChildren = true; - gridOptions.groupHidePivotColumns = true; - gridOptions.groupIncludeFooter = true; - gridOptions.groupUseEntireRow = true; - gridOptions.groupSuppressRow = true; - gridOptions.groupSuppressBlankHeader = true; - gridOptions.forPrint = true; - gridOptions.groupColumnDef = {}; - gridOptions.context = {}; - gridOptions.rowStyle = {color: 'red'}; - gridOptions.rowClass = 'green'; - gridOptions.groupDefaultExpanded = false; - gridOptions.slaveGrids = []; - gridOptions.rowSelection = 'single'; - gridOptions.rowDeselection = true; - gridOptions.rowData = []; - gridOptions.floatingTopRowData = []; - gridOptions.floatingBottomRowData = []; - gridOptions.showToolPanel = true; - gridOptions.groupKeys = ['a','b'] - gridOptions.groupAggFields = ['a','b'] - gridOptions.columnDefs = []; - gridOptions.datasource = {}; - gridOptions.pinnedColumnCount = 0; - gridOptions.groupHeaders = true; - gridOptions.headerHeight = 0; - gridOptions.groupRowInnerRenderer = function(params) {}; - gridOptions.groupRowRenderer = {}; - gridOptions.isScrollLag = function() {return true;} - gridOptions.isExternalFilterPresent = function() { return true; }; - gridOptions.doesExternalFilterPass = function(node: ag.grid.RowNode) { return false; }; - gridOptions.getRowStyle = function() {}; - gridOptions.getRowClass = function() {}; - gridOptions.headerCellRenderer = function() {}; - gridOptions.groupAggFunction = function(nodes: any[]) {}; - gridOptions.onReady = function(api: any) {}; - gridOptions.onModelUpdated = function() {}; - gridOptions.onCellClicked = function(params) {}; - gridOptions.onCellDoubleClicked = function(params) {}; - gridOptions.onCellContextMenu = function(params) {}; - gridOptions.onCellValueChanged = function(params) {}; - gridOptions.onCellFocused = function(params) {}; - gridOptions.onRowSelected = function(params) {}; - gridOptions.onSelectionChanged = function() {}; - gridOptions.onBeforeFilterChanged = function() {}; - gridOptions.onAfterFilterChanged = function() {}; - gridOptions.onFilterModified = function() {}; - gridOptions.onBeforeSortChanged = function() {}; - gridOptions.onAfterSortChanged = function() {}; - gridOptions.onVirtualRowRemoved = function(params) {}; - gridOptions.onRowClicked = function(params) {}; - gridOptions.api = null; - gridOptions.columnApi = null; - -} - -function checkColDef(colDef: ag.grid.ColDef): void { - - colDef.sort = 'test'; - colDef.sortedAt = 0; - colDef.sortingOrder = ['asc','desc']; - colDef.headerName = 'test'; - colDef.field = 'test'; - colDef.headerValueGetter = 'test'; - colDef.colId = 'test'; - colDef.hide = true; - colDef.headerTooltip = 'test'; - colDef.valueGetter = 'test'; - colDef.headerCellRenderer = {}; - colDef.headerClass = 'test'; - colDef.width = 0; - colDef.minWidth = 0; - colDef.maxWidth = 0; - colDef.cellClass = 'test'; - colDef.cellStyle = {color: 'test'}; - colDef.cellRenderer = function() {}; - colDef.floatingCellRenderer = function() {}; - colDef.aggFunc = 'test'; - colDef.comparator = function() {}; - colDef.checkboxSelection = true; - colDef.suppressMenu = true; - colDef.suppressSorting = true; - colDef.unSortIcon = true; - colDef.suppressSizeToFit = true; - colDef.suppressResize = true; - colDef.headerGroup = 'test'; - colDef.headerGroupShow = 'test'; - colDef.editable = true; - colDef.newValueHandler = function() {}; - colDef.volatile = true; - colDef.template = 'test'; - colDef.templateUrl = 'test'; - colDef.filter = 'test'; - colDef.filterParams = {}; - colDef.onCellValueChanged = function() {}; - colDef.onCellClicked = function() {}; - colDef.onCellDoubleClicked = function() {}; - colDef.onCellContextMenu = function() {}; - colDef.cellClassRules = {}; -} diff --git a/types/ag-grid/index.d.ts b/types/ag-grid/index.d.ts deleted file mode 100644 index 3fe37571b1..0000000000 --- a/types/ag-grid/index.d.ts +++ /dev/null @@ -1,1991 +0,0 @@ -// Type definitions for ag-grid v2.1.2 -// Project: http://www.ag-grid.com/ -// Definitions by: Niall Crosby -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace ag.grid { - class ColumnChangeEvent { - private type; - private column; - private columnGroup; - private fromIndex; - private toIndex; - private pinnedColumnCount; - constructor(type: string); - toString(): string; - withColumn(column: Column): ColumnChangeEvent; - withColumnGroup(columnGroup: ColumnGroup): ColumnChangeEvent; - withFromIndex(fromIndex: number): ColumnChangeEvent; - withPinnedColumnCount(pinnedColumnCount: number): ColumnChangeEvent; - withToIndex(toIndex: number): ColumnChangeEvent; - getFromIndex(): number; - getToIndex(): number; - getPinnedColumnCount(): number; - getType(): string; - getColumn(): Column; - getColumnGroup(): ColumnGroup; - isPivotChanged(): boolean; - isValueChanged(): boolean; - isIndividualColumnResized(): boolean; - } -} -declare namespace ag.grid { - class Utils { - private static isSafari; - private static isIE; - static iterateObject(object: any, callback: (key: string, value: any) => void): void; - static cloneObject(object: any): any; - static map(array: TItem[], callback: (item: TItem) => TResult): TResult[]; - static forEach(array: T[], callback: (item: T, index: number) => void): void; - static filter(array: T[], callback: (item: T) => boolean): T[]; - static assign(object: any, source: any): void; - static getFunctionParameters(func: any): any; - static find(collection: any, predicate: any, value: any): any; - static toStrings(array: T[]): string[]; - static iterateArray(array: T[], callback: (item: T, index: number) => void): void; - static isNode(o: any): boolean; - static isElement(o: any): boolean; - static isNodeOrElement(o: any): boolean; - static addChangeListener(element: HTMLElement, listener: EventListener): void; - static makeNull(value: any): any; - static removeAllChildren(node: HTMLElement): void; - static removeElement(parent: HTMLElement, cssSelector: string): void; - static removeFromParent(node: Element): void; - static isVisible(element: HTMLElement): boolean; - /** - * loads the template and returns it as an element. makes up for no simple way in - * the dom api to load html directly, eg we cannot do this: document.createElement(template) - */ - static loadTemplate(template: string): Node; - static querySelectorAll_addCssClass(eParent: any, selector: string, cssClass: string): void; - static querySelectorAll_removeCssClass(eParent: any, selector: string, cssClass: string): void; - static querySelectorAll_replaceCssClass(eParent: any, selector: string, cssClassToRemove: string, cssClassToAdd: string): void; - static addOrRemoveCssClass(element: HTMLElement, className: string, addOrRemove: boolean): void; - static addCssClass(element: HTMLElement, className: string): void; - static offsetHeight(element: HTMLElement): number; - static offsetWidth(element: HTMLElement): number; - static removeCssClass(element: HTMLElement, className: string): void; - static removeFromArray(array: T[], object: T): void; - static defaultComparator(valueA: any, valueB: any): number; - static formatWidth(width: number | string): string; - /** - * Tries to use the provided renderer. - */ - static useRenderer(eParent: Element, eRenderer: (params: TParams) => Node | string, params: TParams): void; - /** - * If icon provided, use this (either a string, or a function callback). - * if not, then use the second parameter, which is the svgFactory function - */ - static createIcon(iconName: any, gridOptionsWrapper: any, colDefWrapper: any, svgFactoryFunc: () => Node): HTMLSpanElement; - static addStylesToElement(eElement: any, styles: any): void; - static getScrollbarWidth(): number; - static isKeyPressed(event: KeyboardEvent, keyToCheck: number): boolean; - static setVisible(element: HTMLElement, visible: boolean): void; - static isBrowserIE(): boolean; - static isBrowserSafari(): boolean; - } -} -declare namespace ag.grid { - class Constants { - static STEP_EVERYTHING: number; - static STEP_FILTER: number; - static STEP_SORT: number; - static STEP_MAP: number; - static ASC: string; - static DESC: string; - static ROW_BUFFER_SIZE: number; - static MIN_COL_WIDTH: number; - static SUM: string; - static MIN: string; - static MAX: string; - static KEY_TAB: number; - static KEY_ENTER: number; - static KEY_BACKSPACE: number; - static KEY_DELETE: number; - static KEY_ESCAPE: number; - static KEY_SPACE: number; - static KEY_DOWN: number; - static KEY_UP: number; - static KEY_LEFT: number; - static KEY_RIGHT: number; - } -} -declare namespace ag.grid { - class Column { - static colIdSequence: number; - colDef: ColDef; - actualWidth: any; - visible: any; - colId: any; - pinned: boolean; - index: number; - aggFunc: string; - pivotIndex: number; - sort: string; - sortedAt: number; - constructor(colDef: ColDef, actualWidth: any); - isGreaterThanMax(width: number): boolean; - getMinimumWidth(): number; - setMinimum(): void; - } -} -declare namespace ag.grid { - class ColumnGroup { - pinned: any; - name: any; - allColumns: Column[]; - displayedColumns: Column[]; - expandable: boolean; - expanded: boolean; - actualWidth: number; - constructor(pinned: any, name: any); - getMinimumWidth(): number; - addColumn(column: any): void; - calculateExpandable(): void; - calculateActualWidth(): void; - calculateDisplayedColumns(): void; - addToVisibleColumns(colsToAdd: any): void; - } -} -declare namespace ag.grid { - class GridOptionsWrapper { - private gridOptions; - private groupHeaders; - private headerHeight; - private rowHeight; - private floatingTopRowData; - private floatingBottomRowData; - init(gridOptions: GridOptions, eventService: EventService): void; - isRowSelection(): boolean; - isRowDeselection(): boolean; - isRowSelectionMulti(): boolean; - getContext(): any; - isVirtualPaging(): boolean; - isShowToolPanel(): boolean; - isToolPanelSuppressPivot(): boolean; - isToolPanelSuppressValues(): boolean; - isRowsAlreadyGrouped(): boolean; - isGroupSelectsChildren(): boolean; - isGroupHidePivotColumns(): boolean; - isGroupIncludeFooter(): boolean; - isGroupSuppressBlankHeader(): boolean; - isSuppressRowClickSelection(): boolean; - isSuppressCellSelection(): boolean; - isSuppressMultiSort(): boolean; - isGroupSuppressAutoColumn(): boolean; - isForPrint(): boolean; - isSuppressHorizontalScroll(): boolean; - isUnSortIcon(): boolean; - isSuppressMenuHide(): boolean; - getRowStyle(): any; - getRowClass(): any; - getRowStyleFunc(): any; - getRowClassFunc(): any; - getHeaderCellRenderer(): any; - getApi(): GridApi; - isEnableColResize(): boolean; - isSingleClickEdit(): boolean; - getGroupDefaultExpanded(): any; - getGroupKeys(): string[]; - getGroupAggFunction(): (nodes: any[]) => any; - getGroupAggFields(): string[]; - getRowData(): any[]; - isGroupUseEntireRow(): boolean; - getGroupColumnDef(): any; - isGroupSuppressRow(): boolean; - isAngularCompileRows(): boolean; - isAngularCompileFilters(): boolean; - isAngularCompileHeaders(): boolean; - isDebug(): boolean; - getColumnDefs(): any[]; - getDatasource(): any; - getRowBuffer(): number; - isEnableSorting(): boolean; - isEnableCellExpressions(): boolean; - isEnableServerSideSorting(): boolean; - isEnableFilter(): boolean; - isEnableServerSideFilter(): boolean; - isSuppressScrollLag(): boolean; - getIcons(): any; - getIsScrollLag(): () => boolean; - getSortingOrder(): string[]; - getSlaveGrids(): GridOptions[]; - getGroupRowRenderer(): Object | Function; - getRowHeight(): number; - getHeaderHeight(): number; - setHeaderHeight(headerHeight: number): void; - isGroupHeaders(): boolean; - setGroupHeaders(groupHeaders: boolean): void; - getFloatingTopRowData(): any[]; - setFloatingTopRowData(rows: any[]): void; - getFloatingBottomRowData(): any[]; - setFloatingBottomRowData(rows: any[]): void; - isExternalFilterPresent(): boolean; - doesExternalFilterPass(node: RowNode): boolean; - getGroupRowInnerRenderer(): (params: any) => void; - getColWidth(): number; - private checkForDeprecated(); - getPinnedColCount(): number; - getLocaleTextFunc(): Function; - globalEventHandler(eventName: string, event?: any): void; - private getCallbackForEvent(eventName); - } -} -declare namespace ag.grid { - class LoggerFactory { - private logging; - init(gridOptionsWrapper: GridOptionsWrapper): void; - create(name: string): Logger; - } - class Logger { - private logging; - private name; - constructor(name: string, logging: boolean); - log(message: string): void; - } -} -declare namespace ag.grid { - class Events { - /** A new set of columns has been entered, everything has potentially changed. */ - static EVENT_COLUMN_EVERYTHING_CHANGED: string; - /** A pivot column was added, removed or order changed. */ - static EVENT_COLUMN_PIVOT_CHANGE: string; - /** A value column was added, removed or agg function was changed. */ - static EVENT_COLUMN_VALUE_CHANGE: string; - /** A column was moved */ - static EVENT_COLUMN_MOVED: string; - /** One or more columns was shown / hidden */ - static EVENT_COLUMN_VISIBLE: string; - /** A column group was opened / closed */ - static EVENT_COLUMN_GROUP_OPENED: string; - /** One or more columns was resized. If just one, the column in the event is set. */ - static EVENT_COLUMN_RESIZED: string; - /** One or more columns was resized. If just one, the column in the event is set. */ - static EVENT_COLUMN_PINNED_COUNT_CHANGED: string; - static EVENT_MODEL_UPDATED: string; - static EVENT_CELL_CLICKED: string; - static EVENT_CELL_DOUBLE_CLICKED: string; - static EVENT_CELL_CONTEXT_MENU: string; - static EVENT_CELL_VALUE_CHANGED: string; - static EVENT_CELL_FOCUSED: string; - static EVENT_ROW_SELECTED: string; - static EVENT_SELECTION_CHANGED: string; - static EVENT_BEFORE_FILTER_CHANGED: string; - static EVENT_AFTER_FILTER_CHANGED: string; - static EVENT_FILTER_MODIFIED: string; - static EVENT_BEFORE_SORT_CHANGED: string; - static EVENT_AFTER_SORT_CHANGED: string; - static EVENT_VIRTUAL_ROW_REMOVED: string; - static EVENT_ROW_CLICKED: string; - static EVENT_READY: string; - } -} -declare namespace ag.grid { - class EventService { - private allListeners; - private globalListeners; - private getListenerList(eventType); - addEventListener(eventType: string, listener: Function): void; - addGlobalListener(listener: Function): void; - removeEventListener(eventType: string, listener: Function): void; - removeGlobalListener(listener: Function): void; - dispatchEvent(eventType: string, event?: any): void; - } -} -declare namespace ag.grid { - class MasterSlaveService { - private gridOptionsWrapper; - private columnController; - private gridPanel; - private logger; - private eventService; - private consuming; - init(gridOptionsWrapper: GridOptionsWrapper, columnController: ColumnController, gridPanel: GridPanel, loggerFactory: LoggerFactory, eventService: EventService): void; - private fireEvent(callback); - private onEvent(callback); - private fireColumnEvent(event); - fireHorizontalScrollEvent(horizontalScroll: number): void; - onScrollEvent(horizontalScroll: number): void; - onColumnEvent(event: ColumnChangeEvent): void; - } -} -declare namespace ag.grid { - class ColumnApi { - private _columnController; - constructor(_columnController: ColumnController); - sizeColumnsToFit(gridWidth: any): void; - hideColumns(colIds: any, hide: any): void; - columnGroupOpened(group: ColumnGroup, newValue: boolean): void; - getColumnGroup(name: string): ColumnGroup; - getDisplayNameForCol(column: any): string; - getColumn(key: any): Column; - setState(columnState: any): void; - getState(): [any]; - isPinning(): boolean; - getVisibleColAfter(col: Column): Column; - getVisibleColBefore(col: Column): Column; - setColumnVisible(column: Column, visible: boolean): void; - getAllColumns(): Column[]; - getDisplayedColumns(): Column[]; - getPivotedColumns(): Column[]; - getValueColumns(): Column[]; - moveColumn(fromIndex: number, toIndex: number): void; - movePivotColumn(fromIndex: number, toIndex: number): void; - setColumnAggFunction(column: Column, aggFunc: string): void; - setColumnWidth(column: Column, newWidth: number): void; - removeValueColumn(column: Column): void; - addValueColumn(column: Column): void; - removePivotColumn(column: Column): void; - setPinnedColumnCount(count: number): void; - addPivotColumn(column: Column): void; - getHeaderGroups(): ColumnGroup[]; - hideColumn(colId: any, hide: any): void; - } - class ColumnController { - private gridOptionsWrapper; - private angularGrid; - private selectionRendererFactory; - private expressionService; - private masterSlaveController; - private allColumns; - private visibleColumns; - private displayedColumns; - private pivotColumns; - private valueColumns; - private columnGroups; - private setupComplete; - private valueService; - private pinnedColumnCount; - private eventService; - constructor(); - init(angularGrid: Grid, selectionRendererFactory: SelectionRendererFactory, gridOptionsWrapper: GridOptionsWrapper, expressionService: ExpressionService, valueService: ValueService, masterSlaveController: MasterSlaveService, eventService: EventService): void; - getColumnApi(): ColumnApi; - isSetupComplete(): boolean; - getHeaderGroups(): ColumnGroup[]; - getPinnedContainerWidth(): number; - addPivotColumn(column: Column): void; - setPinnedColumnCount(count: number): void; - removePivotColumn(column: Column): void; - addValueColumn(column: Column): void; - removeValueColumn(column: Column): void; - private doesColumnExistInGrid(column); - setColumnWidth(column: Column, newWidth: number): void; - private updateGroupWidthsAfterColumnResize(column); - setColumnAggFunction(column: Column, aggFunc: string): void; - movePivotColumn(fromIndex: number, toIndex: number): void; - moveColumn(fromIndex: number, toIndex: number): void; - getBodyContainerWidth(): number; - getValueColumns(): Column[]; - getPivotedColumns(): Column[]; - getDisplayedColumns(): Column[]; - getAllColumns(): Column[]; - setColumnVisible(column: Column, visible: boolean): void; - getVisibleColBefore(col: any): Column; - getVisibleColAfter(col: Column): Column; - isPinning(): boolean; - getState(): [any]; - setState(columnState: any): void; - getColumns(keys: any[]): Column[]; - getColumn(key: any): Column; - getDisplayNameForCol(column: any): string; - getColumnGroup(name: string): ColumnGroup; - onColumnsChanged(): void; - private checkForDeprecatedItems(columnDefs); - columnGroupOpened(group: ColumnGroup, newValue: boolean): void; - hideColumns(colIds: any, hide: any): void; - private updateModel(); - private updateDisplayedColumns(); - sizeColumnsToFit(gridWidth: any): void; - private buildGroups(); - private updateGroups(); - private updateVisibleColumns(); - private updatePinnedColumns(); - private createColumns(colDefs); - private createPivotColumns(); - private createValueColumns(); - private createDummyColumn(field); - private calculateColInitialWidth(colDef); - private getTotalColWidth(includePinned); - } -} -declare namespace ag.grid { - interface CsvExportParams { - skipHeader?: boolean; - skipFooters?: boolean; - skipGroups?: boolean; - fileName?: string; - } - class CsvCreator { - private rowController; - private columnController; - private grid; - private valueService; - constructor(rowController: InMemoryRowController, columnController: ColumnController, grid: Grid, valueService: ValueService); - exportDataAsCsv(params?: CsvExportParams): void; - getDataAsCsv(params?: CsvExportParams): string; - private createValueForGroupNode(node); - private escape(value); - } -} -declare namespace ag.grid { - class ExpressionService { - private expressionToFunctionCache; - private logger; - init(loggerFactory: LoggerFactory): void; - evaluate(expression: string, params: any): any; - private createExpressionFunction(expression); - private createFunctionBody(expression); - } -} -declare namespace ag.grid { - interface TextAndNumberFilterParameters { - /** What to do when new rows are loaded. The default is to reset the filter, to keep it in line with 'set' filters. If you want to keep the selection, then set this value to 'keep'. */ - newRowsAction?: string; - } -} -declare namespace ag.grid { - class TextFilter implements Filter { - private filterParams; - private filterChangedCallback; - private filterModifiedCallback; - private localeTextFunc; - private valueGetter; - private filterText; - private filterType; - private api; - private eGui; - private eFilterTextField; - private eTypeSelect; - private applyActive; - private eApplyButton; - init(params: any): void; - onNewRowsLoaded(): void; - afterGuiAttached(): void; - doesFilterPass(node: any): boolean; - getGui(): any; - isFilterActive(): boolean; - private createTemplate(); - private createGui(); - private setupApply(); - private onTypeChanged(); - private onFilterChanged(); - private filterChanged(); - private createApi(); - private getApi(); - } -} -declare namespace ag.grid { - class NumberFilter implements Filter { - private filterParams; - private filterChangedCallback; - private filterModifiedCallback; - private localeTextFunc; - private valueGetter; - private filterNumber; - private filterType; - private api; - private eGui; - private eFilterTextField; - private eTypeSelect; - private applyActive; - private eApplyButton; - init(params: any): void; - onNewRowsLoaded(): void; - afterGuiAttached(): void; - doesFilterPass(node: any): boolean; - getGui(): any; - isFilterActive(): boolean; - private createTemplate(); - private createGui(); - private setupApply(); - private onTypeChanged(); - private filterChanged(); - private onFilterChanged(); - private createApi(); - private getApi(); - } -} -declare namespace ag.grid { - interface ColDef { - /** If sorting by default, set it here. Set to 'asc' or 'desc' */ - sort?: string; - /** If sorting more than one column by default, the milliseconds when this column was sorted, so we know what order to sort the columns in. */ - sortedAt?: number; - /** The sort order, provide an array with any of the following in any order ['asc','desc',null] */ - sortingOrder?: string[]; - /** The name to render in the column header */ - headerName: string; - /** The field of the row to get the cells data from */ - field: string; - /** Expression or function to get the cells value. */ - headerValueGetter?: string | Function; - /** The unique ID to give the column. This is optional. If missing, the ID will default to the field. If both field and colId are missing, a unique ID will be generated. - * This ID is used to identify the column in the API for sorting, filtering etc. */ - colId?: string; - /** Set to true for this column to be hidden. Naturally you might think, it would make more sense to call this field 'visible' and mark it false to hide, - * however we want all default values to be false and we want columns to be visible by default. */ - hide?: boolean; - /** Tooltip for the column header */ - headerTooltip?: string; - /** Expression or function to get the cells value. */ - valueGetter?: string | Function; - /** To provide custom rendering to the header. */ - headerCellRenderer?: Function | Object; - /** CSS class for the header */ - headerClass?: string | string[] | ((params: any) => string | string[]); - /** Initial width, in pixels, of the cell */ - width?: number; - /** Min width, in pixels, of the cell */ - minWidth?: number; - /** Max width, in pixels, of the cell */ - maxWidth?: number; - /** Class to use for the cell. Can be string, array of strings, or function. */ - cellClass?: string | string[] | ((cellClassParams: any) => string | string[]); - /** An object of css values. Or a function returning an object of css values. */ - cellStyle?: {} | ((params: any) => {}); - /** A function for rendering a cell. */ - cellRenderer?: Function | {}; - /** A function for rendering a floating cell. */ - floatingCellRenderer?: Function | {}; - /** Name of function to use for aggregation. One of [sum,min,max]. */ - aggFunc?: string; - /** Comparator function for custom sorting. */ - comparator?: Function; - /** Set to true to render a selection checkbox in the column. */ - checkboxSelection?: boolean; - /** Set to true if no menu should be shown for this column header. */ - suppressMenu?: boolean; - /** Set to true if no sorting should be done for this column. */ - suppressSorting?: boolean; - /** Set to true if you want the unsorted icon to be shown when no sort is applied to this column. */ - unSortIcon?: boolean; - /** Set to true if you want this columns width to be fixed during 'size to fit' operation. */ - suppressSizeToFit?: boolean; - /** Set to true if you do not want this column to be resizable by dragging it's edge. */ - suppressResize?: boolean; - /** If grouping columns, the group this column belongs to. */ - headerGroup?: string; - /** Whether to show the column when the group is open / closed. */ - headerGroupShow?: string; - /** Set to true if this col is editable, otherwise false. Can also be a function to have different rows editable. */ - editable?: boolean | (Function); - /** Callbacks for editing.See editing section for further details. */ - newValueHandler?: Function; - /** If true, this cell gets refreshed when api.softRefreshView() gets called. */ - volatile?: boolean; - /** Cell template to use for cell. Useful for AngularJS cells. */ - template?: string; - /** Cell template URL to load template from to use for cell. Useful for AngularJS cells. */ - templateUrl?: string; - /** one of the built in filter names: [set, number, text], or a filter function*/ - filter?: string | Function; - /** The filter params are specific to each filter! */ - filterParams?: SetFilterParameters | TextAndNumberFilterParameters; - /** Rules for applying css classes */ - cellClassRules?: { - [cssClassName: string]: (Function | string); - }; - /** Callbacks for editing.See editing section for further details. */ - onCellValueChanged?: Function; - /** Function callback, gets called when a cell is clicked. */ - onCellClicked?: Function; - /** Function callback, gets called when a cell is double clicked. */ - onCellDoubleClicked?: Function; - /** Function callback, gets called when a cell is right clicked. */ - onCellContextMenu?: Function; - } -} -declare namespace ag.grid { - class SetFilterModel { - private colDef; - private filterParams; - private rowModel; - private valueGetter; - private allUniqueValues; - private availableUniqueValues; - private displayedValues; - private miniFilter; - private selectedValuesCount; - private selectedValuesMap; - private showingAvailableOnly; - private usingProvidedSet; - private doesRowPassOtherFilters; - constructor(colDef: ColDef, rowModel: any, valueGetter: any, doesRowPassOtherFilters: any); - refreshAfterNewRowsLoaded(keepSelection: any, isSelectAll: boolean): void; - refreshAfterAnyFilterChanged(): void; - private createAllUniqueValues(); - private createAvailableUniqueValues(); - private getUniqueValues(filterOutNotAvailable); - setMiniFilter(newMiniFilter: any): boolean; - getMiniFilter(): any; - private processMiniFilter(); - getDisplayedValueCount(): any; - getDisplayedValue(index: any): any; - selectEverything(): void; - isFilterActive(): boolean; - selectNothing(): void; - getUniqueValueCount(): any; - getUniqueValue(index: any): any; - unselectValue(value: any): void; - selectValue(value: any): void; - isValueSelected(value: any): boolean; - isEverythingSelected(): boolean; - isNothingSelected(): boolean; - getModel(): any; - setModel(model: any, isSelectAll: boolean): void; - } -} -/** The filter parameters for set filter */ -declare namespace ag.grid { - interface SetFilterParameters { - /** Same as cell renderer for grid (you can use the same one in both locations). Setting it separatly here allows for the value to be rendered differently in the filter. */ - cellRenderer?: Function; - /** The height of the cell. */ - cellHeight?: number; - /** The values to display in the filter. */ - values?: any; - /** What to do when new rows are loaded. The default is to reset the filter, as the set of values to select from can have changed. If you want to keep the selection, then set this value to 'keep'. */ - newRowsAction?: string; - /** If true, the filter will not remove items that are no longer availabe due to other filters. */ - suppressRemoveEntries?: boolean; - } -} -declare namespace ag.grid { - class SetFilter implements Filter { - private eGui; - private filterParams; - private rowHeight; - private model; - private filterChangedCallback; - private filterModifiedCallback; - private valueGetter; - private rowsInBodyContainer; - private colDef; - private localeTextFunc; - private cellRenderer; - private eListContainer; - private eFilterValueTemplate; - private eSelectAll; - private eListViewport; - private eMiniFilter; - private api; - private applyActive; - private eApplyButton; - init(params: any): void; - afterGuiAttached(): void; - isFilterActive(): boolean; - doesFilterPass(node: any): boolean; - getGui(): any; - onNewRowsLoaded(): void; - onAnyFilterChanged(): void; - private createTemplate(); - private createGui(); - private setupApply(); - private setContainerHeight(); - private drawVirtualRows(); - private ensureRowsRendered(start, finish); - private removeVirtualRows(rowsToRemove); - private insertRow(value, rowIndex); - private onCheckboxClicked(eCheckbox, value); - private filterChanged(); - private onMiniFilterChanged(); - private refreshVirtualRows(); - private clearVirtualRows(); - private onSelectAll(); - private updateAllCheckboxes(checked); - private addScrollListener(); - getApi(): any; - private createApi(); - } -} -declare namespace ag.grid { - class PopupService { - private ePopupParent; - init(ePopupParent: any): void; - positionPopup(eventSource: any, ePopup: any, minWidth: any): void; - addAsModalPopup(eChild: any, closeOnEsc: boolean): (event: any) => void; - } -} -declare namespace ag.grid { - interface RowNode { - /** Unique ID for the node. Can be though of as the index of the row in the original list, - * however exceptions apply so don't depend on uniqueness. */ - id?: number; - /** The user provided data */ - data?: any; - /** The parent node to this node, or empty if top level */ - parent?: RowNode; - /** How many levels this node is from the top */ - level?: number; - /** True if this node is a group node (ie has children) */ - group?: boolean; - /** True if this is the first child in this group */ - firstChild?: boolean; - /** True if this is the last child in this group */ - lastChild?: boolean; - /** The index of this node in the group */ - childIndex?: number; - /** True if this row is a floating row */ - floating?: boolean; - /** True if this row is a floating top row */ - floatingTop?: boolean; - /** True if this row is a floating bottom row */ - floatingBottom?: boolean; - /** If using quick filter, stores a string representation of the row for searching against */ - quickFilterAggregateText?: string; - /** Groups only - True if row is a footer. Footers have group = true and footer = true */ - footer?: boolean; - /** Groups only - Children of this group */ - children?: RowNode[]; - /** Groups only - The field we are pivoting on eg Country*/ - field?: string; - /** Groups only - The key for the pivot eg Ireland, UK, USA */ - key?: any; - /** Groups only - Filtered children of this group */ - childrenAfterFilter?: RowNode[]; - /** Groups only - Sorted children of this group */ - childrenAfterSort?: RowNode[]; - /** Groups only - Number of children and grand children */ - allChildrenCount?: number; - /** Groups only - True if group is expanded, otherwise false */ - expanded?: boolean; - /** Groups only - If doing footers, reference to the footer node for this group */ - sibling?: RowNode; - /** Not to be used, internal temporary map used by the grid when creating groups */ - _childrenMap?: {}; - } -} -declare namespace ag.grid { - class FilterManager { - private $compile; - private $scope; - private gridOptionsWrapper; - private grid; - private allFilters; - private rowModel; - private popupService; - private valueService; - private columnController; - private quickFilter; - private advancedFilterPresent; - private externalFilterPresent; - init(grid: Grid, gridOptionsWrapper: GridOptionsWrapper, $compile: any, $scope: any, columnController: ColumnController, popupService: PopupService, valueService: ValueService): void; - setFilterModel(model: any): void; - private setModelOnFilterWrapper(filter, newModel); - getFilterModel(): any; - setRowModel(rowModel: any): void; - isAdvancedFilterPresent(): boolean; - isAnyFilterPresent(): boolean; - isFilterPresentForCol(colId: any): any; - private doesFilterPass(node, filterToSkip?); - setQuickFilter(newFilter: any): boolean; - onFilterChanged(): void; - isQuickFilterPresent(): boolean; - doesRowPassOtherFilters(filterToSkip: any, node: any): boolean; - doesRowPassFilter(node: any, filterToSkip?: any): boolean; - private aggregateRowForQuickFilter(node); - refreshDisplayedValues(): void; - onNewRowsLoaded(): void; - private createValueGetter(column); - getFilterApi(column: Column): any; - private getOrCreateFilterWrapper(column); - private createFilterWrapper(column); - private assertMethodHasNoParameters(theMethod); - showFilter(column: Column, eventSource: any): void; - } -} -declare namespace ag.grid { - class TemplateService { - templateCache: any; - waitingCallbacks: any; - $scope: any; - init($scope: any): void; - getTemplate(url: any, callback: any): any; - handleHttpResult(httpResult: any, url: any): void; - } -} -declare namespace ag.grid { - class SelectionRendererFactory { - private angularGrid; - private selectionController; - init(angularGrid: any, selectionController: any): void; - createSelectionCheckbox(node: any, rowIndex: any): HTMLInputElement; - } -} -declare namespace ag.vdom { - class VElement { - static idSequence: number; - private id; - private elementAttachedListeners; - constructor(); - getId(): number; - addElementAttachedListener(listener: (element: Element) => void): void; - protected fireElementAttached(element: Element): void; - elementAttached(element: Element): void; - toHtmlString(): string; - } -} -declare namespace ag.vdom { - class VHtmlElement extends VElement { - private type; - private classes; - private eventListeners; - private attributes; - private children; - private innerHtml; - private style; - private bound; - private element; - constructor(type: string); - getElement(): HTMLElement; - setInnerHtml(innerHtml: string): void; - addStyles(styles: any): void; - private attachEventListeners(node); - addClass(newClass: string): void; - removeClass(oldClass: string): void; - addClasses(classes: string[]): void; - toHtmlString(): string; - private toHtmlStringChildren(); - private toHtmlStringAttributes(); - private toHtmlStringClasses(); - private toHtmlStringStyles(); - appendChild(child: any): void; - setAttribute(key: string, value: string): void; - addEventListener(event: string, listener: EventListener): void; - elementAttached(element: Element): void; - fireElementAttachedToChildren(element: Element): void; - } -} -declare namespace ag.vdom { - class VWrapperElement extends VElement { - private wrappedElement; - constructor(wrappedElement: Element); - toHtmlString(): string; - elementAttached(element: Element): void; - } -} -declare namespace ag.grid { - class RenderedCell { - private vGridCell; - private vSpanWithValue; - private vCellWrapper; - private vParentOfValue; - private checkboxOnChangeListener; - private column; - private data; - private node; - private rowIndex; - private editingCell; - private scope; - private isFirstColumn; - private gridOptionsWrapper; - private expressionService; - private selectionRendererFactory; - private rowRenderer; - private selectionController; - private $compile; - private templateService; - private cellRendererMap; - private eCheckbox; - private columnController; - private valueService; - private eventService; - private value; - private checkboxSelection; - constructor(isFirstColumn: any, column: any, $compile: any, rowRenderer: RowRenderer, gridOptionsWrapper: GridOptionsWrapper, expressionService: ExpressionService, selectionRendererFactory: SelectionRendererFactory, selectionController: SelectionController, templateService: TemplateService, cellRendererMap: { - [key: string]: any; - }, node: any, rowIndex: number, scope: any, columnController: ColumnController, valueService: ValueService, eventService: EventService); - getColumn(): Column; - private getValue(); - getVGridCell(): ag.vdom.VHtmlElement; - private getDataForRow(); - private setupComponents(); - startEditing(key?: number): void; - focusCell(forceBrowserFocus: boolean): void; - private stopEditing(eInput, blurListener, reset?); - createParams(): any; - createEvent(event: any, eventSource: any): any; - private addCellDoubleClickedHandler(); - private addCellContextMenuHandler(); - isCellEditable(): any; - private addCellClickedHandler(); - private populateCell(); - private addStylesFromCollDef(); - private addClassesFromCollDef(); - private addClassesFromRules(); - private addCellNavigationHandler(); - private isKeycodeForStartEditing(key); - createSelectionCheckbox(): void; - setSelected(state: boolean): void; - private createParentOfValue(); - isVolatile(): boolean; - refreshCell(): void; - private putDataIntoCell(); - private useCellRenderer(cellRenderer); - private addClasses(); - } -} -declare namespace ag.grid { - class RenderedRow { - vPinnedRow: any; - vBodyRow: any; - private renderedCells; - private scope; - private node; - private rowIndex; - private cellRendererMap; - private gridOptionsWrapper; - private parentScope; - private angularGrid; - private columnController; - private expressionService; - private rowRenderer; - private selectionRendererFactory; - private $compile; - private templateService; - private selectionController; - private pinning; - private eBodyContainer; - private ePinnedContainer; - private valueService; - private eventService; - constructor(gridOptionsWrapper: GridOptionsWrapper, valueService: ValueService, parentScope: any, angularGrid: Grid, columnController: ColumnController, expressionService: ExpressionService, cellRendererMap: { - [key: string]: any; - }, selectionRendererFactory: SelectionRendererFactory, $compile: any, templateService: TemplateService, selectionController: SelectionController, rowRenderer: RowRenderer, eBodyContainer: HTMLElement, ePinnedContainer: HTMLElement, node: any, rowIndex: number, eventService: EventService); - onRowSelected(selected: boolean): void; - softRefresh(): void; - getRenderedCellForColumn(column: Column): RenderedCell; - getCellForCol(column: Column): any; - destroy(): void; - private destroyScope(); - isDataInList(rows: any[]): boolean; - isNodeInList(nodes: RowNode[]): boolean; - isGroup(): boolean; - private drawNormalRow(); - private bindVirtualElement(vElement); - private createGroupRow(); - private createGroupSpanningEntireRowCell(padding); - setMainRowWidth(width: number): void; - private createChildScopeOrNull(data); - private addDynamicStyles(); - private createRowContainer(); - getRowNode(): any; - getRowIndex(): any; - refreshCells(colIds: string[]): void; - private addDynamicClasses(); - } -} -declare namespace ag.grid { - class SvgFactory { - static theInstance: SvgFactory; - static getInstance(): SvgFactory; - createFilterSvg(): Element; - createColumnShowingSvg(): Element; - createColumnHiddenSvg(): Element; - createMenuSvg(): Element; - createArrowUpSvg(): Element; - createArrowLeftSvg(): Element; - createArrowDownSvg(): Element; - createArrowRightSvg(): Element; - createSmallArrowDownSvg(): Element; - createArrowUpDownSvg(): Element; - } -} -declare namespace ag.grid { - function groupCellRendererFactory(gridOptionsWrapper: GridOptionsWrapper, selectionRendererFactory: SelectionRendererFactory, expressionService: ExpressionService): (params: any) => HTMLSpanElement; -} -declare namespace ag.grid { - class RowRenderer { - private columnModel; - private gridOptionsWrapper; - private angularGrid; - private selectionRendererFactory; - private gridPanel; - private $compile; - private $scope; - private selectionController; - private expressionService; - private templateService; - private cellRendererMap; - private rowModel; - private firstVirtualRenderedRow; - private lastVirtualRenderedRow; - private focusedCell; - private valueService; - private eventService; - private renderedRows; - private renderedTopFloatingRows; - private renderedBottomFloatingRows; - private eAllBodyContainers; - private eAllPinnedContainers; - private eBodyContainer; - private eBodyViewport; - private ePinnedColsContainer; - private eFloatingTopContainer; - private eFloatingTopPinnedContainer; - private eFloatingBottomContainer; - private eFloatingBottomPinnedContainer; - private eParentsOfRows; - init(columnModel: any, gridOptionsWrapper: GridOptionsWrapper, gridPanel: GridPanel, angularGrid: Grid, selectionRendererFactory: SelectionRendererFactory, $compile: any, $scope: any, selectionController: SelectionController, expressionService: ExpressionService, templateService: TemplateService, valueService: ValueService, eventService: EventService): void; - setRowModel(rowModel: any): void; - onIndividualColumnResized(column: Column): void; - setMainRowWidths(): void; - private findAllElements(gridPanel); - refreshAllFloatingRows(): void; - private refreshFloatingRows(renderedRows, rowData, pinnedContainer, bodyContainer, isTop); - refreshView(refreshFromIndex?: any): void; - softRefreshView(): void; - refreshRows(rowNodes: RowNode[]): void; - refreshCells(rowNodes: RowNode[], colIds: string[]): void; - rowDataChanged(rows: any): void; - private refreshAllVirtualRows(fromIndex); - refreshGroupRows(): void; - private removeVirtualRow(rowsToRemove, fromIndex?); - private unbindVirtualRow(indexToRemove); - drawVirtualRows(): void; - getFirstVirtualRenderedRow(): number; - getLastVirtualRenderedRow(): number; - private ensureRowsRendered(); - private insertRow(node, rowIndex, mainRowWidth); - getRenderedNodes(): any[]; - getIndexOfRenderedNode(node: any): number; - navigateToNextCell(key: any, rowIndex: number, column: Column): void; - private getNextCellToFocus(key, lastCellToFocus); - onRowSelected(rowIndex: number, selected: boolean): void; - focusCell(eCell: any, rowIndex: number, colIndex: number, colDef: ColDef, forceBrowserFocus: any): void; - getFocusedCell(): any; - setFocusedCell(rowIndex: any, colIndex: any): void; - startEditingNextCell(rowIndex: any, column: any, shiftKey: any): void; - } -} -declare namespace ag.grid { - class SelectionController { - private eParentsOfRows; - private angularGrid; - private gridOptionsWrapper; - private $scope; - private rowRenderer; - private selectedRows; - private selectedNodesById; - private rowModel; - private eventService; - init(angularGrid: Grid, gridPanel: GridPanel, gridOptionsWrapper: GridOptionsWrapper, $scope: any, rowRenderer: RowRenderer, eventService: EventService): void; - private initSelectedNodesById(); - getSelectedNodesById(): any; - getSelectedRows(): any; - getSelectedNodes(): any; - getBestCostNodeSelection(): any; - setRowModel(rowModel: any): void; - deselectAll(): void; - selectAll(): void; - selectNode(node: any, tryMulti: any, suppressEvents?: any): void; - private recursivelySelectAllChildren(node, suppressEvents?); - private recursivelyDeselectAllChildren(node); - private doWorkOfSelectNode(node, suppressEvents); - private addCssClassForNode_andInformVirtualRowListener(node); - private doWorkOfDeselectAllNodes(nodeToKeepSelected?); - private deselectRealNode(node); - private removeCssClassForNode(node); - deselectIndex(rowIndex: any): void; - deselectNode(node: any): void; - selectIndex(index: any, tryMulti: any, suppressEvents?: any): void; - private syncSelectedRowsAndCallListener(suppressEvents?); - private recursivelyCheckIfSelected(node); - isNodeSelected(node: any): boolean; - private updateGroupParentsIfNeeded(); - } -} -declare namespace ag.grid { - class RenderedHeaderElement { - private eRoot; - private dragStartX; - constructor(eRoot: HTMLElement); - getERoot(): HTMLElement; - destroy(): void; - refreshFilterIcon(): void; - refreshSortIcon(): void; - onDragStart(): void; - onDragging(dragChange: number): void; - onIndividualColumnResized(column: Column): void; - addDragHandler(eDraggableElement: any): void; - stopDragging(listenersToRemove: any): void; - } -} -declare namespace ag.grid { - class RenderedHeaderCell extends RenderedHeaderElement { - private static DEFAULT_SORTING_ORDER; - private eHeaderCell; - private eSortAsc; - private eSortDesc; - private eSortNone; - private eFilterIcon; - private column; - private gridOptionsWrapper; - private parentScope; - private childScope; - private filterManager; - private columnController; - private $compile; - private angularGrid; - private parentGroup; - private startWidth; - constructor(column: Column, parentGroup: RenderedHeaderGroupCell, gridOptionsWrapper: GridOptionsWrapper, parentScope: any, filterManager: FilterManager, columnController: ColumnController, $compile: any, angularGrid: Grid, eRoot: HTMLElement); - getGui(): HTMLElement; - destroy(): void; - private createScope(); - private addAttributes(); - private addClasses(); - private addMenu(); - private addSortIcons(headerCellLabel); - private setupComponents(); - private useRenderer(headerNameValue, headerCellRenderer, headerCellLabel); - refreshFilterIcon(): void; - refreshSortIcon(): void; - private getNextSortDirection(); - private addSortHandling(headerCellLabel); - onDragStart(): void; - onDragging(dragChange: number): void; - onIndividualColumnResized(column: Column): void; - private addHeaderClassesFromCollDef(); - } -} -declare namespace ag.grid { - class RenderedHeaderGroupCell extends RenderedHeaderElement { - private eHeaderGroup; - private eHeaderGroupCell; - private eHeaderCellResize; - private columnGroup; - private gridOptionsWrapper; - private columnController; - private children; - private groupWidthStart; - private childrenWidthStarts; - private minWidth; - private parentScope; - private filterManager; - private $compile; - private angularGrid; - constructor(columnGroup: ColumnGroup, gridOptionsWrapper: GridOptionsWrapper, columnController: ColumnController, eRoot: HTMLElement, angularGrid: Grid, parentScope: any, filterManager: FilterManager, $compile: any); - getGui(): HTMLElement; - destroy(): void; - refreshFilterIcon(): void; - refreshSortIcon(): void; - onIndividualColumnResized(column: Column): void; - private setupComponents(); - private isColumnInOurDisplayedGroup(column); - private setWidthOfGroupHeaderCell(); - private addGroupExpandIcon(eGroupCellLabel); - onDragStart(): void; - onDragging(dragChange: any): void; - } -} -declare namespace ag.grid { - class HeaderRenderer { - private gridOptionsWrapper; - private columnController; - private angularGrid; - private filterManager; - private $scope; - private $compile; - private ePinnedHeader; - private eHeaderContainer; - private eRoot; - private headerElements; - init(gridOptionsWrapper: GridOptionsWrapper, columnController: ColumnController, gridPanel: GridPanel, angularGrid: Grid, filterManager: FilterManager, $scope: any, $compile: any): void; - private findAllElements(gridPanel); - refreshHeader(): void; - private insertHeadersWithGrouping(); - private insertHeadersWithoutGrouping(); - updateSortIcons(): void; - updateFilterIcons(): void; - onIndividualColumnResized(column: Column): void; - } -} -declare namespace ag.grid { - class GroupCreator { - private valueService; - init(valueService: ValueService): void; - group(rowNodes: RowNode[], groupedCols: Column[], expandByDefault: any): RowNode[]; - isExpanded(expandByDefault: any, level: any): boolean; - } -} -declare namespace ag.grid { - class InMemoryRowController { - private gridOptionsWrapper; - private columnController; - private angularGrid; - private filterManager; - private $scope; - private allRows; - private rowsAfterGroup; - private rowsAfterFilter; - private rowsAfterSort; - private rowsAfterMap; - private model; - private groupCreator; - private valueService; - private eventService; - constructor(); - init(gridOptionsWrapper: GridOptionsWrapper, columnController: ColumnController, angularGrid: any, filterManager: FilterManager, $scope: any, groupCreator: GroupCreator, valueService: ValueService, eventService: EventService): void; - private createModel(); - getModel(): any; - forEachInMemory(callback: Function): void; - forEachNode(callback: Function): void; - forEachNodeAfterFilter(callback: Function): void; - forEachNodeAfterFilterAndSort(callback: Function): void; - private recursivelyWalkNodesAndCallback(list, callback); - updateModel(step: any): void; - private defaultGroupAggFunctionFactory(valueColumns, valueKeys); - doAggregate(): void; - expandOrCollapseAll(expand: boolean, rowNodes: RowNode[]): void; - private recursivelyClearAggData(nodes); - private recursivelyCreateAggData(nodes, groupAggFunction, level); - private doSort(); - private recursivelyResetSort(rowNodes); - private sortList(nodes, sortOptions); - private updateChildIndexes(nodes); - onPivotChanged(): void; - private doPivoting(); - private doFilter(); - private filterItems(rowNodes); - private recursivelyResetFilter(nodes); - setAllRows(rows: RowNode[], firstId?: number): void; - private recursivelyAddIdToNodes(nodes, index); - private recursivelyCheckUserProvidedNodes(nodes, parent, level); - private getTotalChildCount(rowNodes); - private doGroupMapping(); - private addToMap(mappedData, originalNodes); - private createFooterNode(groupNode); - } -} -declare namespace ag.grid { - class VirtualPageRowController { - rowRenderer: any; - datasourceVersion: any; - gridOptionsWrapper: any; - angularGrid: any; - datasource: any; - virtualRowCount: any; - foundMaxRow: any; - pageCache: any; - pageCacheSize: any; - pageLoadsInProgress: any; - pageLoadsQueued: any; - pageAccessTimes: any; - accessTime: any; - maxConcurrentDatasourceRequests: any; - maxPagesInCache: any; - pageSize: any; - overflowSize: any; - init(rowRenderer: any, gridOptionsWrapper: any, angularGrid: any): void; - setDatasource(datasource: any): void; - reset(): void; - createNodesFromRows(pageNumber: any, rows: any): any; - removeFromLoading(pageNumber: any): void; - pageLoadFailed(pageNumber: any): void; - pageLoaded(pageNumber: any, rows: any, lastRow: any): void; - putPageIntoCacheAndPurge(pageNumber: any, rows: any): void; - checkMaxRowAndInformRowRenderer(pageNumber: any, lastRow: any): void; - isPageAlreadyLoading(pageNumber: any): boolean; - doLoadOrQueue(pageNumber: any): void; - addToQueueAndPurgeQueue(pageNumber: any): void; - findLeastRecentlyAccessedPage(pageIndexes: any): number; - checkQueueForNextLoad(): void; - loadPage(pageNumber: any): void; - requestIsDaemon(datasourceVersionCopy: any): boolean; - getVirtualRow(rowIndex: any): any; - forEachNode(callback: any): void; - getModel(): { - getVirtualRow: (index: any) => any; - getVirtualRowCount: () => any; - forEachInMemory: (callback: any) => void; - forEachNode: (callback: any) => void; - forEachNodeAfterFilter: (callback: any) => void; - forEachNodeAfterFilterAndSort: (callback: any) => void; - }; - } -} -declare namespace ag.grid { - class PaginationController { - eGui: any; - btNext: any; - btPrevious: any; - btFirst: any; - btLast: any; - lbCurrent: any; - lbTotal: any; - lbRecordCount: any; - lbFirstRowOnPage: any; - lbLastRowOnPage: any; - ePageRowSummaryPanel: any; - angularGrid: any; - callVersion: any; - gridOptionsWrapper: any; - datasource: any; - pageSize: any; - rowCount: any; - foundMaxRow: any; - totalPages: any; - currentPage: any; - init(angularGrid: any, gridOptionsWrapper: any): void; - setDatasource(datasource: any): void; - reset(): void; - setTotalLabels(): void; - calculateTotalPages(): void; - pageLoaded(rows: any, lastRowIndex: any): void; - updateRowLabels(): void; - loadPage(): void; - isCallDaemon(versionCopy: any): boolean; - onBtNext(): void; - onBtPrevious(): void; - onBtFirst(): void; - onBtLast(): void; - isZeroPagesToDisplay(): boolean; - enableOrDisableButtons(): void; - createTemplate(): string; - getGui(): any; - setupComponents(): void; - } -} -declare namespace ag.grid { - class BorderLayout { - private eNorthWrapper; - private eSouthWrapper; - private eEastWrapper; - private eWestWrapper; - private eCenterWrapper; - private eOverlayWrapper; - private eCenterRow; - private eNorthChildLayout; - private eSouthChildLayout; - private eEastChildLayout; - private eWestChildLayout; - private eCenterChildLayout; - private isLayoutPanel; - private fullHeight; - private layoutActive; - private eGui; - private id; - private childPanels; - private centerHeightLastTime; - private sizeChangeListners; - constructor(params: any); - addSizeChangeListener(listener: Function): void; - fireSizeChanged(): void; - private setupPanels(params); - private setupPanel(content, ePanel); - getGui(): any; - doLayout(): boolean; - private layoutChild(childPanel); - private layoutHeight(); - private layoutHeightFullHeight(); - private layoutHeightNormal(); - getCentreHeight(): number; - private layoutWidth(); - setEastVisible(visible: any): void; - setOverlayVisible(visible: any): void; - setSouthVisible(visible: any): void; - } -} -declare namespace ag.grid { - class GridPanel { - private masterSlaveService; - private gridOptionsWrapper; - private columnModel; - private rowRenderer; - private rowModel; - private layout; - private forPrint; - private scrollWidth; - private scrollLagCounter; - private eBodyViewport; - private eRoot; - private eBody; - private eBodyContainer; - private ePinnedColsContainer; - private eHeaderContainer; - private ePinnedHeader; - private eHeader; - private eParentsOfRows; - private eBodyViewportWrapper; - private ePinnedColsViewport; - private eFloatingTop; - private ePinnedFloatingTop; - private eFloatingTopContainer; - private eFloatingBottom; - private ePinnedFloatingBottom; - private eFloatingBottomContainer; - init(gridOptionsWrapper: GridOptionsWrapper, columnModel: ColumnController, rowRenderer: RowRenderer, masterSlaveService: MasterSlaveService): void; - getLayout(): BorderLayout; - private setupComponents(); - getPinnedFloatingTop(): HTMLElement; - getFloatingTopContainer(): HTMLElement; - getPinnedFloatingBottom(): HTMLElement; - getFloatingBottomContainer(): HTMLElement; - private createTemplate(); - ensureIndexVisible(index: any): void; - ensureColIndexVisible(index: any): void; - showLoading(loading: any): void; - getWidthForSizeColsToFit(): number; - setRowModel(rowModel: any): void; - getBodyContainer(): HTMLElement; - getBodyViewport(): HTMLElement; - getPinnedColsContainer(): HTMLElement; - getHeaderContainer(): HTMLElement; - getRoot(): HTMLElement; - getPinnedHeader(): HTMLElement; - getRowsParent(): HTMLElement[]; - private queryHtmlElement(selector); - private findElements(); - private mouseWheelListener(event); - setBodyContainerWidth(): void; - setPinnedColContainerWidth(): void; - showPinnedColContainersIfNeeded(): void; - onBodyHeightChange(): void; - private sizeHeaderAndBody(); - private sizeHeaderAndBodyNormal(); - private sizeHeaderAndBodyForPrint(); - setHorizontalScrollPosition(hScrollPosition: number): void; - private addScrollListener(); - private requestDrawVirtualRows(); - private scrollHeader(bodyLeftPosition); - private scrollPinned(bodyTopPosition); - } -} -declare namespace ag.grid { - class DragAndDropService { - static theInstance: DragAndDropService; - static getInstance(): DragAndDropService; - dragItem: any; - constructor(); - stopDragging(): void; - setDragCssClasses(eListItem: any, dragging: any): void; - addDragSource(eDragSource: any, dragSourceCallback: any): void; - onMouseDownDragSource(eDragSource: any, dragSourceCallback: any): void; - addDropTarget(eDropTarget: any, dropTargetCallback: any): void; - } -} -declare namespace ag.grid { - class AgList { - private eGui; - private uniqueId; - private modelChangedListeners; - private itemSelectedListeners; - private beforeDropListeners; - private itemMovedListeners; - private dragSources; - private emptyMessage; - private eFilterValueTemplate; - private eListParent; - private model; - private cellRenderer; - private readOnly; - constructor(); - setReadOnly(readOnly: boolean): void; - setEmptyMessage(emptyMessage: any): void; - getUniqueId(): any; - addStyles(styles: any): void; - addCssClass(cssClass: any): void; - addDragSource(dragSource: any): void; - addModelChangedListener(listener: Function): void; - addItemSelectedListener(listener: any): void; - addItemMovedListener(listener: any): void; - addBeforeDropListener(listener: any): void; - private fireItemMoved(fromIndex, toIndex); - private fireModelChanged(); - private fireItemSelected(item); - private fireBeforeDrop(item); - private setupComponents(); - setModel(model: any): void; - getModel(): any; - setCellRenderer(cellRenderer: any): void; - refreshView(): void; - private insertRows(); - private insertBlankMessage(); - private setupAsDropTarget(); - private externalAcceptDrag(dragEvent); - private externalDrop(dragEvent); - private externalNoDrop(); - private addItemToList(newItem); - private addDragAndDropToListItem(eListItem, item); - private internalAcceptDrag(targetColumn, dragItem, eListItem); - private internalDrop(targetColumn, draggedColumn); - private internalNoDrop(eListItem); - private dragAfterThisItem(targetColumn, draggedColumn); - private setDropCssClasses(eListItem, state); - getGui(): any; - } -} -declare namespace ag.grid { - class ColumnSelectionPanel { - private gridOptionsWrapper; - private columnController; - private cColumnList; - layout: any; - private eRootPanel; - constructor(columnController: ColumnController, gridOptionsWrapper: GridOptionsWrapper, eventService: EventService); - private columnsChanged(); - getDragSource(): any; - private columnCellRenderer(params); - private setupComponents(); - private onItemMoved(fromIndex, toIndex); - getGui(): any; - } -} -declare namespace ag.grid { - class GroupSelectionPanel { - gridOptionsWrapper: any; - columnController: ColumnController; - inMemoryRowController: any; - cColumnList: any; - layout: any; - constructor(columnController: ColumnController, inMemoryRowController: any, gridOptionsWrapper: GridOptionsWrapper, eventService: EventService); - private columnsChanged(); - addDragSource(dragSource: any): void; - private columnCellRenderer(params); - private setupComponents(); - private onBeforeDrop(newItem); - private onItemMoved(fromIndex, toIndex); - } -} -declare namespace ag.grid { - class AgDropdownList { - private itemSelectedListeners; - private eValue; - private agList; - private eGui; - private hidePopupCallback; - private selectedItem; - private cellRenderer; - private popupService; - constructor(popupService: PopupService); - setWidth(width: any): void; - addItemSelectedListener(listener: any): void; - fireItemSelected(item: any): void; - setupComponents(): void; - itemSelected(item: any): void; - onClick(): void; - getGui(): any; - setSelected(item: any): void; - setCellRenderer(cellRenderer: any): void; - refreshView(): void; - setModel(model: any): void; - } -} -declare namespace ag.grid { - class ValuesSelectionPanel { - private gridOptionsWrapper; - private columnController; - private cColumnList; - private layout; - private popupService; - constructor(columnController: ColumnController, gridOptionsWrapper: GridOptionsWrapper, popupService: PopupService, eventService: EventService); - getLayout(): any; - private columnsChanged(); - addDragSource(dragSource: any): void; - private cellRenderer(params); - private setupComponents(); - private beforeDropListener(newItem); - } -} -declare namespace ag.grid { - class VerticalStack { - isLayoutPanel: any; - childPanels: any; - eGui: any; - constructor(); - addPanel(panel: any, height: any): void; - getGui(): any; - doLayout(): void; - } -} -declare namespace ag.grid { - class ToolPanel { - layout: any; - constructor(); - init(columnController: any, inMemoryRowController: any, gridOptionsWrapper: GridOptionsWrapper, popupService: PopupService, eventService: EventService): void; - } -} -declare namespace ag.grid { - interface GridOptions { - virtualPaging?: boolean; - toolPanelSuppressPivot?: boolean; - toolPanelSuppressValues?: boolean; - rowsAlreadyGrouped?: boolean; - suppressRowClickSelection?: boolean; - suppressCellSelection?: boolean; - sortingOrder?: string[]; - suppressMultiSort?: boolean; - suppressHorizontalScroll?: boolean; - unSortIcon?: boolean; - rowHeight?: number; - rowBuffer?: number; - enableColResize?: boolean; - enableCellExpressions?: boolean; - enableSorting?: boolean; - enableServerSideSorting?: boolean; - enableFilter?: boolean; - enableServerSideFilter?: boolean; - colWidth?: number; - suppressMenuHide?: boolean; - singleClickEdit?: boolean; - debug?: boolean; - icons?: any; - angularCompileRows?: boolean; - angularCompileFilters?: boolean; - angularCompileHeaders?: boolean; - localeText?: any; - localeTextFunc?: Function; - suppressScrollLag?: boolean; - groupSuppressAutoColumn?: boolean; - groupSelectsChildren?: boolean; - groupHidePivotColumns?: boolean; - groupIncludeFooter?: boolean; - groupUseEntireRow?: boolean; - groupSuppressRow?: boolean; - groupSuppressBlankHeader?: boolean; - forPrint?: boolean; - groupColumnDef?: any; - context?: any; - rowStyle?: any; - rowClass?: any; - groupDefaultExpanded?: any; - slaveGrids?: GridOptions[]; - rowSelection?: string; - rowDeselection?: boolean; - rowData?: any[]; - floatingTopRowData?: any[]; - floatingBottomRowData?: any[]; - showToolPanel?: boolean; - groupKeys?: string[]; - groupAggFields?: string[]; - columnDefs?: any[]; - datasource?: any; - pinnedColumnCount?: number; - groupHeaders?: boolean; - headerHeight?: number; - groupRowInnerRenderer?(params: any): void; - groupRowRenderer?: Function | Object; - isScrollLag?(): boolean; - isExternalFilterPresent?(): boolean; - doesExternalFilterPass?(node: RowNode): boolean; - getRowStyle?: any; - getRowClass?: any; - headerCellRenderer?: any; - groupAggFunction?(nodes: any[]): any; - onReady?(api: any): void; - onModelUpdated?(): void; - onCellClicked?(params: any): void; - onCellDoubleClicked?(params: any): void; - onCellContextMenu?(params: any): void; - onCellValueChanged?(params: any): void; - onCellFocused?(params: any): void; - onRowSelected?(params: any): void; - onSelectionChanged?(): void; - onBeforeFilterChanged?(): void; - onAfterFilterChanged?(): void; - onFilterModified?(): void; - onBeforeSortChanged?(): void; - onAfterSortChanged?(): void; - onVirtualRowRemoved?(params: any): void; - onRowClicked?(params: any): void; - api?: GridApi; - columnApi?: ColumnApi; - } -} -declare namespace ag.grid { - class GridApi { - private grid; - private rowRenderer; - private headerRenderer; - private filterManager; - private columnController; - private inMemoryRowController; - private selectionController; - private gridOptionsWrapper; - private gridPanel; - private valueService; - private masterSlaveService; - private eventService; - private csvCreator; - constructor(grid: Grid, rowRenderer: RowRenderer, headerRenderer: HeaderRenderer, filterManager: FilterManager, columnController: ColumnController, inMemoryRowController: InMemoryRowController, selectionController: SelectionController, gridOptionsWrapper: GridOptionsWrapper, gridPanel: GridPanel, valueService: ValueService, masterSlaveService: MasterSlaveService, eventService: EventService); - /** Used internally by grid. Not intended to be used by the client. Interface may change between releases. */ - __getMasterSlaveService(): MasterSlaveService; - getDataAsCsv(params?: CsvExportParams): string; - exportDataAsCsv(params?: CsvExportParams): void; - setDatasource(datasource: any): void; - onNewDatasource(): void; - setRowData(rowData: any): void; - setRows(rows: any): void; - onNewRows(): void; - setFloatingTopRowData(rows: any[]): void; - setFloatingBottomRowData(rows: any[]): void; - onNewCols(): void; - setColumnDefs(colDefs: ColDef[]): void; - unselectAll(): void; - refreshRows(rowNodes: RowNode[]): void; - refreshCells(rowNodes: RowNode[], colIds: string[]): void; - rowDataChanged(rows: any): void; - refreshView(): void; - softRefreshView(): void; - refreshGroupRows(): void; - refreshHeader(): void; - isAnyFilterPresent(): boolean; - isAdvancedFilterPresent(): boolean; - isQuickFilterPresent(): boolean; - getModel(): any; - onGroupExpandedOrCollapsed(refreshFromIndex: any): void; - expandAll(): void; - collapseAll(): void; - addVirtualRowListener(rowIndex: any, callback: any): void; - setQuickFilter(newFilter: any): void; - selectIndex(index: any, tryMulti: any, suppressEvents: any): void; - deselectIndex(index: any): void; - selectNode(node: any, tryMulti: any, suppressEvents: any): void; - deselectNode(node: any): void; - selectAll(): void; - deselectAll(): void; - recomputeAggregates(): void; - sizeColumnsToFit(): void; - showLoading(show: any): void; - isNodeSelected(node: any): boolean; - getSelectedNodesById(): { - [nodeId: number]: RowNode; - }; - getSelectedNodes(): RowNode[]; - getSelectedRows(): any[]; - getBestCostNodeSelection(): any; - getRenderedNodes(): any[]; - ensureColIndexVisible(index: any): void; - ensureIndexVisible(index: any): void; - ensureNodeVisible(comparator: any): void; - forEachInMemory(callback: Function): void; - forEachNode(callback: Function): void; - forEachNodeAfterFilter(callback: Function): void; - forEachNodeAfterFilterAndSort(callback: Function): void; - getFilterApiForColDef(colDef: any): any; - getFilterApi(key: any): any; - getColumnDef(key: any): ColDef; - onFilterChanged(): void; - setSortModel(sortModel: any): void; - getSortModel(): any; - setFilterModel(model: any): void; - getFilterModel(): any; - getFocusedCell(): any; - setFocusedCell(rowIndex: any, colIndex: any): void; - setHeaderHeight(headerHeight: number): void; - setGroupHeaders(groupHeaders: boolean): void; - showToolPanel(show: any): void; - isToolPanelShowing(): boolean; - hideColumn(colId: any, hide: any): void; - hideColumns(colIds: any, hide: any): void; - getColumnState(): [any]; - setColumnState(state: any): void; - doLayout(): void; - getValue(colDef: ColDef, data: any, node: any): any; - addEventListener(eventType: string, listener: Function): void; - addGlobalListener(listener: Function): void; - removeEventListener(eventType: string, listener: Function): void; - removeGlobalListener(listener: Function): void; - refreshPivot(): void; - } -} -declare namespace ag.grid { - class ValueService { - private gridOptionsWrapper; - private expressionService; - private columnController; - init(gridOptionsWrapper: GridOptionsWrapper, expressionService: ExpressionService, columnController: ColumnController): void; - getValue(colDef: ColDef, data: any, node: any): any; - private executeValueGetter(valueGetter, data, colDef, node); - private getValueCallback(data, node, field); - } -} -declare namespace ag.grid { - class Grid { - private virtualRowCallbacks; - private gridOptions; - private gridOptionsWrapper; - private inMemoryRowController; - private doingVirtualPaging; - private paginationController; - private virtualPageRowController; - private finished; - private selectionController; - private columnController; - private rowRenderer; - private headerRenderer; - private filterManager; - private valueService; - private masterSlaveService; - private eventService; - private toolPanel; - private gridPanel; - private eRootPanel; - private toolPanelShowing; - private doingPagination; - private usingInMemoryModel; - private rowModel; - constructor(eGridDiv: any, gridOptions: any, globalEventListener?: Function, $scope?: any, $compile?: any, quickFilterOnScope?: any); - getRowModel(): any; - private periodicallyDoLayout(); - private setupComponents($scope, $compile, eUserProvidedDiv, globalEventListener); - private onColumnChanged(event); - refreshPivot(): void; - getEventService(): EventService; - private onIndividualColumnResized(column); - showToolPanel(show: any): void; - isToolPanelShowing(): boolean; - isUsingInMemoryModel(): boolean; - setDatasource(datasource?: any): void; - private refreshHeaderAndBody(); - setFinished(): void; - onQuickFilterChanged(newFilter: any): void; - onFilterModified(): void; - onFilterChanged(): void; - onRowClicked(event: any, rowIndex: any, node: any): void; - showLoadingPanel(show: any): void; - private setupColumns(); - updateModelAndRefresh(step: any, refreshFromIndex?: any): void; - setRows(rows?: any, firstId?: any): void; - ensureNodeVisible(comparator: any): void; - getFilterModel(): any; - setFocusedCell(rowIndex: any, colIndex: any): void; - getSortModel(): any; - setSortModel(sortModel: any): void; - onSortingChanged(): void; - addVirtualRowListener(rowIndex: any, callback: any): void; - onVirtualRowSelected(rowIndex: any, selected: any): void; - onVirtualRowRemoved(rowIndex: any): void; - setColumnDefs(colDefs?: ColDef[]): void; - updateBodyContainerWidthAfterColResize(): void; - updatePinnedColContainerWidthAfterColResize(): void; - doLayout(): void; - } -} -declare namespace ag.grid { - class ComponentUtil { - static SIMPLE_PROPERTIES: string[]; - static SIMPLE_NUMBER_PROPERTIES: string[]; - static SIMPLE_BOOLEAN_PROPERTIES: string[]; - static WITH_IMPACT_NUMBER_PROPERTIES: string[]; - static WITH_IMPACT_BOOLEAN_PROPERTIES: string[]; - static WITH_IMPACT_OTHER_PROPERTIES: string[]; - static CALLBACKS: string[]; - static ALL_PROPERTIES: string[]; - static copyAttributesToGridOptions(gridOptions: GridOptions, component: any): GridOptions; - static processOnChange(changes: any, gridOptions: GridOptions, component: any): void; - static toBoolean(value: any): boolean; - static toNumber(value: any): number; - } -} -declare namespace ag.grid { - class AgGridNg2 { - private elementDef; - private _agGrid; - private _initialised; - private gridOptions; - private api; - private columnApi; - modelUpdated: any; - cellClicked: any; - cellDoubleClicked: any; - cellContextMenu: any; - cellValueChanged: any; - cellFocused: any; - rowSelected: any; - selectionChanged: any; - beforeFilterChanged: any; - afterFilterChanged: any; - filterModified: any; - beforeSortChanged: any; - afterSortChanged: any; - virtualRowRemoved: any; - rowClicked: any; - ready: any; - columnEverythingChanged: any; - columnPivotChanged: any; - columnValueChanged: any; - columnMoved: any; - columnVisible: any; - columnGroupOpened: any; - columnResized: any; - columnPinnedCountChanged: any; - virtualPaging: boolean; - toolPanelSuppressPivot: boolean; - toolPanelSuppressValues: boolean; - rowsAlreadyGrouped: boolean; - suppressRowClickSelection: boolean; - suppressCellSelection: boolean; - sortingOrder: string[]; - suppressMultiSort: boolean; - suppressHorizontalScroll: boolean; - unSortIcon: boolean; - rowHeight: number; - rowBuffer: number; - enableColResize: boolean; - enableCellExpressions: boolean; - enableSorting: boolean; - enableServerSideSorting: boolean; - enableFilter: boolean; - enableServerSideFilter: boolean; - colWidth: number; - suppressMenuHide: boolean; - debug: boolean; - icons: any; - angularCompileRows: boolean; - angularCompileFilters: boolean; - angularCompileHeaders: boolean; - localeText: any; - localeTextFunc: Function; - groupSuppressAutoColumn: boolean; - groupSelectsChildren: boolean; - groupHidePivotColumns: boolean; - groupIncludeFooter: boolean; - groupUseEntireRow: boolean; - groupSuppressRow: boolean; - groupSuppressBlankHeader: boolean; - groupColumnDef: any; - forPrint: boolean; - context: any; - rowStyle: any; - rowClass: any; - headerCellRenderer: any; - groupDefaultExpanded: any; - slaveGrids: GridOptions[]; - rowSelection: string; - rowDeselection: boolean; - rowData: any[]; - floatingTopRowData: any[]; - floatingBottomRowData: any[]; - showToolPanel: boolean; - groupKeys: string[]; - groupAggFunction: (nodes: any[]) => void; - groupAggFields: string[]; - columnDefs: any[]; - datasource: any; - pinnedColumnCount: number; - quickFilterText: string; - groupHeaders: boolean; - headerHeight: number; - constructor(elementDef: any); - onInit(): void; - onChange(changes: any): void; - private globalEventListener(eventType, event); - } -} -declare namespace ag.grid { -} -declare var exports: any; -declare var module: any; -declare namespace ag.grid { - interface Filter { - getGui(): any; - isFilterActive(): boolean; - doesFilterPass(params: any): boolean; - afterGuiAttached?(params?: { - hidePopup?: Function; - }): void; - onNewRowsLoaded?(): void; - } -} diff --git a/types/ag-grid/tsconfig.json b/types/ag-grid/tsconfig.json deleted file mode 100644 index fd05cca8e1..0000000000 --- a/types/ag-grid/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "files": [ - "index.d.ts", - "ag-grid-tests.ts" - ], - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - } -} \ No newline at end of file From 1c83708f546101f568abe06ec922e358cd6739e7 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 5 Aug 2017 02:11:19 +0200 Subject: [PATCH 075/166] [angular-ui-router-default] remove typings provided by package directly (#18332) --- notNeededPackages.json | 6 +++ .../angular-ui-router-default-tests.ts | 39 ------------------- types/angular-ui-router-default/index.d.ts | 20 ---------- types/angular-ui-router-default/tsconfig.json | 23 ----------- 4 files changed, 6 insertions(+), 82 deletions(-) delete mode 100644 types/angular-ui-router-default/angular-ui-router-default-tests.ts delete mode 100644 types/angular-ui-router-default/index.d.ts delete mode 100644 types/angular-ui-router-default/tsconfig.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 2550b723f2..9afe537a7f 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -12,6 +12,12 @@ "sourceRepoURL": "https://github.com/epoberezkin/ajv", "asOfVersion": "1.0.0" }, + { + "libraryName": "angular-ui-router-default", + "typingsPackageName": "angular-ui-router-default", + "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-default", + "asOfVersion": "0.0.5" + }, { "libraryName": "antd", "typingsPackageName": "antd", diff --git a/types/angular-ui-router-default/angular-ui-router-default-tests.ts b/types/angular-ui-router-default/angular-ui-router-default-tests.ts deleted file mode 100644 index 39e792e3a1..0000000000 --- a/types/angular-ui-router-default/angular-ui-router-default-tests.ts +++ /dev/null @@ -1,39 +0,0 @@ -import * as angular from "angular"; - -angular.module("test", [ - "ui.router", - "ui.router.default" -]) - .config(function($stateProvider: angular.ui.IStateProvider) { - $stateProvider - .state('concrete', { - // no abstract or default - }) - .state('string', { - abstract: true, - default: 'concrete' - }) - .state('func_str', { - abstract: true, - default: function($rootScope): string { return $rootScope.test; } - }) - .state('func_promise', { - abstract: true, - default: function($q: ng.IQService): ng.IPromise { - return $q.when("concrete"); - } - }) - .state('injection_str', { - abstract: true, - default: ["$rootScope", function($rootScope) { - return $rootScope.test; - }] - }) - .state('injection_promise', { - abstract: true, - default: ["$q", function($q: ng.IQService) { - return $q.when("concrete"); - }] - }) - ; - }); diff --git a/types/angular-ui-router-default/index.d.ts b/types/angular-ui-router-default/index.d.ts deleted file mode 100644 index 98bb93b51b..0000000000 --- a/types/angular-ui-router-default/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for angular-ui-router-default 0.5 -// Project: https://github.com/nonplus/angular-ui-router-default -// Definitions by: Stepan Riha -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import * as aur from "angular-ui-router"; - -declare module "angular" { - namespace ui { - export type StateDefaultSpecifier = string - | ((...args: any[]) => string) - | ((...args: any[]) => ng.IPromise) - | (string | ((...args: any[]) => string))[] - | (string | ((...args: any[]) => ng.IPromise))[]; - interface IState { - default?: StateDefaultSpecifier - } - } -} diff --git a/types/angular-ui-router-default/tsconfig.json b/types/angular-ui-router-default/tsconfig.json deleted file mode 100644 index 7cda72ddf5..0000000000 --- a/types/angular-ui-router-default/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "angular-ui-router-default-tests.ts" - ] -} \ No newline at end of file From 257d5eb891b5601f155466ddc42ab1dbf9473ce7 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 5 Aug 2017 02:12:29 +0200 Subject: [PATCH 076/166] [base64url] remove typings provided by package directly (#18335) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- notNeededPackages.json | 6 +++ types/base64url/base64url-tests.ts | 24 ---------- types/base64url/index.d.ts | 72 ------------------------------ types/base64url/tsconfig.json | 22 --------- 4 files changed, 6 insertions(+), 118 deletions(-) delete mode 100644 types/base64url/base64url-tests.ts delete mode 100644 types/base64url/index.d.ts delete mode 100644 types/base64url/tsconfig.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 9afe537a7f..f5abb1bec7 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -72,6 +72,12 @@ "sourceRepoURL": "http://www.babylonjs.com/", "asOfVersion": "2.4.1" }, + { + "libraryName": "base64url", + "typingsPackageName": "base64url", + "sourceRepoURL": "https://github.com/brianloveswords/base64url", + "asOfVersion": "2.0.0" + }, { "libraryName": "BigInteger.js", "typingsPackageName": "big-integer", diff --git a/types/base64url/base64url-tests.ts b/types/base64url/base64url-tests.ts deleted file mode 100644 index f9f206fbc9..0000000000 --- a/types/base64url/base64url-tests.ts +++ /dev/null @@ -1,24 +0,0 @@ -import * as base64url from "base64url"; - -// default -let str = base64url("some value"); -str = base64url("some value", "hex"); -str = base64url(new Buffer("some value")); - -// encode -str = base64url.encode("some value"); -str = base64url.encode("some value", "hex"); -str = base64url.encode(new Buffer("some value")); - -// decode -str = base64url.decode("ADA="); -str = base64url.decode("ADA=", "binary"); - -// toBase64 -str = base64url.toBase64("ADA="); -str = base64url.toBase64(new Buffer("ADA=", "base64")); - -// fromBase64 -str = base64url.fromBase64("ADA="); - -let buf = base64url.toBase64("ADA="); \ No newline at end of file diff --git a/types/base64url/index.d.ts b/types/base64url/index.d.ts deleted file mode 100644 index e99ae3d2b3..0000000000 --- a/types/base64url/index.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -// Type definitions for base64url v2.0.0 -// Project: https://github.com/brianloveswords/base64url -// Definitions by: Stepan Miroshin -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -/// - -/** - * For encoding and decoding base64url! - * v2.0.0 - */ - -/** - * Encoding type - */ -declare type Encoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "utf16le" | "base64" | "binary" | "hex" - -interface IBase64Url { - /** - * Encode input to base64url - * @param {string} input Incoming input - * @param {Encoding} encoding Default 'utf8' - * @return {string} - */ - (input: string, encoding?: Encoding): string; - /** - * Encode input to base64url - * @param {Buffer} input Incoming value - */ - (inout: Buffer): string; - /** - * Encode input to base64url - * - * @param {string} input Incoming input - * @param {Encoding} encoding Default 'utf8' - * @returns {string} - */ - encode(input: string, encoding?: Encoding): string; - /** - * Encode input to base64url - * @param {Buffer} input Incoming value - */ - encode(input: Buffer): string; - /** - * Convert a base64url encoded string into a raw string. - * @param {string} base64url base64url encoded string - * @param {Encoding} encoding Encoding defaults to 'utf8' - * @returns {string} - */ - decode(base64url: string, encoding?: string): string; - /** - * Convert a base64url encoded string to a base64 encoded string - * @param {string | Buffer} base64url base64url encoded value - * @returns {string} - */ - toBase64(base64url: string | Buffer): string; - /** - * Convert a base64 encoded string to a base64url encoded string - * @param {string} base64 encoded string - * @returns {string} - */ - fromBase64(base64: string): string; - /** - * Convert a base64url encoded string to a Buffer - * @param {string} base64url encoded string - * @returns {Buffer} - */ - toBuffer(base64url: string): Buffer; -} - -declare const base64url: IBase64Url; -export = base64url; \ No newline at end of file diff --git a/types/base64url/tsconfig.json b/types/base64url/tsconfig.json deleted file mode 100644 index d362086905..0000000000 --- a/types/base64url/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "base64url-tests.ts" - ] -} \ No newline at end of file From f1ee5b73a504c12ba0c8b18786be2156af241ddf Mon Sep 17 00:00:00 2001 From: dylandupreez Date: Sat, 5 Aug 2017 02:14:11 +0200 Subject: [PATCH 077/166] Added: coverScreen property missin gbut specified in documentation (#18415) * Added: coverScreen property missin gbut specified in documentation * Incremented version number as this is that latest version of the node module * Fixed: Whitespace issues * Fixed: trailing whitespace in comment --- types/react-native-modalbox/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types/react-native-modalbox/index.d.ts b/types/react-native-modalbox/index.d.ts index 9bd075fbe0..57b8ddeff1 100644 --- a/types/react-native-modalbox/index.d.ts +++ b/types/react-native-modalbox/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native-modalbox 1.3 +// Type definitions for react-native-modalbox 1.4 // Project: https://github.com/maxs15/react-native-modalbox#readme // Definitions by: Kyle Roach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -149,6 +149,14 @@ export interface ModalProps extends ViewProperties { */ backButtonClose?: boolean; + /** + * + * Default is false + * @type {boolean} + * @memberof ModalProps + */ + coverScreen?: boolean; + /** * If the modal should appear open without animation upon first mount * From 89e1856678961ae9d3161144d74750c013251147 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 5 Aug 2017 02:17:51 +0200 Subject: [PATCH 078/166] [p-try] introduce typings (#18586) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/p-try/index.d.ts | 8 ++++++++ types/p-try/p-try-tests.ts | 16 ++++++++++++++++ types/p-try/tsconfig.json | 22 ++++++++++++++++++++++ types/p-try/tslint.json | 1 + 4 files changed, 47 insertions(+) create mode 100644 types/p-try/index.d.ts create mode 100644 types/p-try/p-try-tests.ts create mode 100644 types/p-try/tsconfig.json create mode 100644 types/p-try/tslint.json diff --git a/types/p-try/index.d.ts b/types/p-try/index.d.ts new file mode 100644 index 0000000000..82eca22d8c --- /dev/null +++ b/types/p-try/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for p-try 1.0 +// Project: https://github.com/sindresorhus/p-try#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pTry; + +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 new file mode 100644 index 0000000000..054d92e22f --- /dev/null +++ b/types/p-try/p-try-tests.ts @@ -0,0 +1,16 @@ +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; +}); diff --git a/types/p-try/tsconfig.json b/types/p-try/tsconfig.json new file mode 100644 index 0000000000..ea1784a0e7 --- /dev/null +++ b/types/p-try/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-try-tests.ts" + ] +} diff --git a/types/p-try/tslint.json b/types/p-try/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-try/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From e4aa15b7b3dbbef77071c742ac7d2fd83d50615a Mon Sep 17 00:00:00 2001 From: Dmytro Borysov Date: Sat, 5 Aug 2017 02:18:30 +0200 Subject: [PATCH 079/166] [react-router-redux] - switching action type from `string` to a specific string (#18566) * [react-router-redux] - switching action type from `string` to a specific string * [react-router-redux] - exposing value instead of type --- types/react-router-redux/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-router-redux/index.d.ts b/types/react-router-redux/index.d.ts index 3af56972e3..86ba9f2116 100644 --- a/types/react-router-redux/index.d.ts +++ b/types/react-router-redux/index.d.ts @@ -25,7 +25,7 @@ export interface ConnectedRouterProps { } export class ConnectedRouter extends React.Component> {} -export const LOCATION_CHANGE: string; +export const LOCATION_CHANGE = '@@router/LOCATION_CHANGE'; export interface RouterState { location: Location | null; @@ -33,7 +33,7 @@ export interface RouterState { export const routerReducer: Reducer; -export const CALL_HISTORY_METHOD: string; +export const CALL_HISTORY_METHOD = '@@router/CALL_HISTORY_METHOD'; export function push(location: LocationDescriptor, state?: LocationState): RouterAction; export function replace(location: LocationDescriptor, state?: LocationState): RouterAction; From 405347a636147460d165f4e9464d2b183cbf3d8b Mon Sep 17 00:00:00 2001 From: Chris Sinclair Date: Sat, 5 Aug 2017 13:34:07 +0100 Subject: [PATCH 080/166] [fetch-mock] Added missing flush() method to FetchMockStatic --- types/fetch-mock/fetch-mock-tests.ts | 4 ++++ types/fetch-mock/index.d.ts | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/types/fetch-mock/fetch-mock-tests.ts b/types/fetch-mock/fetch-mock-tests.ts index c9b1737a47..02e360026e 100644 --- a/types/fetch-mock/fetch-mock-tests.ts +++ b/types/fetch-mock/fetch-mock-tests.ts @@ -1,4 +1,5 @@ import * as fetchMock from "fetch-mock"; +import { MockResponse } from "fetch-mock"; fetchMock.mock("http://test.com", 200); fetchMock.mock(/test\.com/, 200); @@ -65,3 +66,6 @@ const myMatcher: fetchMock.MockMatcherFunction = ( url: string, opts: fetchMock.MockRequest ) => true; + +fetchMock.flush().then(resolved => resolved.forEach(console.log)); +fetchMock.flush().catch(r => r); diff --git a/types/fetch-mock/index.d.ts b/types/fetch-mock/index.d.ts index f1c109bb53..4b89b1decd 100644 --- a/types/fetch-mock/index.d.ts +++ b/types/fetch-mock/index.d.ts @@ -1,6 +1,9 @@ -// Type definitions for fetch-mock 5.8 +// Type definitions for fetch-mock 5.12 // Project: https://github.com/wheresrhys/fetch-mock -// Definitions by: Alexey Svetliakov , Tamir Duberstein , Risto Keravuori +// Definitions by: Alexey Svetliakov +// Tamir Duberstein +// Risto Keravuori +// Chris Sinclair // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -333,6 +336,12 @@ declare namespace fetchMock { */ reset(): this; + /** + * Returns a promise that resolves once all fetches handled by fetch-mock + * have resolved. + */ + flush(): Promise; + /** * Returns all calls to fetch, grouped by whether fetch-mock matched * them or not. From d791c1294373fd5d3f7c6b04f76a39f27abec141 Mon Sep 17 00:00:00 2001 From: Peter Zhang <913542647@qq.com> Date: Sun, 6 Aug 2017 01:26:42 +0800 Subject: [PATCH 081/166] change all class type to interface except "Chart", and change some properties of "Chart" to readonly --- types/canvasjs/index.d.ts | 50 +++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/types/canvasjs/index.d.ts b/types/canvasjs/index.d.ts index 0796aa40a0..2534f66b2f 100644 --- a/types/canvasjs/index.d.ts +++ b/types/canvasjs/index.d.ts @@ -12,22 +12,22 @@ declare namespace CanvasJS { /** * All Title options become available as properties after Chart Render. You can access them either via get method or dot notation. But you can change / set those values only via set method. */ - title: ChartTitle; + readonly title: ChartTitle; /** * The subtitles of the chart. * You can access them either via get method or dot notation. But you can change / set those values only via set method. */ - subtitles: ChartTitle[]; + readonly subtitles: ChartTitle[]; /** * The toolTip of the chart. */ - toolTip: ChartToolTip; - axisX: ChartAxisX[]; - axisX2: ChartAxisX[]; - axisY: ChartAxisY[]; - axisY2: ChartAxisY[]; - stripLines: ChartStrip[]; - data: ChartDataSeries[]; + readonly toolTip: ChartToolTip; + readonly axisX: ChartAxisX[]; + readonly axisX2: ChartAxisX[]; + readonly axisY: ChartAxisY[]; + readonly axisY2: ChartAxisY[]; + readonly stripLines: ChartStrip[]; + readonly data: ChartDataSeries[]; /** * Initializes a new instance of CanvasJS Chart. * @param containerId the DOM ID of the location where the chart is to be rendered @@ -322,7 +322,7 @@ declare namespace CanvasJS { subtitles?: ChartTitleOptions[]; } - class ChartTitleOptions { + interface ChartTitleOptions { /** * Sets the Title’s text. * Default: null @@ -427,7 +427,7 @@ declare namespace CanvasJS { dockInsidePlotArea?: boolean; } - class ChartTitle extends ChartTitleOptions { + interface ChartTitle extends ChartTitleOptions { /** * Can be accessed via get method or dot notation. */ @@ -455,7 +455,7 @@ declare namespace CanvasJS { remove(): void; } - class ChartLegendOptions { + interface ChartLegendOptions { /** * Sets the cursor type for legend items. * Default: "default" @@ -589,7 +589,7 @@ declare namespace CanvasJS { dockInsidePlotArea?: boolean; } - class ChartLegend extends ChartLegendOptions { + interface ChartLegend extends ChartLegendOptions { /** * Returns the specified property of legend. * @param propertyName Name of the property. @@ -635,7 +635,7 @@ declare namespace CanvasJS { dataSeriesIndex: number; } - class ChartAxisOptions { + interface ChartAxisOptions { /** * Sets the Axis Title. * Default: null @@ -735,7 +735,7 @@ declare namespace CanvasJS { viewportMaximum?: number; } - class ChartStripLinesOptions { + interface ChartStripLinesOptions { /** * Sets the point where the stripLine has to be plotted or drawn along the axis X. * Default: null @@ -857,7 +857,7 @@ declare namespace CanvasJS { labelFormatter?(e?: { chart: Chart, axis: ChartAxisYOptions, stripline: ChartStripLinesOptions }): string; } - class ChartStrip extends ChartStripLinesOptions { + interface ChartStrip extends ChartStripLinesOptions { /** * Returns the specified property of stripLines. * @param propertyName Name of the property @@ -876,7 +876,7 @@ declare namespace CanvasJS { remove(): void; } - class ChartAxisXOptions extends ChartAxisOptions { + interface ChartAxisXOptions extends ChartAxisOptions { /** * TitleWrap specifies whether to wrap or clip axis title once its width crosses titleMaxWidth. * Default: true @@ -1061,7 +1061,7 @@ declare namespace CanvasJS { stripLines?: ChartStripLinesOptions | ChartStripLinesOptions[]; } - class ChartAxisX extends ChartAxisXOptions { + interface ChartAxisX extends ChartAxisXOptions { /** * Returns the specified property of Axis. * @param propertyName Name of the property. @@ -1097,7 +1097,7 @@ declare namespace CanvasJS { */ convertPixelToValue(pixel: number): number; } - class ChartAxisYOptions extends ChartAxisXOptions { + interface ChartAxisYOptions extends ChartAxisXOptions { /** * When includeZero is set to true, axisY sets the range in such a way that Zero is a part of it. It is set to true by default. * But, whenever y values are very big and difference among dataPoints are hard to judge, @@ -1108,7 +1108,7 @@ declare namespace CanvasJS { includeZero?: boolean; } - class ChartAxisY extends ChartAxisYOptions { + interface ChartAxisY extends ChartAxisYOptions { /** * Returns the specified property of Axis. * @param propertyName Name of the property. @@ -1145,7 +1145,7 @@ declare namespace CanvasJS { convertPixelToValue(pixel: number): number; } - class ChartToolTipOptions { + interface ChartToolTipOptions { /** * While mouse hovers from one dataPoint to another there is a smooth transition in toolTip. * This effect can be controlled by animationEnabled Property. Setting it to false, will disable the animation and toolTip will directly switch from one dataPoint to the other. @@ -1238,7 +1238,7 @@ declare namespace CanvasJS { backgroundColor?: string; } - class ChartToolTip extends ChartToolTipOptions { + interface ChartToolTip extends ChartToolTipOptions { /** * Returns the specified property of legend. * @param propertyName Name of the property. @@ -1253,7 +1253,7 @@ declare namespace CanvasJS { set(propertyName: string, value: number | string | boolean, updateChart?: boolean): void; } - class ChartDataCommon { + interface ChartDataCommon { /** * Sets the dataPoint Name. dataPoint name is shown in various places like toolTip & legend unless overridden. * Default: Automatically Named ("dataPoint 1", "dataPoint 2" .. ) @@ -1456,7 +1456,7 @@ declare namespace CanvasJS { mouseout?: (event: ChartEvent) => void; } - class ChartDataSeriesOptions extends ChartDataCommon { + interface ChartDataSeriesOptions extends ChartDataCommon { /** * Sets the visibility of dataSeries. Data Series is visible by default and you can hide the same by setting visible property to false. * Default: true @@ -1626,7 +1626,7 @@ declare namespace CanvasJS { nullDataLineDashType?: string; } - class ChartDataSeries extends ChartDataSeriesOptions { + interface ChartDataSeries extends ChartDataSeriesOptions { /** * Returns the specified property of dataSeries * @param propertyName Name of the property. From 56aef5dca4502fb4a43bc0682e2f5005edbc4b1f Mon Sep 17 00:00:00 2001 From: Peter Zhang <913542647@qq.com> Date: Sun, 6 Aug 2017 01:58:15 +0800 Subject: [PATCH 082/166] Use a method signature instead of a property signature of function type. --- types/canvasjs/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/canvasjs/index.d.ts b/types/canvasjs/index.d.ts index 2534f66b2f..161afb7ac1 100644 --- a/types/canvasjs/index.d.ts +++ b/types/canvasjs/index.d.ts @@ -515,28 +515,28 @@ declare namespace CanvasJS { * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemmouseover?: (event: ChartEvent) => void; + itemmouseover?(event: ChartEvent): void; /** * Sets the mousemove event handler for the legend, which is triggered when the user moves the mouse(input device) within a legend item. * When the event is triggered, the event related data is passed as a parameter to the assigned event handler. * Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemmousemove?: (event: ChartEvent) => void; + itemmousemove?(event: ChartEvent): void; /** * Sets the mouseout event handler for the legend, which is triggered when the user moves the mouse pointer outside a legend item. * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. * Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemmouseout?: (event: ChartEvent) => void; + itemmouseout?(event: ChartEvent): void; /** * Sets the click event handler for the legend, which is triggered when the user clicks on a legend item. * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. * Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemclick?: (event: ChartEvent) => void; + itemclick?(event: ChartEvent): void; /** * Setting reversed property to true shows legend items in reverse order. * Default: false; @@ -1432,28 +1432,28 @@ declare namespace CanvasJS { * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - click?: (event: ChartEvent) => void; + click?(event: ChartEvent): void; /** * Sets the mouseover event handler for dataSeries which is triggered when user moves Mouse Over a dataSeries. * Upon event, a parameter that contains event related data is sent to the assigned event handler. * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - mouseover?: (event: ChartEvent) => void; + mouseover?(event: ChartEvent): void; /** * Sets the mousemove event handler for dataSeries which is triggered when user Moves mouse on a dataSeries. * Upon event, a parameter that contains event related data is sent to the assigned event handler. * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - mousemove?: (event: ChartEvent) => void; + mousemove?(event: ChartEvent): void; /** * Sets the mouseout event handler for dataSeries which is triggered when user moves mouse out of a dataSeries. * Upon event, a parameter that contains event related data is sent to the assigned event handler. * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - mouseout?: (event: ChartEvent) => void; + mouseout?(event: ChartEvent): void; } interface ChartDataSeriesOptions extends ChartDataCommon { From 7d16e3c80d7be80c99683634f207c1a31f08f7e1 Mon Sep 17 00:00:00 2001 From: smac89 Date: Sat, 5 Aug 2017 12:39:23 -0600 Subject: [PATCH 083/166] Fixed error with listening for other events --- types/merge2/index.d.ts | 6 +++++- types/merge2/merge2-tests.ts | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index 0f503e48d1..f8c6ef88af 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -20,6 +20,9 @@ interface Merge2Stream extends NodeJS.ReadWriteStream { */ add(...args: Array): Merge2Stream; + on(event: string, listener: (...args: any[]) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + /** * @summary It will emit 'queueDrain' when all streams merged. * If you set end === false in options, this event give you a notice that @@ -29,7 +32,8 @@ interface Merge2Stream extends NodeJS.ReadWriteStream { * * @return This stream */ - on(event: 'queueDrain', callback: () => void): this; + on(event: 'queueDrain', listener: () => void): this; + once(event: 'queueDrain', listener: () => void): this; } /** diff --git a/types/merge2/merge2-tests.ts b/types/merge2/merge2-tests.ts index 823ef8f389..69c8bdd6bd 100644 --- a/types/merge2/merge2-tests.ts +++ b/types/merge2/merge2-tests.ts @@ -32,6 +32,10 @@ stream.add(stream4, stream5); // .. stream.end(); +stream.on('data', (data: any) => { + console.log(data); +}); + // equal to merge2([stream1, stream2], stream3) stream = merge2(); stream.add([stream1, stream2]); From 85cecb8297402917e6c7cc1b725e7bf821f1bc71 Mon Sep 17 00:00:00 2001 From: smac89 Date: Sat, 5 Aug 2017 12:47:04 -0600 Subject: [PATCH 084/166] Updated dtslint fixes --- types/merge2/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index f8c6ef88af..ced48b7e0a 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -20,9 +20,6 @@ interface Merge2Stream extends NodeJS.ReadWriteStream { */ add(...args: Array): Merge2Stream; - on(event: string, listener: (...args: any[]) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** * @summary It will emit 'queueDrain' when all streams merged. * If you set end === false in options, this event give you a notice that @@ -33,7 +30,10 @@ interface Merge2Stream extends NodeJS.ReadWriteStream { * @return This stream */ on(event: 'queueDrain', listener: () => void): this; + on(event: string, listener: (...args: any[]) => void): this; + once(event: 'queueDrain', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; } /** From 03c324b1d0ae44240ef5e0c1fa1e2d2223887308 Mon Sep 17 00:00:00 2001 From: Sahin Vardar Date: Sat, 5 Aug 2017 20:46:15 +0200 Subject: [PATCH 085/166] Add typings for react-native-sensor-manager * Added NativeModulesStatic interface which is used as a type for NativeModule var in react-native type definition. * Now you can argument NativeModule through augmenting NativeModuleStatic. * Added NativeModuleStatic augmentation for react-native-sensor-manager which adds the SensorManager to the NativeModules. * Augmented DeviceEventEmitterStatic which adds type informations to 'addListener' function which works in conjunction with SensorManager. --- types/react-native-sensor-manager/index.d.ts | 44 +++++++++++ .../react-native-sensor-manager-tests.ts | 73 +++++++++++++++++++ .../react-native-sensor-manager/tsconfig.json | 22 ++++++ types/react-native-sensor-manager/tslint.json | 20 +++++ types/react-native/index.d.ts | 8 +- 5 files changed, 166 insertions(+), 1 deletion(-) create mode 100644 types/react-native-sensor-manager/index.d.ts create mode 100644 types/react-native-sensor-manager/react-native-sensor-manager-tests.ts create mode 100644 types/react-native-sensor-manager/tsconfig.json create mode 100644 types/react-native-sensor-manager/tslint.json diff --git a/types/react-native-sensor-manager/index.d.ts b/types/react-native-sensor-manager/index.d.ts new file mode 100644 index 0000000000..248fb84e09 --- /dev/null +++ b/types/react-native-sensor-manager/index.d.ts @@ -0,0 +1,44 @@ +// Type definitions for react-native-sensor-manager 0.1 +// Project: https://github.com/kprimice/react-native-sensor-manager +// Definitions by: Sahin Vardar +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +export * from 'react-native' + +interface SensorManager { + startAccelerometer(delay: number): void; + stopAccelerometer(): void; + startGyroscope(delay: number): void; + stopGyroscope(): void; + startMagnetometer(delay: number): void; + stopMagnetometer(): void; + startStepCounter(delay: number): void; + stopStepCounter(): void; + startThermometer(delay: number): void; + stopThermometer(): void; + startMotionValue(delay: number): void; + stopMotionValue(): void; + startOrientation(delay: number): void; + stopOrientation(): void; + startProximity(delay: number): void; + stopProximity(): void; + startLightSensor(delay: number): void; + stopLightSensor(): void; +} + +declare module 'react-native' { + export interface DeviceEventEmitterStatic { + addListener(event: 'Accelerometer' | 'Gyroscope' | 'Magnetometer', callback: (data: {x: number, y: number, z: number}) => void): EmitterSubscription; + addListener(event: 'Orientation', callback: (data: {azimuth: number, pitch: number, roll: number}) => void): EmitterSubscription; + addListener(event: 'StepCounter', callback: (data: {steps: number}) => void): EmitterSubscription; + addListener(event: 'Thermometer', callback: (data: {temp: number}) => void): EmitterSubscription; + addListener(event: 'LightSensor', callback: (data: {light: number}) => void): EmitterSubscription; + addListener(event: 'Proximity', callback: (data: {isNear: boolean, value: number, maxRange: number}) => void): EmitterSubscription ; + } + + export interface NativeModulesStatic { + SensorManager: SensorManager + } +} diff --git a/types/react-native-sensor-manager/react-native-sensor-manager-tests.ts b/types/react-native-sensor-manager/react-native-sensor-manager-tests.ts new file mode 100644 index 0000000000..746b68744f --- /dev/null +++ b/types/react-native-sensor-manager/react-native-sensor-manager-tests.ts @@ -0,0 +1,73 @@ +import { DeviceEventEmitter, NativeModules } from 'react-native' + +const SensorManager = NativeModules.SensorManager + +let num: number; +let bool: boolean; + +SensorManager.startAccelerometer(num); +SensorManager.stopAccelerometer(); + +SensorManager.startGyroscope(num); +SensorManager.stopGyroscope(); + +SensorManager.startMagnetometer(num); +SensorManager.stopMagnetometer(); + +SensorManager.startStepCounter(num); +SensorManager.stopStepCounter(); + +SensorManager.startThermometer(num); +SensorManager.stopThermometer(); + +SensorManager.startMotionValue(num); +SensorManager.stopMotionValue(); + +SensorManager.startOrientation(num); +SensorManager.stopOrientation(); + +SensorManager.startProximity(num); +SensorManager.stopProximity(); + +SensorManager.startLightSensor(num); +SensorManager.stopLightSensor(); + + +DeviceEventEmitter.addListener('Accelerometer', (data) => { + num = data.x; + num = data.y; + num = data.z; +}); + + +DeviceEventEmitter.addListener('Gyroscope', (data) => { + num = data.x; + num = data.y; + num = data.z; +}); + +DeviceEventEmitter.addListener('Magnetometer', (data) => { + num = data.x; + num = data.y; + num = data.z; +}); + +DeviceEventEmitter.addListener('Orientation', (data) => { + num = data.azimuth; + num = data.pitch; + num = data.roll; +}); + +DeviceEventEmitter.addListener('Thermometer', (data) => { + num = data.temp; +}); + +DeviceEventEmitter.addListener('LightSensor', (data) => { + num = data.light; +}); + +DeviceEventEmitter.addListener('Proximity', (data) => { + bool = data.isNear; + num = data.value; + num = data.value; +}); diff --git a/types/react-native-sensor-manager/tsconfig.json b/types/react-native-sensor-manager/tsconfig.json new file mode 100644 index 0000000000..15d71dd648 --- /dev/null +++ b/types/react-native-sensor-manager/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-native-sensor-manager-tests.ts" + ] +} \ No newline at end of file diff --git a/types/react-native-sensor-manager/tslint.json b/types/react-native-sensor-manager/tslint.json new file mode 100644 index 0000000000..816b158d9d --- /dev/null +++ b/types/react-native-sensor-manager/tslint.json @@ -0,0 +1,20 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "ban-types": false, + "align": false, + "array-type": false, + "comment-format": false, + "interface-over-type-literal": false, + "jsdoc-format": false, + "no-misused-new": false, + "no-consecutive-blank-lines": false, + "no-empty-interface": false, + "no-padding": false, + "no-var": false, + "prefer-declare-function": false, + "prefer-method-signature": false, + "semicolon": false, + "strict-export-declare-modifiers": false + } +} diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 697b212134..c3d3fe9114 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -8927,6 +8927,12 @@ export var NativeEventEmitter: NativeEventEmitter * adding all event listeners directly to RCTNativeAppEventEmitter. */ export var NativeAppEventEmitter: RCTNativeAppEventEmitter + +/** + * Empty interface which can be augmented by other type definitions for the NativeModules var below. + */ +interface NativeModulesStatic {} + /** * Native Modules written in ObjectiveC/Swift/Java exposed via the RCTBridge * Define lazy getters for each module. These will return the module if already loaded, or load it if not. @@ -8934,7 +8940,7 @@ export var NativeAppEventEmitter: RCTNativeAppEventEmitter * Use: * const MyModule = NativeModules.ModuleName */ -export var NativeModules: any +export var NativeModules: NativeModulesStatic export var Platform: PlatformStatic export var PixelRatio: PixelRatioStatic From a8a181bd1c2c123bbfa9b6485e33d63f9bc96e15 Mon Sep 17 00:00:00 2001 From: Kazuhiro Yamamoto Date: Sun, 6 Aug 2017 11:13:56 +0900 Subject: [PATCH 086/166] node: net.Socket.remoteAddress may be undefined --- types/node/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 31dd081d34..1f883a77fc 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2354,7 +2354,7 @@ declare module "net" { unref(): void; ref(): void; - remoteAddress: string; + remoteAddress?: string; remoteFamily: string; remotePort: number; localAddress: string; From 9c14489f0c4f98061b9907e273d92d7ba06eb84f Mon Sep 17 00:00:00 2001 From: "BIKS\\amit" Date: Sun, 6 Aug 2017 09:51:48 +0300 Subject: [PATCH 087/166] flatpicker plugins type support --- types/flatpickr/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/flatpickr/index.d.ts b/types/flatpickr/index.d.ts index fce4214c90..281d69acdf 100644 --- a/types/flatpickr/index.d.ts +++ b/types/flatpickr/index.d.ts @@ -70,6 +70,7 @@ declare namespace Flatpickr { weekNumbers?: boolean; wrap?: boolean; locale?: string | Locale; + plugins?: any; } interface Locale { From bed9a94a7a673f52343d4fc9e265faf84cb1395b Mon Sep 17 00:00:00 2001 From: Vincas Stonys Date: Sun, 6 Aug 2017 15:33:02 +0300 Subject: [PATCH 088/166] Add removeAll() definition to react-notification-system-redux --- types/react-notification-system-redux/index.d.ts | 3 ++- types/react-notification-system-redux/package.json | 2 +- .../react-notification-system-redux-tests.tsx | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/types/react-notification-system-redux/index.d.ts b/types/react-notification-system-redux/index.d.ts index 43161bfa55..1e009a4f46 100644 --- a/types/react-notification-system-redux/index.d.ts +++ b/types/react-notification-system-redux/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-notification-system-redux 1.0 +// Type definitions for react-notification-system-redux 1.1 // Project: https://github.com/gor181/react-notification-system-redux // Definitions by: Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -35,4 +35,5 @@ declare namespace Notifications { const info: NotificationShow; const success: NotificationShow; const warning: NotificationShow; + function removeAll(): Action; } diff --git a/types/react-notification-system-redux/package.json b/types/react-notification-system-redux/package.json index e52256ea90..36ce503807 100644 --- a/types/react-notification-system-redux/package.json +++ b/types/react-notification-system-redux/package.json @@ -2,4 +2,4 @@ "dependencies": { "redux": "^3.6.0" } -} \ No newline at end of file +} diff --git a/types/react-notification-system-redux/react-notification-system-redux-tests.tsx b/types/react-notification-system-redux/react-notification-system-redux-tests.tsx index 2225fa744a..631147976a 100644 --- a/types/react-notification-system-redux/react-notification-system-redux-tests.tsx +++ b/types/react-notification-system-redux/react-notification-system-redux-tests.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { createStore, Store } from "redux"; import { Notification } from "react-notification-system"; import * as Notifications from "react-notification-system-redux"; -import { reducer, show, hide, info, error, warning, success, NotificationLevel } from "react-notification-system-redux"; +import { reducer, removeAll, show, hide, info, error, warning, success, NotificationLevel } from "react-notification-system-redux"; class Test extends React.Component { private test() { @@ -20,6 +20,7 @@ class Test extends React.Component { hide(notification); hide("uid"); hide(123); + removeAll(); } render() { From 7fb16692ad82cef0740e56a0ce226d8c523bc585 Mon Sep 17 00:00:00 2001 From: "BIKS\\amit" Date: Sun, 6 Aug 2017 18:13:30 +0300 Subject: [PATCH 089/166] update to array of any --- types/flatpickr/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/flatpickr/index.d.ts b/types/flatpickr/index.d.ts index 281d69acdf..eb29ddfa14 100644 --- a/types/flatpickr/index.d.ts +++ b/types/flatpickr/index.d.ts @@ -70,7 +70,7 @@ declare namespace Flatpickr { weekNumbers?: boolean; wrap?: boolean; locale?: string | Locale; - plugins?: any; + plugins?: any[]; } interface Locale { From 307c6a057113f2c51978835adb5e4a949db2005e Mon Sep 17 00:00:00 2001 From: Simone Mariotti Date: Sat, 5 Aug 2017 13:20:42 +0200 Subject: [PATCH 090/166] Update TeleBot --- types/telebot/index.d.ts | 6 +++--- types/telebot/telebot-tests.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/telebot/index.d.ts b/types/telebot/index.d.ts index 11c04317da..4c601ae3af 100644 --- a/types/telebot/index.d.ts +++ b/types/telebot/index.d.ts @@ -119,13 +119,13 @@ declare class telebot { static addMethods(...methods: Array): any; // methods.js - keyboard(keyboard: string, opt?: any): any; + keyboard(buttons: any[][], opt?: any): any; button(type: string, text?: string): any; - inlineKeyboard(inlineKeyboard: string): any; + inlineKeyboard(inlineButtons: any[][]): any; - inlineQueryKeyboard(inlineKeyboard: string): any; + inlineQueryKeyboard(config: any[][]): any; inlineButton(text: string, opt?: any): any; diff --git a/types/telebot/telebot-tests.ts b/types/telebot/telebot-tests.ts index d2515e3871..91f4f4531f 100644 --- a/types/telebot/telebot-tests.ts +++ b/types/telebot/telebot-tests.ts @@ -70,13 +70,13 @@ bot.plug({ } }); -bot.keyboard('this', {}); +bot.keyboard([[]], {}); bot.button('this', 'test'); -bot.inlineKeyboard('string'); +bot.inlineKeyboard([[]]); -bot.inlineQueryKeyboard('string'); +bot.inlineQueryKeyboard([[]]); bot.inlineButton('string', {}); From 908145d2e70d897efa300f96fc579f53bab09f5e Mon Sep 17 00:00:00 2001 From: Rudi Chen Date: Mon, 17 Jul 2017 14:11:47 -0400 Subject: [PATCH 091/166] [react-codemirror] Add types introduced in v1.0.0 --- types/react-codemirror/index.d.ts | 41 ++++++++++++++----- .../react-codemirror-tests.tsx | 13 ++++-- 2 files changed, 40 insertions(+), 14 deletions(-) diff --git a/types/react-codemirror/index.d.ts b/types/react-codemirror/index.d.ts index 2a9eae6667..afe3db2f75 100644 --- a/types/react-codemirror/index.d.ts +++ b/types/react-codemirror/index.d.ts @@ -1,22 +1,43 @@ -// Type definitions for React Codemirror v0.2.6 +// Type definitions for React Codemirror v1.0.0 // Project: https://github.com/JedWatson/react-codemirror // Definitions by: Vicky Lai +// Rudi Chen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.4 /// /// declare namespace ReactCodeMirror { interface ReactCodeMirrorProps extends React.Props { - onChange?: (newValue: string) => any; // called when a change is made - onFocusChange?: (focused: boolean) => any; // called when the editor is focused or loses focus - onScroll?: (scrollInfo: CodeMirror.ScrollInfo) => any; // called when the editor is scrolled - options?: CodeMirror.EditorConfiguration; // options passed to the CodeMirror instance - path?: string; // the identifying name for the textarea - value?: string; // the editor value - className?: string; // CSS className for the outer element - codeMirrorInstance?: CodeMirror.Editor; // the CodeMirror instance + /** Automatically focuses the editor when it is mounted (default false) */ + autoFocus?: boolean; + /** Automatically persist changes to underlying textarea (default false) */ + autoSave?: boolean; + /** Adds a custom CSS class to the editor */ + className?: string; + /** Provides a specific CodeMirror instance (defaults to `require('codemirror')`) */ + codeMirrorInstance?: (host: any, options?: CodeMirror.EditorConfiguration) => CodeMirror.Editor; + /** Provides the default (not changed tracked) value to the editor */ + defaultValue?: string; + /** Set the name of the editor input field */ + name?: string; + /** Called when a change is made */ + onChange?: (newValue: string, change: CodeMirror.EditorChange) => any; + /** Called when the cursor is moved */ + onCursorActivity?: (codemirror: CodeMirror.Editor) => any; + /** Called when the editor is focused or loses focus */ + onFocusChange?: (focused: boolean) => any; + /** Called when the editor is scrolled */ + onScroll?: (scrollInfo: CodeMirror.ScrollInfo) => any; + /** Options passed to the CodeMirror instance */ + options?: CodeMirror.EditorConfiguration; + /** (DEPRECATED), use `name` */ + path?: string; + /** Preserve previous scroll position after updating value */ + preserveScrollPosition?: boolean + /** The editor value */ + value?: string; } interface ReactCodeMirror extends React.Component { diff --git a/types/react-codemirror/react-codemirror-tests.tsx b/types/react-codemirror/react-codemirror-tests.tsx index a5be69d882..f794e49d94 100644 --- a/types/react-codemirror/react-codemirror-tests.tsx +++ b/types/react-codemirror/react-codemirror-tests.tsx @@ -17,19 +17,24 @@ class CodemirrorTest extends React.Component> { readOnly: false, mode: "markdown" }; - const onChange = (value: any) => console.log(value); + const onChange = (value: string, change: CodeMirror.EditorChange) => console.log(value, change); + const onCursorActivity = (codemirror: CodeMirror.Editor) => console.log(codemirror); const onFocusChange = (focused: boolean) => console.log(focused); const onScroll = (scrollInfo: CodeMirror.ScrollInfo) => console.log(scrollInfo.top); - const codeMirrorInstance = CodeMirror(document.body); return

this.editorRef = r} value="foo bar" />
; From acd4c61167be75cddd628ef32a90e72ba2da7f3d Mon Sep 17 00:00:00 2001 From: Cleve Littlefield Date: Mon, 7 Aug 2017 00:48:55 -0700 Subject: [PATCH 092/166] withFauxDOM, connectFauxDOM, animateFauxDOM? support --- types/react-faux-dom/index.d.ts | 7 +++++ types/react-faux-dom/react-faux-dom-tests.tsx | 29 ++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/types/react-faux-dom/index.d.ts b/types/react-faux-dom/index.d.ts index 0a363de3f0..c0f1bae645 100644 --- a/types/react-faux-dom/index.d.ts +++ b/types/react-faux-dom/index.d.ts @@ -28,3 +28,10 @@ export function createElement(nodeName: string): Element; export function createElementNS(namespace: string, nodeName: string): Element; export function compareDocumentPosition(): number; + +export interface IReactFauxDomProps { + connectFauxDOM?(node: string, name: string, discardNode?: any): Element; + animateFauxDOM?(duration: number): void; +} + +export function withFauxDOM

(WrappedComponent: any): React.ClassicComponentClass

; \ No newline at end of file diff --git a/types/react-faux-dom/react-faux-dom-tests.tsx b/types/react-faux-dom/react-faux-dom-tests.tsx index 0410306f6b..bad1bccc03 100644 --- a/types/react-faux-dom/react-faux-dom-tests.tsx +++ b/types/react-faux-dom/react-faux-dom-tests.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import * as d3 from 'd3'; -import { createElement, Element } from 'react-faux-dom'; +import { createElement, Element, IReactFauxDomProps, withFauxDOM } from 'react-faux-dom'; class SomeChart extends React.Component { render() { @@ -21,3 +21,30 @@ class SomeChart extends React.Component { return el.toReact(); } } + +interface ChartProps extends IReactFauxDomProps { + chart?: any; +} + +class MyReactComponent extends React.Component { + componentDidMount() { + if (this.props.connectFauxDOM && this.props.animateFauxDOM) { + const faux = this.props.connectFauxDOM('div', 'chart'); + d3.select(faux) + .append('div') + .html('Hello World!'); + this.props.animateFauxDOM(800); + } + } + + render() { + return

+

Here is some fancy data:

+
+ {this.props.chart} +
+
; + } +} + +const AdvancedComponent = withFauxDOM(MyReactComponent); From b503e62b3e4528b2a9fa6acb4b6d8a1bc91248e7 Mon Sep 17 00:00:00 2001 From: Cleve Littlefield Date: Mon, 7 Aug 2017 00:52:14 -0700 Subject: [PATCH 093/166] Add to Definitions by section. --- types/react-faux-dom/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-faux-dom/index.d.ts b/types/react-faux-dom/index.d.ts index c0f1bae645..5e1c5ec906 100644 --- a/types/react-faux-dom/index.d.ts +++ b/types/react-faux-dom/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for react-faux-dom 3.1 // Project: https://github.com/Olical/react-faux-dom // Definitions by: Ali Taheri Moghaddar +// Cleve Littlefield // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 From 2f6f1e5ca830357032fe708029eb2f68200cfc2c Mon Sep 17 00:00:00 2001 From: Cleve Littlefield Date: Mon, 7 Aug 2017 01:02:08 -0700 Subject: [PATCH 094/166] Fix lint errors. --- types/react-faux-dom/index.d.ts | 4 ++-- types/react-faux-dom/react-faux-dom-tests.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-faux-dom/index.d.ts b/types/react-faux-dom/index.d.ts index 5e1c5ec906..c70ac4fe00 100644 --- a/types/react-faux-dom/index.d.ts +++ b/types/react-faux-dom/index.d.ts @@ -30,9 +30,9 @@ export function createElementNS(namespace: string, nodeName: string): Element; export function compareDocumentPosition(): number; -export interface IReactFauxDomProps { +export interface ReactFauxDomProps { connectFauxDOM?(node: string, name: string, discardNode?: any): Element; animateFauxDOM?(duration: number): void; } -export function withFauxDOM

(WrappedComponent: any): React.ClassicComponentClass

; \ No newline at end of file +export function withFauxDOM

(WrappedComponent: any): React.ClassicComponentClass

; diff --git a/types/react-faux-dom/react-faux-dom-tests.tsx b/types/react-faux-dom/react-faux-dom-tests.tsx index bad1bccc03..2d864744bc 100644 --- a/types/react-faux-dom/react-faux-dom-tests.tsx +++ b/types/react-faux-dom/react-faux-dom-tests.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import * as d3 from 'd3'; -import { createElement, Element, IReactFauxDomProps, withFauxDOM } from 'react-faux-dom'; +import { createElement, Element, ReactFauxDomProps, withFauxDOM } from 'react-faux-dom'; class SomeChart extends React.Component { render() { @@ -22,7 +22,7 @@ class SomeChart extends React.Component { } } -interface ChartProps extends IReactFauxDomProps { +interface ChartProps extends ReactFauxDomProps { chart?: any; } From 15a46676aad99e3822fcb1fde4114373fd472927 Mon Sep 17 00:00:00 2001 From: Cleve Littlefield Date: Mon, 7 Aug 2017 01:09:37 -0700 Subject: [PATCH 095/166] Increment version. --- types/react-faux-dom/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-faux-dom/index.d.ts b/types/react-faux-dom/index.d.ts index c70ac4fe00..59c771527d 100644 --- a/types/react-faux-dom/index.d.ts +++ b/types/react-faux-dom/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-faux-dom 3.1 +// Type definitions for react-faux-dom 3.2 // Project: https://github.com/Olical/react-faux-dom // Definitions by: Ali Taheri Moghaddar // Cleve Littlefield From f1f3e5e89d1d47246256dacdbdf9bfdb864119ab Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Mon, 7 Aug 2017 16:47:01 +0200 Subject: [PATCH 096/166] Added definition for VirtualizedListProps. --- types/react-native/index.d.ts | 161 +++++++++++++++++++++++++++++++++- 1 file changed, 159 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index c3d3fe9114..5c356098eb 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3486,7 +3486,7 @@ interface ListRenderItemInfo { type ListRenderItem = (info: ListRenderItemInfo) => React.ReactElement | null -export interface FlatListProperties extends ScrollViewProperties { +export interface FlatListProperties extends VirtualizedListProperties { /** * Rendered in between each item, but not at the top or bottom @@ -3525,7 +3525,7 @@ export interface FlatListProperties extends ScrollViewProperties { * For simplicity, data is just a plain array. If you want to use something else, * like an immutable list, use the underlying VirtualizedList directly. */ - data: ItemT[] | null; + data: ReadonlyArray | null; /** * A marker property for telling the list to re-render (since it implements PureComponent). @@ -3798,6 +3798,163 @@ export interface SectionListStatic extends React.ComponentClass extends ScrollViewProperties { + + /** + * Rendered when the list is empty. Can be a React Component Class, a render function, or + * a rendered element. + */ + ListEmptyComponent?: React.ComponentClass | React.ReactElement | (() => React.ReactElement) | null + + /** + * Rendered at the bottom of all the items. Can be a React Component Class, a render function, or + * a rendered element. + */ + ListFooterComponent?: React.ComponentClass | React.ReactElement | (() => React.ReactElement) | null + + /** + * Rendered at the top of all the items. Can be a React Component Class, a render function, or + * a rendered element. + */ + ListHeaderComponent?: React.ComponentClass | React.ReactElement | (() => React.ReactElement) | null + + /** + * The default accessor functions assume this is an Array<{key: string}> but you can override + * getItem, getItemCount, and keyExtractor to handle any type of index-based data. + */ + data?: any + + /** + * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and + * implementation, but with a significant perf hit. + */ + debug?: boolean + + /** + * DEPRECATED: Virtualization provides significant performance and memory optimizations, but fully + * unmounts react instances that are outside of the render window. You should only need to disable + * this for debugging purposes. + */ + disableVirtualization?: boolean + + /** + * A marker property for telling the list to re-render (since it implements `PureComponent`). If + * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the + * `data` prop, stick it here and treat it immutably. + */ + extraData?: any + + /** + * A generic accessor for extracting an item from any sort of data blob. + */ + getItem?: (data: any, index: number) => ItemT + + /** + * Determines how many items are in the data blob. + */ + getItemCount?: (data: any) => number + + getItemLayout?: (data: any, index: number) => { + length: number, + offset: number, + index: number + } + + horizontal?: boolean + + /** + * How many items to render in the initial batch. This should be enough to fill the screen but not + * much more. Note these items will never be unmounted as part of the windowed rendering in order + * to improve perceived performance of scroll-to-top actions. + */ + initialNumToRender?: number + + /** + * Instead of starting at the top with the first item, start at `initialScrollIndex`. This + * disables the "scroll to top" optimization that keeps the first `initialNumToRender` items + * always rendered and immediately renders the items starting at this initial index. Requires + * `getItemLayout` to be implemented. + */ + initialScrollIndex?: number + + /** + * Reverses the direction of scroll. Uses scale transforms of -1. + */ + inverted?: boolean + + keyExtractor?: (item: ItemT, index: number) => string + + /** + * The maximum number of items to render in each incremental render batch. The more rendered at + * once, the better the fill rate, but responsiveness my suffer because rendering content may + * interfere with responding to button taps or other interactions. + */ + maxToRenderPerBatch?: number + + onEndReached?: (info: {distanceFromEnd: number}) => void + + onEndReachedThreshold?: number // units of visible length + + onLayout?: () => void + + /** + * If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make + * sure to also set the `refreshing` prop correctly. + */ + onRefresh?: () => void + + /** + * Called when the viewability of rows changes, as defined by the + * `viewabilityConfig` prop. + */ + onViewableItemsChanged?: ((info: {viewableItems: Array, changed: Array}) => void) | null + + /** + * Set this when offset is needed for the loading indicator to show correctly. + * @platform android + */ + progressViewOffset?: number + + /** + * Set this true while waiting for new data from a refresh. + */ + refreshing?: boolean | null + + /** + * Note: may have bugs (missing content) in some circumstances - use at your own risk. + * + * This may improve scroll performance for large lists. + */ + removeClippedSubviews?: boolean + + renderItem: ListRenderItem + + /** + * Render a custom scroll component, e.g. with a differently styled `RefreshControl`. + */ + renderScrollComponent?: (props: ScrollViewProperties) => React.ReactElement + + /** + * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off + * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`. + */ + updateCellsBatchingPeriod?: number + + viewabilityConfig?: ViewabilityConfig + + /** + * Determines the maximum number of items rendered outside of the visible area, in units of + * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will + * render the visible screen area plus up to 10 screens above and 10 below the viewport. Reducing + * this number will reduce memory consumption and may improve performance, but will increase the + * chance that fast scrolling may reveal momentary blank areas of unrendered content. + */ + windowSize?: number +} + /** * @see https://facebook.github.io/react-native/docs/listview.html#props */ From 534d133d8d083c2622d79ed90995711184d06f10 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Mon, 7 Aug 2017 17:58:40 +0200 Subject: [PATCH 097/166] fixup! Added definition for VirtualizedListProps. Fixed inconsistent definitions. --- types/react-native/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 5c356098eb..629c8a8fd5 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3894,9 +3894,9 @@ export interface VirtualizedListProperties extends ScrollViewProperties { */ maxToRenderPerBatch?: number - onEndReached?: (info: {distanceFromEnd: number}) => void + onEndReached?: ((info: {distanceFromEnd: number}) => void) | null - onEndReachedThreshold?: number // units of visible length + onEndReachedThreshold?: number | null onLayout?: () => void @@ -3904,7 +3904,7 @@ export interface VirtualizedListProperties extends ScrollViewProperties { * If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make * sure to also set the `refreshing` prop correctly. */ - onRefresh?: () => void + onRefresh?: (() => void) | null /** * Called when the viewability of rows changes, as defined by the From d2dfe1e49efd4043ab009c25d066e85a17aa0e84 Mon Sep 17 00:00:00 2001 From: Daniel Herman Date: Mon, 7 Aug 2017 12:47:31 -0400 Subject: [PATCH 098/166] add `shouldSendCallback` --- types/raven/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index 23cd3b05e2..09ba6f6b4c 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -45,6 +45,7 @@ export class Client extends EventEmitter { captureBreadcrumb(breadcrumb: any): void; setUserContext(data: UserData): void; setDataCallback(fn: DataCallback): void; + setShouldSendCallback(fn: ShouldSendCallback): this; context(ctx: any, func: () => void, onErr?: () => void): Client; context(func: () => void, onErr?: () => void): Client; process(kwargs: any, cb?: () => void): void; @@ -59,6 +60,7 @@ export interface ConstructorOptions { tags?: { [key: string]: string }; extra?: { [key: string]: any }; dataCallback?: DataCallback; + shouldSendCallback?: ShouldSendCallback; transport?(): void; captureUnhandledRejections?: boolean; autoBreadcrumbs?: boolean | any; @@ -86,6 +88,8 @@ export type CaptureCallback = (err: { [key: string]: any }, eventId: any) => voi export type DataCallback = (data: { [key: string]: any }) => void; +export type ShouldSendCallback = (data: { [key: string]: any }) => boolean; + export type TransportCallback = (options: { [key: string]: any }) => void; export interface CaptureOptions { From 841d4801dc21f82c2101f6ff86c2b1df8acc3fdd Mon Sep 17 00:00:00 2001 From: Daniel Herman Date: Mon, 7 Aug 2017 13:43:36 -0400 Subject: [PATCH 099/166] Remove non-existent argument from `context` The `onErr` argument no longer exists on the `context` and `wrap` methods as of Raven 2.0.0 https://github.com/getsentry/raven-node/commit/8a88d5d4f8ed92b62345c6bb3f79f98de65461fe --- types/raven/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index 09ba6f6b4c..173984d835 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -11,8 +11,8 @@ import { EventEmitter } from 'events'; export const version: string; export function config(dsn: string | false, options?: ConstructorOptions): Client; -export function wrap(func: () => void, onErr?: () => void): () => void; -export function wrap(options: any, func: () => void, onErr?: () => void): () => void; +export function wrap(func: () => void): () => void; +export function wrap(options: any, func: () => void): () => void; export function interceptErr(ctx: any): Client; export function setContext(ctx: any): Client; export function captureException(e: Error, cb?: CaptureCallback): string; @@ -23,8 +23,8 @@ export function mergeContext(ctx: any): Client; export function getContext(): any; export function requestHandler(): (req: IncomingMessage, res: ServerResponse, next: () => void) => void; export function errorHandler(): (e: Error, req: IncomingMessage, res: ServerResponse, next: () => void) => void; -export function context(ctx: any, func: () => void, onErr?: () => void): Client; -export function context(func: () => void, onErr?: () => void): Client; +export function context(ctx: any, func: () => void): Client; +export function context(func: () => void): Client; export function captureBreadcrumb(breadcrumb: any): void; export function disableConsoleAlerts(): void; export function consoleAlert(msg: string): void; @@ -46,8 +46,8 @@ export class Client extends EventEmitter { setUserContext(data: UserData): void; setDataCallback(fn: DataCallback): void; setShouldSendCallback(fn: ShouldSendCallback): this; - context(ctx: any, func: () => void, onErr?: () => void): Client; - context(func: () => void, onErr?: () => void): Client; + context(ctx: any, func: () => void): void; + context(func: () => void): Client; process(kwargs: any, cb?: () => void): void; process(eventId: string, kwargs: any, cb?: () => void): void; } From 9379410e90625dd48f93440ff671db3b857fcc28 Mon Sep 17 00:00:00 2001 From: Daniel Herman Date: Mon, 7 Aug 2017 13:52:03 -0400 Subject: [PATCH 100/166] Correct the return types for `wrap` and `context` The `wrap` function accepts a function and returns a function that returns the value from said function, not the Raven instance. `context` is implemented in terms of `wrap` and as such should have a return type corresponding to the value returned from the wrapped function. Ref: https://github.com/getsentry/raven-node/blob/d359ff776dd1866351822384d0127b5c5c094141/lib/client.js#L323-L360 --- types/raven/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index 173984d835..331aafa37a 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -11,8 +11,8 @@ import { EventEmitter } from 'events'; export const version: string; export function config(dsn: string | false, options?: ConstructorOptions): Client; -export function wrap(func: () => void): () => void; -export function wrap(options: any, func: () => void): () => void; +export function wrap(func: () => T): () => T; +export function wrap(options: any, func: () => T): () => T; export function interceptErr(ctx: any): Client; export function setContext(ctx: any): Client; export function captureException(e: Error, cb?: CaptureCallback): string; @@ -23,8 +23,8 @@ export function mergeContext(ctx: any): Client; export function getContext(): any; export function requestHandler(): (req: IncomingMessage, res: ServerResponse, next: () => void) => void; export function errorHandler(): (e: Error, req: IncomingMessage, res: ServerResponse, next: () => void) => void; -export function context(ctx: any, func: () => void): Client; -export function context(func: () => void): Client; +export function context(ctx: any, func: () => T): T; +export function context(func: () => T): T; export function captureBreadcrumb(breadcrumb: any): void; export function disableConsoleAlerts(): void; export function consoleAlert(msg: string): void; @@ -46,8 +46,8 @@ export class Client extends EventEmitter { setUserContext(data: UserData): void; setDataCallback(fn: DataCallback): void; setShouldSendCallback(fn: ShouldSendCallback): this; - context(ctx: any, func: () => void): void; - context(func: () => void): Client; + context(ctx: any, func: () => T): T; + context(func: () => T): T; process(kwargs: any, cb?: () => void): void; process(eventId: string, kwargs: any, cb?: () => void): void; } From 49013b72776b3f83f191aaf306a2147d10e6d8a0 Mon Sep 17 00:00:00 2001 From: Daniel Herman Date: Mon, 7 Aug 2017 14:09:42 -0400 Subject: [PATCH 101/166] Correctly identify a few methods as polymorphic Since these methods return `this`, we should modify the return value to reflect that so that inherited classes have the return type appropriately identified as the inherited class --- types/raven/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index 331aafa37a..610122ab66 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -33,9 +33,9 @@ export function parseDSN(dsn: string | false): parsedDSN; export class Client extends EventEmitter { constructor(options: ConstructorOptions); constructor(dsn: string, options?: ConstructorOptions); - config(dsn: string, options?: ConstructorOptions): Client; - install(options?: ConstructorOptions, cb?: () => void): Client; - setContext(ctx: any): Client; + config(dsn: string, options?: ConstructorOptions): this; + install(options?: ConstructorOptions, cb?: () => void): this; + setContext(ctx: any): this; requestHandler(): (req: IncomingMessage, res: ServerResponse, next: () => void) => void; errorHandler(): (e: Error, req: IncomingMessage, res: ServerResponse, next: () => void) => void; captureException(error: Error, cb?: CaptureCallback): string; From deebe017e77dfefb32743b4ae0d0c3767aab8586 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Mon, 7 Aug 2017 14:54:44 -0700 Subject: [PATCH 102/166] vis: Add types for Options.locales --- types/vis/index.d.ts | 29 ++++++++++++++++++++++++++++- types/vis/vis-tests.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/types/vis/index.d.ts b/types/vis/index.d.ts index 2b71d3d6d6..1a967d65c6 100644 --- a/types/vis/index.d.ts +++ b/types/vis/index.d.ts @@ -1703,6 +1703,33 @@ export interface Edge { id?: IdType; } +export interface Locales { + [language: string]: LocaleMessages | undefined; + en?: LocaleMessages; + de?: LocaleMessages; + es?: LocaleMessages; + it?: LocaleMessages; + nl?: LocaleMessages; + 'pt-br'?: LocaleMessages; + ru?: LocaleMessages; +} + +export interface LocaleMessages { + edit?: string; + del?: string; + back?: string; + addNode?: string; + addEdge?: string; + editNode?: string; + editEdge?: string; + addDescription?: string; + edgeDescription?: string; + editEdgeDescription?: string; + createEdgeError?: string; + deleteClusterError?: string; + editClusterError?: string; +} + export interface Options { autoResize?: boolean; @@ -1712,7 +1739,7 @@ export interface Options { locale?: string; - locales?: string[]; + locales?: Locales; clickToUse?: boolean; diff --git a/types/vis/vis-tests.ts b/types/vis/vis-tests.ts index 354f766cb0..a4e9d1d6f8 100644 --- a/types/vis/vis-tests.ts +++ b/types/vis/vis-tests.ts @@ -190,3 +190,30 @@ const options2 = { }; network.setOptions(options2); + +// +// Test code sample from http://visjs.org/docs/network/#locales +// +var locales = { + en: { + edit: 'Edit', + del: 'Delete selected', + back: 'Back', + addNode: 'Add Node', + addEdge: 'Add Edge', + editNode: 'Edit Node', + editEdge: 'Edit Edge', + addDescription: 'Click in an empty space to place a new node.', + edgeDescription: 'Click on a node and drag the edge to another node to connect them.', + editEdgeDescription: 'Click on the control points and drag them to a node to connect to it.', + createEdgeError: 'Cannot link edges to a cluster.', + deleteClusterError: 'Clusters cannot be deleted.', + editClusterError: 'Clusters cannot be edited.' + } +} +options = { + locale: 'en', + locales: locales, +} + +network.setOptions(options); From 6a6ec76be3e8925163bb854354e1893c179d7a09 Mon Sep 17 00:00:00 2001 From: Ismail Syed Date: Mon, 7 Aug 2017 18:35:46 -0400 Subject: [PATCH 103/166] Add constructor param --- types/webpack/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 14517ae3d6..1511f49791 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -849,7 +849,7 @@ declare namespace webpack { } class NamedChunksPlugin extends Plugin { - constructor(); + constructor(nameResolver: any); } class NoEmitOnErrorsPlugin extends Plugin { From d78f9815fe5d29e78de76f1d2b394cc17e3ae1f3 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 00:54:34 +0200 Subject: [PATCH 104/166] [path-exists] add typings for v3, add strict null checks & linting --- types/path-exists/index.d.ts | 16 +++++++-------- types/path-exists/path-exists-tests.ts | 7 +++---- types/path-exists/tsconfig.json | 7 +++---- types/path-exists/tslint.json | 1 + types/path-exists/v1/index.d.ts | 12 +++++++++++ types/path-exists/v1/path-exists-tests.ts | 6 ++++++ types/path-exists/v1/tsconfig.json | 25 +++++++++++++++++++++++ types/path-exists/v1/tslint.json | 1 + 8 files changed, 59 insertions(+), 16 deletions(-) create mode 100644 types/path-exists/tslint.json create mode 100644 types/path-exists/v1/index.d.ts create mode 100644 types/path-exists/v1/path-exists-tests.ts create mode 100644 types/path-exists/v1/tsconfig.json create mode 100644 types/path-exists/v1/tslint.json diff --git a/types/path-exists/index.d.ts b/types/path-exists/index.d.ts index f82d5ba870..dfd7ad2813 100644 --- a/types/path-exists/index.d.ts +++ b/types/path-exists/index.d.ts @@ -1,13 +1,13 @@ -// Type definitions for path-exists 1.0.0 +// Type definitions for path-exists 3.0 // Project: https://github.com/sindresorhus/path-exists // Definitions by: Shogo Iwano +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface PathExists { - (path: string, callback: (error: Error, exists: boolean) => void): void; - sync(path: string): boolean; -} - -declare var pathExists: PathExists; export = pathExists; + +declare function pathExists(path: string): Promise; + +declare namespace pathExists { + function sync(path: string): boolean; +} diff --git a/types/path-exists/path-exists-tests.ts b/types/path-exists/path-exists-tests.ts index 69aeb2ecd4..9cb79e8602 100644 --- a/types/path-exists/path-exists-tests.ts +++ b/types/path-exists/path-exists-tests.ts @@ -1,7 +1,6 @@ - import pathExists = require("path-exists"); -pathExists("test/path-exists.d.ts", (error, exists) => { - console.log(exists); +pathExists('foo.js').then(exists => { + const bool: boolean = exists; }); -console.log(pathExists.sync("test/__path-exists.d.ts")); +const bool: boolean = pathExists.sync("test/__path-exists.d.ts"); diff --git a/types/path-exists/tsconfig.json b/types/path-exists/tsconfig.json index 8edff6556b..d6a6dcc606 100644 --- a/types/path-exists/tsconfig.json +++ b/types/path-exists/tsconfig.json @@ -2,12 +2,11 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +19,4 @@ "index.d.ts", "path-exists-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/path-exists/tslint.json b/types/path-exists/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/path-exists/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/path-exists/v1/index.d.ts b/types/path-exists/v1/index.d.ts new file mode 100644 index 0000000000..ae3df252c4 --- /dev/null +++ b/types/path-exists/v1/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for path-exists 1.0 +// Project: https://github.com/sindresorhus/path-exists +// Definitions by: Shogo Iwano +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface PathExists { + (path: string, callback: (error: Error, exists: boolean) => void): void; + sync(path: string): boolean; +} + +declare const pathExists: PathExists; +export = pathExists; diff --git a/types/path-exists/v1/path-exists-tests.ts b/types/path-exists/v1/path-exists-tests.ts new file mode 100644 index 0000000000..5c5553b5de --- /dev/null +++ b/types/path-exists/v1/path-exists-tests.ts @@ -0,0 +1,6 @@ +import pathExists = require("path-exists"); + +pathExists("test/path-exists.d.ts", (error, exists) => { + const bool: boolean = exists; +}); +const bool: boolean = pathExists.sync("test/__path-exists.d.ts"); diff --git a/types/path-exists/v1/tsconfig.json b/types/path-exists/v1/tsconfig.json new file mode 100644 index 0000000000..1e8753cb6b --- /dev/null +++ b/types/path-exists/v1/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "path-exists": ["path-exists/v1"] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "path-exists-tests.ts" + ] +} diff --git a/types/path-exists/v1/tslint.json b/types/path-exists/v1/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/path-exists/v1/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 459d83be11964169fbfc57714a863498f2b201f5 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Mon, 7 Aug 2017 16:28:36 -0700 Subject: [PATCH 105/166] Correct typo --- types/base64-js/base64-js-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/base64-js/base64-js-tests.ts b/types/base64-js/base64-js-tests.ts index 402ce43e88..f9bb761f22 100644 --- a/types/base64-js/base64-js-tests.ts +++ b/types/base64-js/base64-js-tests.ts @@ -2,4 +2,4 @@ import * as base64js from "base64-js"; base64js.byteLength(""); // $ExpectType number base64js.toByteArray(""); // $ExpectType Uint8Array -base64js.fromByteArray(new Uint8Array(0)); // $ExpectTpe string +base64js.fromByteArray(new Uint8Array(0)); // $ExpectType string From 1c7db8183dabe6ed601390898eff3ca756945977 Mon Sep 17 00:00:00 2001 From: Dan <5727701+dan-j@users.noreply.github.com> Date: Tue, 8 Aug 2017 10:07:24 +1000 Subject: [PATCH 106/166] [material-ui] Added missing prop definitions for --- types/material-ui/index.d.ts | 4 ++++ types/material-ui/material-ui-tests.tsx | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 9cacfe1136..f248898581 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1229,6 +1229,7 @@ declare namespace __MaterialUI { interface DropDownMenuProps { //

is the element that gets the 'other' properties + anchorOrigin?: propTypes.origin; animated?: boolean; animation?: React.ComponentClass; autoWidth?: boolean; @@ -1239,13 +1240,16 @@ declare namespace __MaterialUI { labelStyle?: React.CSSProperties; listStyle?: React.CSSProperties; maxHeight?: number; + menuItemStyle?: React.CSSProperties; menuStyle?: React.CSSProperties; + multiple?: boolean; onChange?(e: TouchTapEvent, index: number, menuItemValue: any): void; onClose?(e: TouchTapEvent): void; openImmediately?: boolean; selectedMenuItemStyle?: React.CSSProperties; selectionRenderer?(value: any, menuItem: any): void; style?: React.CSSProperties; + targetOrigin?: propTypes.origin; underlineStyle?: React.CSSProperties; value?: any; } diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index 4321423041..a9de543119 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -2764,6 +2764,17 @@ class DropDownMenuOpenImmediateExample extends React.Component<{}, {value?: numb } } +const DropDownMenuAnchorExample: React.SFC<{}> = () => ( + + + + +); + const items: Array> = []; for (let i = 0; i < 100; i++) { items.push(); From 68b08dcd2d1e198c6cc58a9d203643a90ada5d7e Mon Sep 17 00:00:00 2001 From: Ismail Syed Date: Mon, 7 Aug 2017 22:27:42 -0400 Subject: [PATCH 107/166] Add namedResolver function params and return type --- types/webpack/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 1511f49791..a5f92d8e9e 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -849,7 +849,7 @@ declare namespace webpack { } class NamedChunksPlugin extends Plugin { - constructor(nameResolver: any); + constructor(nameResolver: (chunk: {}) => string | null ); } class NoEmitOnErrorsPlugin extends Plugin { From be6ad265d0160f1d23f278d7d2d7c23a06ec3cf0 Mon Sep 17 00:00:00 2001 From: Ismail Syed Date: Mon, 7 Aug 2017 23:20:02 -0400 Subject: [PATCH 108/166] PR fixes: optional nameResolver and chunk: any --- types/webpack/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index a5f92d8e9e..41ad4f04eb 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -849,7 +849,7 @@ declare namespace webpack { } class NamedChunksPlugin extends Plugin { - constructor(nameResolver: (chunk: {}) => string | null ); + constructor(nameResolver?: (chunk: any) => string | null ); } class NoEmitOnErrorsPlugin extends Plugin { From 869eab040e1d0a7437a3d784303397872c6495b2 Mon Sep 17 00:00:00 2001 From: Kazuhiro Yamamoto Date: Tue, 8 Aug 2017 19:04:44 +0900 Subject: [PATCH 109/166] Make net.Socket.remoteFamily and remotePort optional. When remoteAddress property is undefined, these properties are also undefined. --- types/node/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 1f883a77fc..f73e0ff2fe 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2355,8 +2355,8 @@ declare module "net" { ref(): void; remoteAddress?: string; - remoteFamily: string; - remotePort: number; + remoteFamily?: string; + remotePort?: number; localAddress: string; localPort: number; bytesRead: number; From 1682e9a417769a8bbdac8072a4132b6bbc545d06 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Tue, 8 Aug 2017 08:04:14 -0700 Subject: [PATCH 110/166] Revert change to package.json --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index 86a97c4ba8..581aae5b75 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,5 @@ "devDependencies": { "dtslint": "Microsoft/dtslint#production", "types-publisher": "Microsoft/types-publisher#production" - }, - "dependencies": { - "jslint": "^0.10.3" } } From dbfe8a1688064178aa06cec6de587d7b5b43b563 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Tue, 8 Aug 2017 08:57:29 -0700 Subject: [PATCH 111/166] Make All LocaleMessages properties required Also fix lint. --- types/vis/index.d.ts | 26 +++++++++++++------------- types/vis/vis-tests.ts | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/types/vis/index.d.ts b/types/vis/index.d.ts index 1a967d65c6..b55adc6ac8 100644 --- a/types/vis/index.d.ts +++ b/types/vis/index.d.ts @@ -1715,19 +1715,19 @@ export interface Locales { } export interface LocaleMessages { - edit?: string; - del?: string; - back?: string; - addNode?: string; - addEdge?: string; - editNode?: string; - editEdge?: string; - addDescription?: string; - edgeDescription?: string; - editEdgeDescription?: string; - createEdgeError?: string; - deleteClusterError?: string; - editClusterError?: string; + edit: string; + del: string; + back: string; + addNode: string; + addEdge: string; + editNode: string; + editEdge: string; + addDescription: string; + edgeDescription: string; + editEdgeDescription: string; + createEdgeError: string; + deleteClusterError: string; + editClusterError: string; } export interface Options { diff --git a/types/vis/vis-tests.ts b/types/vis/vis-tests.ts index a4e9d1d6f8..263baffc79 100644 --- a/types/vis/vis-tests.ts +++ b/types/vis/vis-tests.ts @@ -194,7 +194,7 @@ network.setOptions(options2); // // Test code sample from http://visjs.org/docs/network/#locales // -var locales = { +const locales = { en: { edit: 'Edit', del: 'Delete selected', @@ -210,10 +210,10 @@ var locales = { deleteClusterError: 'Clusters cannot be deleted.', editClusterError: 'Clusters cannot be edited.' } -} +}; options = { locale: 'en', - locales: locales, -} + locales, +}; network.setOptions(options); From 05c4c94cac2ade5fe94d0118d5b01e638ed89ab6 Mon Sep 17 00:00:00 2001 From: smac89 Date: Tue, 8 Aug 2017 11:16:25 -0600 Subject: [PATCH 112/166] Added more tests to ensure everything is working as intended --- types/merge2/merge2-tests.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/types/merge2/merge2-tests.ts b/types/merge2/merge2-tests.ts index 69c8bdd6bd..ba11597dfa 100644 --- a/types/merge2/merge2-tests.ts +++ b/types/merge2/merge2-tests.ts @@ -27,20 +27,23 @@ const stream6 = gulp.src('*.html'); const stream7 = gulp.src('*.html'); let stream = merge2([stream1, stream2], stream3, {end: false}); -// ... -stream.add(stream4, stream5); + +stream.once('queueDrain', () => { + stream.add(stream4, stream5); +}); + // .. stream.end(); -stream.on('data', (data: any) => { - console.log(data); -}); - // equal to merge2([stream1, stream2], stream3) stream = merge2(); stream.add([stream1, stream2]); stream.add(stream3); +stream.on('data', (data: any) => { + console.log(data); +}); + // merge order: // 1. merge `stream1`; // 2. merge `stream2` and `stream3` in parallel after `stream1` merged; @@ -58,3 +61,7 @@ const streamA = merge2(stream1, stream2); const streamB = merge2(stream3, [stream4, stream5]); stream = merge2(streamA, streamB); streamA.add(stream6); + +stream.on('readable', () => { + console.log('Stream has data!!'); +}); From b32b41f3a12f05d1c340e3eef81dc22142a4ffcf Mon Sep 17 00:00:00 2001 From: rycornell Date: Tue, 8 Aug 2017 14:16:47 -0400 Subject: [PATCH 113/166] Options.reporters should be a string array (#18758) --- types/webdriverio/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webdriverio/index.d.ts b/types/webdriverio/index.d.ts index a3d7a08d99..8e14298630 100644 --- a/types/webdriverio/index.d.ts +++ b/types/webdriverio/index.d.ts @@ -412,7 +412,7 @@ declare namespace WebdriverIO { port?: number; path?: string; plugins?: { [name: string]: any; }; - reporters?: string | ((...args: any[]) => void); + reporters?: string[] | ((...args: any[]) => void); reporterOptions?: { outputDir?: string; }; logLevel?: string; maxInstances?: number; From 7e252c06daf333fc7ac981e70307bca1d454e7f7 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Tue, 8 Aug 2017 14:29:26 -0400 Subject: [PATCH 114/166] sessionConfig.valid: make optional (#18748) `koa-session` does not actually require this validator and will provide a default behavior if its not supplied. see: https://github.com/koajs/session/blob/cb6d2c8448f21f6cf42efdb031798c9608f05602/lib/context.js#L152-L167 --- types/koa-session/index.d.ts | 2 +- types/koa-session/koa-session-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/koa-session/index.d.ts b/types/koa-session/index.d.ts index bd31a897e3..ae5e2c48fa 100644 --- a/types/koa-session/index.d.ts +++ b/types/koa-session/index.d.ts @@ -59,7 +59,7 @@ declare namespace session { /** * Hook: valid session value before use it */ - valid(...rest: any[]): void; + valid?(...rest: any[]): void; /** * Hook: before save session diff --git a/types/koa-session/koa-session-tests.ts b/types/koa-session/koa-session-tests.ts index 266cb4b98b..ef3ddc6a09 100644 --- a/types/koa-session/koa-session-tests.ts +++ b/types/koa-session/koa-session-tests.ts @@ -1,5 +1,5 @@ import * as Koa from 'koa'; -import session = require('koa-session'); +import * as session from 'koa-session'; const app = new Koa(); From c1cd5c4292b8ed6a7696303d1b8dd221cdbd3fb4 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 9 Aug 2017 02:31:39 +0800 Subject: [PATCH 115/166] types(rimraf): add the missing options types (#18740) * feat(rimraf): add the missing options types * feat(rimraf): add tslint.json * refactor: format code --- types/rimraf/index.d.ts | 35 ++++++++++++++++++++++++++++++----- types/rimraf/rimraf-tests.ts | 8 ++++---- types/rimraf/tslint.json | 3 +++ 3 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 types/rimraf/tslint.json diff --git a/types/rimraf/index.d.ts b/types/rimraf/index.d.ts index 1fb95f79cd..17ab69fec7 100644 --- a/types/rimraf/index.d.ts +++ b/types/rimraf/index.d.ts @@ -1,15 +1,40 @@ -// Type definitions for rimraf +// Type definitions for rimraf 2.0 // Project: https://github.com/isaacs/rimraf -// Definitions by: Carlos Ballesteros Velasco +// Definitions by: Carlos Ballesteros Velasco , e-cloud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Imported from: https://github.com/soywiz/typescript-node-definitions/rimraf.d.ts +/// +import glob = require('glob'); +import fs = require('fs'); + +declare function rimraf(path: string, options: rimraf.Options, callback: (error: Error) => void): void; declare function rimraf(path: string, callback: (error: Error) => void): void; declare namespace rimraf { - export function sync(path: string): void; - export var EMFILE_MAX: number; - export var BUSYTRIES_MAX: number; + function sync(path: string, options?: rimraf.Options): void; + let EMFILE_MAX: number; + let BUSYTRIES_MAX: number; + interface Options { + maxBusyTries?: number; + emfileWait?: boolean; + disableGlob?: boolean; + glob?: glob.IOptions | false; + + unlink?: typeof fs.unlink; + chmod?: typeof fs.chmod; + stat?: typeof fs.stat; + lstat?: typeof fs.lstat; + rmdir?: typeof fs.rmdir; + readdir?: typeof fs.readdir; + + unlinkSync?: typeof fs.unlinkSync; + chmodSync?: typeof fs.chmodSync; + statSync?: typeof fs.statSync; + lstatSync?: typeof fs.lstatSync; + rmdirSync?: typeof fs.rmdirSync; + readdirSync?: typeof fs.readdirSync; + } } export = rimraf; diff --git a/types/rimraf/rimraf-tests.ts b/types/rimraf/rimraf-tests.ts index 5827549f61..796ad1077c 100644 --- a/types/rimraf/rimraf-tests.ts +++ b/types/rimraf/rimraf-tests.ts @@ -1,10 +1,10 @@ - import rimraf = require('rimraf'); -rimraf('./xyz', (err: Error) => { - -}); +rimraf('./xyz', (err: Error) => { }); rimraf.sync('./xyz'); +rimraf('./xyz', { glob: { ignore: '' } }, (err: Error) => { }); +rimraf.sync('./xyz', { glob: { ignore: '' } }); + rimraf.EMFILE_MAX = 0; rimraf.BUSYTRIES_MAX = 0; diff --git a/types/rimraf/tslint.json b/types/rimraf/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/rimraf/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 5a8bd498158f35699aa2eed3fcaed6b1231b01ee Mon Sep 17 00:00:00 2001 From: Steven Masala Date: Tue, 8 Aug 2017 20:32:56 +0200 Subject: [PATCH 116/166] add missing setStartDate and setEndDate methods (#18742) * add missing setStartDate and setEndDate methods (http://www.daterangepicker.com/#methods) * add name * version update --- types/daterangepicker/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/daterangepicker/index.d.ts b/types/daterangepicker/index.d.ts index 3846ea2472..2555be11bb 100644 --- a/types/daterangepicker/index.d.ts +++ b/types/daterangepicker/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for Date Range Picker v2.1.19 +// Type definitions for Date Range Picker v2.1.25 // Project: http://www.daterangepicker.com/ // Definitions by: SirMartin +// Steven Masala // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -24,6 +25,9 @@ declare namespace daterangepicker { startDate: moment.Moment; endDate: moment.Moment; + + setStartDate(date: Date | moment.Moment | string): void; + setEndDate(date: Date | moment.Moment | string): void; } interface DatepickerEventObject extends JQueryEventObject { From d8097c89452c9970958c6a3226a4e0d476ecc444 Mon Sep 17 00:00:00 2001 From: remisery <20260860+remisery@users.noreply.github.com> Date: Tue, 8 Aug 2017 20:38:08 +0200 Subject: [PATCH 117/166] [vinyl-fs] Refactor typings (#18735) * extend api * Add tslint.json and fix lint errors * Export DestOptions * Extend API Definitions * Fix trailing whitespaces --- types/vinyl-fs/index.d.ts | 64 ++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/types/vinyl-fs/index.d.ts b/types/vinyl-fs/index.d.ts index dfe59301eb..08673da3bb 100644 --- a/types/vinyl-fs/index.d.ts +++ b/types/vinyl-fs/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for vinyl-fs 2.4 // Project: https://github.com/wearefractal/vinyl-fs // Definitions by: vvakame +// remisery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -92,6 +93,50 @@ export interface SrcOptions extends globStream.Options { * Default: false */ sourcemaps?: boolean; + + /** + * Whether or not to recursively resolve symlinks to their targets. Setting to false to + * preserve them as symlinks and make file.symlink equal the original symlink's target path. + * Default: false + */ + resolveSymlinks?: boolean; + /** + * Causes the BOM to be removed on UTF-8 encoded files. Set to false if you need the BOM for some reason. + * Default: true + */ + removeBOM?: boolean; +} + +export interface DestOptions { + /** Specify the working directory the folder is relative to + * Default is process.cwd() + */ + cwd?: string; + + /** Specify the mode the files should be created with + * Default is the mode of the input file (file.stat.mode) + * or the process mode if the input file has no mode property + */ + mode?: number|string; + + /** Specify the mode the directory should be created with. Default is the process mode */ + dirMode?: number|string; + + /** Specify if existing files with the same path should be overwritten or not. Default is true, to always overwrite existing files */ + overwrite?: boolean; + + /** Enables sourcemap support on files passed through the stream. Will write inline soucemaps if + * specified as true. Specifying a string path will write external sourcemaps at the given path. + */ + sourcemaps?: true | string; + + /** When creating a symlink, whether or not the created symlink should be relative. If false, + * the symlink will be absolute. Note: This option will be ignored if a junction is being created. + */ + relativeSymlinks?: boolean; + + /* When creating a symlink, whether or not a directory symlink should be created as a junction. */ + useJunctions?: boolean; } /** @@ -138,24 +183,7 @@ export function watch( * contents will have it's position reset to the beginning if it is a stream * @param folder destination folder */ -export function dest(folder: string, opt?: { - /** Specify the working directory the folder is relative to - * Default is process.cwd() - */ - cwd?: string; - - /** Specify the mode the files should be created with - * Default is the mode of the input file (file.stat.mode) - * or the process mode if the input file has no mode property - */ - mode?: number|string; - - /** Specify the mode the directory should be created with. Default is the process mode */ - dirMode?: number|string; - - /** Specify if existing files with the same path should be overwritten or not. Default is true, to always overwrite existing files */ - overwrite?: boolean; -}): NodeJS.ReadWriteStream; +export function dest(folder: string, opt?: DestOptions): NodeJS.ReadWriteStream; /** * On write the stream will save the vinyl File to disk at the folder/cwd specified. From 7f87ea02cc4316ca45b70fa22e39b847bf2df8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20C=C3=A9sar=C3=A9-Herriau?= Date: Tue, 8 Aug 2017 11:39:10 -0700 Subject: [PATCH 118/166] Fixed PasswordCredential new spec by adding password field. (#18713) * Updated CredentialManagement specs to the latest version of 08/04/2017. * Fixed PasswordCredential definition adding password field * added tests --- .../index.d.ts | 8 ++++ .../webappsec-credential-management-tests.ts | 43 ++++++++++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/types/webappsec-credential-management/index.d.ts b/types/webappsec-credential-management/index.d.ts index 503b87181c..af99a50d27 100644 --- a/types/webappsec-credential-management/index.d.ts +++ b/types/webappsec-credential-management/index.d.ts @@ -236,6 +236,14 @@ declare class PasswordCredential extends SiteBoundCredential { * unless otherwise specified. */ additionalData: CredentialBodyType|null; + + /** + * The plain-text password. Returned for implementation of the 08/04/2017 + * Working Draft of Credential Management, not returned before this. + * + * @see {@link https://www.w3.org/TR/credential-management-1/#passwordcredential} + */ + readonly password?: string; } /** diff --git a/types/webappsec-credential-management/webappsec-credential-management-tests.ts b/types/webappsec-credential-management/webappsec-credential-management-tests.ts index 43a2e78aa9..5850d86e72 100644 --- a/types/webappsec-credential-management/webappsec-credential-management-tests.ts +++ b/types/webappsec-credential-management/webappsec-credential-management-tests.ts @@ -1,6 +1,6 @@ // password based sign-in example from Section 1.2.1: // https://www.w3.org/TR/credential-management-1/#examples-password-signin -function passwordBasedSignIn() { +function passwordBasedSignInDeprecated() { if (!navigator.credentials) { return; } @@ -21,6 +21,47 @@ function passwordBasedSignIn() { }); } +// password based sign-in for new specs. +// https://www.w3.org/TR/credential-management-1/#examples-password-signin +function passwordBasedSignIn() { + if (!navigator.credentials) { + return; + } + + navigator.credentials + .get({ password: true }) + .then((credential) => { + if (!credential) { + // The user either doesn’t have credentials for this site, or + // refused to share them. Insert some code here to fall back to + // a basic login form. + return; + } + if (credential.type === 'password') { + const form = new FormData(); + form.append('username_field', credential.id); + form.append('password_field', credential.password || ''); + const opt = { + method: 'POST', + body: form, + credentials: 'include' // Send cookies. + }; + fetch('https://example.com/loginEndpoint', opt) + .then((response) => { + if (navigator.credentials) { + // Record that the credential was effective. See note below. + navigator.credentials.store(credential); + // Notify the user that sign-in succeeded! Do amazing, signed-in things! + // Maybe navigate to a landing page via location.href = + // '/signed-in-experience'? + } else { + // Insert some code here to fall back to a basic login form. + } + }); + } + }); +} + // https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#mediation-examples function signInMediationSilent() { window.addEventListener('load', _ => { From 9cbdf886a46984b5c403fe4f9bba1b5526aa730a Mon Sep 17 00:00:00 2001 From: Thomas Shafer Date: Tue, 8 Aug 2017 11:39:59 -0700 Subject: [PATCH 119/166] Add gapi.auth2.authorize typings. (#18707) --- types/gapi.auth2/index.d.ts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index b1e0e925d4..ad78936e5c 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -123,6 +123,9 @@ declare namespace gapi.auth2 { getEmail(): string; } + /** + * Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2authresponse + */ interface AuthResponse { access_token: string; id_token: string; @@ -133,6 +136,37 @@ declare namespace gapi.auth2 { expires_at: number; } + /** + * Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2authorizeconfig + */ + interface AuthorizeConfig { + client_id: string; + scope: string; + response_type?: string; + prompt?: string; + cookie_policy?: string; + hosted_domain?: string; + login_hint?: string; + app_package_name?: string; + openid_realm?: string; + include_granted_scope?: boolean; + } + + /** + * Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2authorizeresponse + */ + interface AuthorizeResponse { + access_token: string; + id_token: string; + code: string; + scope: string; + expires_in: number; + first_issued_at: number; + expires_at: number; + error: string; + error_subtype: string; + } + /** * A GoogleUser object represents one user account. */ @@ -255,6 +289,12 @@ declare namespace gapi.auth2 { * Returns the GoogleAuth object. You must initialize the GoogleAuth object with gapi.auth2.init() before calling this method. */ function getAuthInstance(): GoogleAuth; + + /** + * Performs a one time OAuth 2.0 authorization. + * Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2authorizeparams-callback + */ + function authorize(params: AuthorizeConfig, callback: (response: AuthorizeResponse) => void): void; } declare namespace gapi.signin2 { From fda95324d16b0419da09ab30ca5d291040788f71 Mon Sep 17 00:00:00 2001 From: Thomas Shafer Date: Tue, 8 Aug 2017 11:40:31 -0700 Subject: [PATCH 120/166] Added setToken typing to gapi.client. (#18706) --- types/gapi/index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/types/gapi/index.d.ts b/types/gapi/index.d.ts index 26202fe24e..8ad2a552df 100644 --- a/types/gapi/index.d.ts +++ b/types/gapi/index.d.ts @@ -180,6 +180,13 @@ declare namespace gapi.client { callback?: () => any; } + interface TokenObject { + /** + * The access token to use in requests. + */ + access_token: string; + } + /** * Loads the client library interface to a particular API. If a callback is not provided, a promise is returned. * @param name The name of the API to load. @@ -213,6 +220,13 @@ declare namespace gapi.client { * @param apiKey The API key to set */ export function setApiKey(apiKey: string): void; + /** + * Sets the authentication token to use in requests. + * @param token The token to set. + * + * Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiclientsettokentokenobject + */ + export function setToken(token: TokenObject|null): void; interface HttpRequestFulfilled { result: T; From 43cd9ff2b983000c9600832b22518538fa9611e1 Mon Sep 17 00:00:00 2001 From: Larry Bahr Date: Tue, 8 Aug 2017 13:40:55 -0500 Subject: [PATCH 121/166] [chart.js] Added Line Chart Options (#18704) * Added Line Chart Options http://www.chartjs.org/docs/latest/charts/line.html#configuration-options showLines - Boolean - If false, the lines between points are not drawn. spanGaps - Boolean - If false, NaN data causes a break in the line. * Moved location of property * Update definitions by --- types/chart.js/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index a465806797..f66a423a60 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Alberto Nuti // Fabien Lavocat // KentarouTakeda +// Larry Bahr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -158,6 +159,8 @@ declare namespace Chart { animation?: ChartAnimationOptions; elements?: ChartElementsOptions; scales?: ChartScales; + showLines?: boolean; + spanGaps?: boolean; cutoutPercentage?: number; circumference?: number; rotation?: number; From b4456e08cdb9dee559d51738b443eb80e1be2d47 Mon Sep 17 00:00:00 2001 From: Alexander James Phillips Date: Tue, 8 Aug 2017 19:41:42 +0100 Subject: [PATCH 122/166] [Ramda] Correct pipe with 8 steps, add pipe with 9 and 10 (#18700) * Correct pipe with 8 steps, add pipe with 9 and 10 * Ramda - Add single and double argument versions of 9 and 10 pipe --- types/ramda/index.d.ts | 69 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 3bb255b8a9..bcc5b732b0 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1325,7 +1325,7 @@ declare namespace R { fn3: (x: T3) => T4, fn4: (x: T4) => T5, fn5: (x: T5) => T6, - fn6: (x: T5) => T6, + fn6: (x: T6) => T7, fn7: (x: T7) => T8): (x0: V0, x1: V1) => T8; pipe( fn0: (x0: V0, x1: V1, x2: V2) => T1, @@ -1334,9 +1334,74 @@ declare namespace R { fn3: (x: T3) => T4, fn4: (x: T4) => T5, fn5: (x: T5) => T6, - fn6: (x: T5) => T6, + fn6: (x: T6) => T7, fn7: (x: T7) => T8): (x0: V0, x1: V1, x2: V2) => T8; + pipe( + fn0: (x0: V0) => T1, + fn1: (x: T1) => T2, + fn2: (x: T2) => T3, + fn3: (x: T3) => T4, + fn4: (x: T4) => T5, + fn5: (x: T5) => T6, + fn6: (x: T6) => T7, + fn7: (x: T7) => T8, + fn8: (x: T8) => T9): (x0: V0) => T9; + pipe( + fn0: (x0: V0, x1: V1) => T1, + fn1: (x: T1) => T2, + fn2: (x: T2) => T3, + fn3: (x: T3) => T4, + fn4: (x: T4) => T5, + fn5: (x: T5) => T6, + fn6: (x: T6) => T7, + fn7: (x: T7) => T8, + fn8: (x: T8) => T9): (x0: V0, x1: V1) => T9; + pipe( + fn0: (x0: V0, x1: V1, x2: V2) => T1, + fn1: (x: T1) => T2, + fn2: (x: T2) => T3, + fn3: (x: T3) => T4, + fn4: (x: T4) => T5, + fn5: (x: T5) => T6, + fn6: (x: T6) => T7, + fn7: (x: T7) => T8, + fn8: (x: T8) => T9): (x0: V0, x1: V1, x2: V2) => T9; + + pipe( + fn0: (x0: V0) => T1, + fn1: (x: T1) => T2, + fn2: (x: T2) => T3, + fn3: (x: T3) => T4, + fn4: (x: T4) => T5, + fn5: (x: T5) => T6, + fn6: (x: T6) => T7, + fn7: (x: T7) => T8, + fn8: (x: T8) => T9, + fn9: (x: T9) => T10): (x0: V0) => T10; + pipe( + fn0: (x0: V0, x1: V1) => T1, + fn1: (x: T1) => T2, + fn2: (x: T2) => T3, + fn3: (x: T3) => T4, + fn4: (x: T4) => T5, + fn5: (x: T5) => T6, + fn6: (x: T6) => T7, + fn7: (x: T7) => T8, + fn8: (x: T8) => T9, + fn9: (x: T9) => T10): (x0: V0, x1: V1) => T10; + pipe( + fn0: (x0: V0, x1: V1, x2: V2) => T1, + fn1: (x: T1) => T2, + fn2: (x: T2) => T3, + fn3: (x: T3) => T4, + fn4: (x: T4) => T5, + fn5: (x: T5) => T6, + fn6: (x: T6) => T7, + fn7: (x: T7) => T8, + fn8: (x: T8) => T9, + fn9: (x: T9) => T10): (x0: V0, x1: V1, x2: V2) => T10; + /** * Returns a new list by plucking the same named property off all objects in the list supplied. */ From e432bd813205c8e5a18d22f4cd5051ce90d9dac1 Mon Sep 17 00:00:00 2001 From: Carlos Bonetti Date: Tue, 8 Aug 2017 15:42:10 -0300 Subject: [PATCH 123/166] Update react-maskedinput props to accept default HTML input attributes (#18697) --- types/react-maskedinput/index.d.ts | 7 ++++--- types/react-maskedinput/react-maskedinput-tests.tsx | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/types/react-maskedinput/index.d.ts b/types/react-maskedinput/index.d.ts index 9dfdd6b91f..4e2bc9fcde 100644 --- a/types/react-maskedinput/index.d.ts +++ b/types/react-maskedinput/index.d.ts @@ -1,7 +1,8 @@ // Type definitions for react-maskedinput 4.0 // Project: https://github.com/insin/react-maskedinput -// Definitions by: Karol Janyst , -// Adam Lavin +// Definitions by: Karol Janyst +// Adam Lavin +// Carlos Bonetti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -16,7 +17,7 @@ export interface CharsFormatters { [char: string]: FormatCharacter; } -export interface MaskedInputProps extends React.HTMLAttributes { +export interface MaskedInputProps extends React.InputHTMLAttributes { mask: string; formatCharacter?: CharsFormatters; placeholderChar?: string; diff --git a/types/react-maskedinput/react-maskedinput-tests.tsx b/types/react-maskedinput/react-maskedinput-tests.tsx index cc0a12dcaf..4eaba73de1 100644 --- a/types/react-maskedinput/react-maskedinput-tests.tsx +++ b/types/react-maskedinput/react-maskedinput-tests.tsx @@ -13,7 +13,11 @@ class Test extends React.Component { transform: (char: string) => char } } - } /> + } + name="react-maskedinput-test" + placeholder="XXX" + disabled={false} + /> ); } } From 34f60516b35ba40a6edac2e4adae5dbc4648a2e8 Mon Sep 17 00:00:00 2001 From: Matt Haggard Date: Tue, 8 Aug 2017 12:45:19 -0600 Subject: [PATCH 124/166] Add state def arg to React.Component (#18694) This removes the following errors for me: ``` node_modules/@types/victory/index.d.ts(81,43): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(175,39): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(227,43): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(669,38): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(853,38): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(924,37): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(1010,39): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(1107,39): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(1185,38): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(1418,41): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(1520,39): error TS2314: Generic type 'Component' requires 2 type argument(s). node_modules/@types/victory/index.d.ts(1664,37): error TS2314: Generic type 'Component' requires 2 type argument(s). ``` --- types/victory/index.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index ffa8cf3ccc..4b361b42bc 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -78,7 +78,7 @@ declare module "victory" { * VictoryAnimation animates prop changes for any React component. * Just use a child function inside VictoryAnimation that accepts an object of tweened values and returns a component to render. */ - export class VictoryAnimation extends React.Component {} + export class VictoryAnimation extends React.Component {} /** * Text anchor type @@ -172,7 +172,7 @@ declare module "victory" { /** * VictoryLabel is a text component that provides several enhancements over SVG’s element. */ - export class VictoryLabel extends React.Component {} + export class VictoryLabel extends React.Component {} export interface VictoryContainerProps { /** @@ -224,7 +224,7 @@ declare module "victory" { */ desc?: string; } - export class VictoryContainer extends React.Component {} + export class VictoryContainer extends React.Component {} // Note: Many SVG attributes are missed in CSSProperties interface export interface VictoryThemeDefinition { @@ -666,7 +666,7 @@ declare module "victory" { * Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes. * Add VictoryArea as a child of VictoryChart for a complete chart. */ - export class VictoryArea extends React.Component {} + export class VictoryArea extends React.Component {} export interface VictoryAxisProps extends VictoryCommonProps { /** @@ -850,7 +850,7 @@ declare module "victory" { * Styles and data can be customized by passing in your own values as properties to the component. * Data changes are animated with VictoryAnimation. */ - export class VictoryAxis extends React.Component {} + export class VictoryAxis extends React.Component {} export interface VictoryBarProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabeableProps { /** @@ -921,7 +921,7 @@ declare module "victory" { * Draw SVG bar charts with React. VictoryBar is a composable component, so it doesn't include axes * Check out VictoryChart for complete bar charts and more. */ - export class VictoryBar extends React.Component {} + export class VictoryBar extends React.Component {} export interface VictoryChartProps extends VictoryCommonProps { /** @@ -1007,7 +1007,7 @@ declare module "victory" { * - VictoryScatter * - VictoryBar */ - export class VictoryChart extends React.Component {} + export class VictoryChart extends React.Component {} export interface VictoryGroupProps extends VictoryCommonProps, VictoryMultiLabeableProps { /** @@ -1104,7 +1104,7 @@ declare module "victory" { */ style?: VictoryStyleInterface; } - export class VictoryGroup extends React.Component {} + export class VictoryGroup extends React.Component {} export interface VictoryLineProps extends VictoryCommonProps, VictoryDatableProps, VictorySingleLabableProps { /** @@ -1182,7 +1182,7 @@ declare module "victory" { * VictoryLine creates a line based on data. VictoryLine is a composable component, so it does not include an axis. * Check out VictoryChart for easy to use line charts and more. */ - export class VictoryLine extends React.Component {} + export class VictoryLine extends React.Component {} export interface VictoryLegendProps extends VictoryCommonProps, VictoryDatableProps, VictorySingleLabableProps { /** @@ -1415,7 +1415,7 @@ declare module "victory" { * VictoryScatter creates a scatter of points from data. VictoryScatter is a composable component, so it does not include an axis. * Check out VictoryChart for easy to use scatter plots and more. */ - export class VictoryScatter extends React.Component {} + export class VictoryScatter extends React.Component {} export interface VictoryStackProps extends VictoryCommonProps, VictoryMultiLabeableProps { /** @@ -1517,7 +1517,7 @@ declare module "victory" { */ xOffset?: number; } - export class VictoryStack extends React.Component {} + export class VictoryStack extends React.Component {} export interface VictoryPieProps extends VictoryCommonProps, VictoryMultiLabeableProps { /** @@ -1661,5 +1661,5 @@ declare module "victory" { * Styles and data can be customized by passing in your own values as properties to the component. * Data changes are animated with VictoryAnimation. */ - export class VictoryPie extends React.Component {} + export class VictoryPie extends React.Component {} } From e8ff5620d6cce3e3ff3ad72ff8e7dc7f841c137b Mon Sep 17 00:00:00 2001 From: Bradley Ayers Date: Wed, 9 Aug 2017 05:17:10 +1000 Subject: [PATCH 125/166] Fix prosemirror-transform Transform methods to allow inheritence. (#18681) --- .../prosemirror-state-tests.ts | 33 ++++++++++++++++++ types/prosemirror-transform/index.d.ts | 34 +++++++++---------- 2 files changed, 50 insertions(+), 17 deletions(-) diff --git a/types/prosemirror-state/prosemirror-state-tests.ts b/types/prosemirror-state/prosemirror-state-tests.ts index 92989a132e..5bb330ff97 100644 --- a/types/prosemirror-state/prosemirror-state-tests.ts +++ b/types/prosemirror-state/prosemirror-state-tests.ts @@ -1,4 +1,6 @@ import * as state from 'prosemirror-state'; +import * as model from 'prosemirror-model'; +import * as transform from 'prosemirror-transform'; let plugin: state.Plugin; @@ -6,3 +8,34 @@ plugin = new state.Plugin({}); plugin = new state.Plugin({ props: {} }); + +// Verify that Transaction (that extends Transform) has the correct return types +// for its builder methods. There was a bug where Transform's methods returned type +// 'Transform', rather than 'this', which prevented subclassing from working +// correctly. +const node = {} as model.Node; +const mark = {} as model.Mark; +const slice = {} as model.Slice; +const nodeRange = {} as model.NodeRange; +const step = {} as transform.Step; + +let transaction: state.Transaction; + +transaction = new state.Transaction(node).delete(0, 0); +transaction = new state.Transaction(node).addMark(0, 0, mark); +transaction = new state.Transaction(node).removeMark(0, 0); +transaction = new state.Transaction(node).clearMarkup(0, 0); +transaction = new state.Transaction(node).replaceRange(0, 0, slice); +transaction = new state.Transaction(node).replaceRangeWith(0, 0, node); +transaction = new state.Transaction(node).deleteRange(0, 0); +transaction = new state.Transaction(node).delete(0, 0); +transaction = new state.Transaction(node).replace(0, 0); +transaction = new state.Transaction(node).replaceWith(0, 0, node); +transaction = new state.Transaction(node).insert(0, node); +transaction = new state.Transaction(node).lift(nodeRange, 0); +transaction = new state.Transaction(node).wrap(nodeRange, []); +transaction = new state.Transaction(node).setBlockType(0, 0, node.type); +transaction = new state.Transaction(node).setNodeType(0); +transaction = new state.Transaction(node).split(0); +transaction = new state.Transaction(node).join(0); +transaction = new state.Transaction(node).step(step); diff --git a/types/prosemirror-transform/index.d.ts b/types/prosemirror-transform/index.d.ts index ff84a3a6de..a240214a15 100644 --- a/types/prosemirror-transform/index.d.ts +++ b/types/prosemirror-transform/index.d.ts @@ -42,28 +42,28 @@ export class RemoveMarkStep extends Step { } export class Transform { constructor(doc: Node) - addMark(from: number, to: number, mark: Mark): Transform; - removeMark(from: number, to: number, mark?: Mark | MarkType): Transform; - clearMarkup(from: number, to: number): Transform; - replaceRange(from: number, to: number, slice: Slice): Transform; - replaceRangeWith(from: number, to: number, node: Node): Transform; - deleteRange(from: number, to: number): Transform; - delete(from: number, to: number): Transform; - replace(from: number, to?: number, slice?: Slice): Transform; - replaceWith(from: number, to: number, content: Fragment | Node | Node[]): Transform; - insert(pos: number, content: Fragment | Node | Node[]): Transform; - lift(range: NodeRange, target: number): Transform; - wrap(range: NodeRange, wrappers: Array<{ type: NodeType, attrs?: object | null }>): Transform; - setBlockType(from: number, to: number | undefined, type: NodeType, attrs?: object): Transform; - setNodeType(pos: number, type?: NodeType, attrs?: object, marks?: Mark[]): Transform; - split(pos: number, depth?: number, typesAfter?: Array<{ type: NodeType, attrs?: object | null }>): Transform; - join(pos: number, depth?: number, p1?: boolean): Transform; + addMark(from: number, to: number, mark: Mark): this; + removeMark(from: number, to: number, mark?: Mark | MarkType): this; + clearMarkup(from: number, to: number): this; + replaceRange(from: number, to: number, slice: Slice): this; + replaceRangeWith(from: number, to: number, node: Node): this; + deleteRange(from: number, to: number): this; + delete(from: number, to: number): this; + replace(from: number, to?: number, slice?: Slice): this; + replaceWith(from: number, to: number, content: Fragment | Node | Node[]): this; + insert(pos: number, content: Fragment | Node | Node[]): this; + lift(range: NodeRange, target: number): this; + wrap(range: NodeRange, wrappers: Array<{ type: NodeType, attrs?: object | null }>): this; + setBlockType(from: number, to: number | undefined, type: NodeType, attrs?: object): this; + setNodeType(pos: number, type?: NodeType, attrs?: object, marks?: Mark[]): this; + split(pos: number, depth?: number, typesAfter?: Array<{ type: NodeType, attrs?: object | null }>): this; + join(pos: number, depth?: number, p1?: boolean): this; doc: Node; steps: Step[]; docs: Node[]; mapping: Mapping; before: Node; - step(step: Step): Transform; + step(step: Step): this; maybeStep(step: Step): StepResult; docChanged: boolean; } From 4b5aedb84c3e19507ea05405e777c8bbccc07abe Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 21:20:15 +0200 Subject: [PATCH 126/166] [metadata] fix incorrect metadata & tslint ignores (#18653) --- types/got/index.d.ts | 2 +- types/p-any/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/got/index.d.ts b/types/got/index.d.ts index fe498d5b34..c96c7eff25 100644 --- a/types/got/index.d.ts +++ b/types/got/index.d.ts @@ -27,7 +27,7 @@ declare namespace got { (url: GotUrl, options: GotBodyOptions): GotPromise; (url: GotUrl, options: GotBodyOptions): GotPromise; } - // tslint:disable unified-signatures + // tslint:enable unified-signatures type GotStreamFn = (url: GotUrl, options?: GotOptions) => GotEmitter & nodeStream.Duplex; diff --git a/types/p-any/index.d.ts b/types/p-any/index.d.ts index 0354ec661a..8b4165b54c 100644 --- a/types/p-any/index.d.ts +++ b/types/p-any/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for p-any 1.1 // Project: https://github.com/sindresorhus/p-any#readme -// Definitions by: My Self +// Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import AggregateErrorModule = require('aggregate-error'); From 31996672cf0b8b81fc7bfb8ebd1141c9a4fd707a Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Tue, 8 Aug 2017 12:20:49 -0700 Subject: [PATCH 127/166] [react-redux] Add connectAdvanced from v5 (#18488) --- types/react-redux/index.d.ts | 88 ++++++++++++++++++++++++++++++++++-- 1 file changed, 84 insertions(+), 4 deletions(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index a4e814205d..d73786624f 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for react-redux 4.4.47 -// Project: https://github.com/rackt/react-redux -// Definitions by: Qubo , Sean Kelley , Thomas Hasner +// Type definitions for react-redux 5.0.5 +// Project: https://github.com/reactjs/react-redux +// Definitions by: Qubo , Sean Kelley , Thomas Hasner , Kenzie Togami // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -19,6 +19,10 @@ export interface DispatchProp { dispatch: Dispatch; } +interface AdvancedComponentDecorator { + (component: Component): ComponentClass; +} + interface ComponentDecorator { (component: Component): ComponentClass; } @@ -149,7 +153,7 @@ interface MergeProps { (stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps; } -interface Options { +interface Options extends ConnectOptions { /** * If true, implements shouldComponentUpdate and shallowly compares the result of mergeProps, * preventing unnecessary updates, assuming that the component is a “pure” component @@ -165,6 +169,82 @@ interface Options { withRef?: boolean; } +/** + * Connects a React component to a Redux store. It is the base for {@link connect} but is less opinionated about + * how to combine state, props, and dispatch into your final props. It makes no + * assumptions about defaults or memoization of results, leaving those responsibilities to the caller.It does not + * modify the component class passed to it; instead, it returns a new, connected component class for you to use. + * + * @param selectorFactory The selector factory. See {@type SelectorFactory} for details. + * @param connectOptions If specified, further customizes the behavior of the connector. Additionally, any extra + * options will be passed through to your selectorFactory in the factoryOptions argument. + */ +export declare function connectAdvanced( + selectorFactory: SelectorFactory, + connectOptions?: ConnectOptions & TFactoryOptions +): AdvancedComponentDecorator; + +/** + * Initializes a selector function (during each instance's constructor). That selector function is called any time the + * connector component needs to compute new props, as a result of a store state change or receiving new props. The + * result of selector is expected to be a plain object, which is passed as the props to the wrapped + * component. If a consecutive call to selector returns the same object (===) as its previous + * call, the component will not be re-rendered. It's the responsibility of selector to return that + * previous object when appropriate. + */ +export interface SelectorFactory { + (dispatch: Dispatch, factoryOptions: TFactoryOptions): Selector +} + +export interface Selector { + (state: S, ownProps: TOwnProps): TProps +} + +export interface ConnectOptions { + /** + * Computes the connector component's displayName property relative to that of the wrapped component. Usually + * overridden by wrapper functions. + * + * @default name => 'ConnectAdvanced('+name+')' + * @param componentName + */ + getDisplayName?: (componentName: string) => string + /** + * Shown in error messages. Usually overridden by wrapper functions. + * + * @default 'connectAdvanced' + */ + methodName?: string + /** + * If defined, a property named this value will be added to the props passed to the wrapped component. Its value + * will be the number of times the component has been rendered, which can be useful for tracking down unnecessary + * re-renders. + * + * @default undefined + */ + renderCountProp?: string + /** + * Controls whether the connector component subscribes to redux store state changes. If set to false, it will only + * re-render on componentWillReceiveProps. + * + * @default true + */ + shouldHandleStateChanges?: boolean + /** + * The key of props/context to get the store. You probably only need this if you are in the inadvisable position of + * having multiple stores. + * + * @default 'store' + */ + storeKey?: string + /** + * If true, stores a ref to the wrapped component instance and makes it available via getWrappedInstance() method. + * + * @default false + */ + withRef?: boolean +} + export interface ProviderProps { /** * The single Redux store in your application. From c23b6de8cfc0478a2375c39f2448b3d567fd23b5 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:16:23 +0200 Subject: [PATCH 128/166] [esri-leaftlet-geocoder] introduce typings (#18699) --- .../esri-leaflet-geocoder-tests.ts | 69 +++++++ types/esri-leaflet-geocoder/index.d.ts | 178 ++++++++++++++++++ types/esri-leaflet-geocoder/tsconfig.json | 23 +++ types/esri-leaflet-geocoder/tslint.json | 1 + 4 files changed, 271 insertions(+) create mode 100644 types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts create mode 100644 types/esri-leaflet-geocoder/index.d.ts create mode 100644 types/esri-leaflet-geocoder/tsconfig.json create mode 100644 types/esri-leaflet-geocoder/tslint.json diff --git a/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts b/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts new file mode 100644 index 0000000000..92eae70b0c --- /dev/null +++ b/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts @@ -0,0 +1,69 @@ +import * as L from 'esri-leaflet-geocoder'; + +const map = L.map('map').setView([45.5165, -122.6764], 12); +const tiles = L.esri.basemapLayer("Streets").addTo(map); + +const searchControl = L.esri.Geocoding.geosearch().addTo(map); + +const results = L.layerGroup([]).addTo(map); + +// listen for the results event and add every result to the map +searchControl.on("results", data => { + results.clearLayers(); + for (let i = ( data).results.length - 1; i >= 0; i--) { + results.addLayer(L.marker(( data).results[i].latlng)); + } +}); + +const arcgisOnline = L.esri.Geocoding.arcgisOnlineProvider(); +const gisDay = L.esri.Geocoding.featureLayerProvider({ + url: 'https://services.arcgis.com/uCXeTVveQzP4IIcx/arcgis/rest/services/GIS_Day_Final/FeatureServer/0', + searchFields: ['Name', 'Organization'], // Search these fields for text matches + label: 'GIS Day Events', // Group suggestions under this header + formatSuggestion(feature) { + return feature.properties.Name + ' - ' + feature.properties.Organization; // format suggestions like this. + } +}); + +L.esri.Geocoding.geosearch({ + providers: [arcgisOnline, gisDay] // will geocode via ArcGIS Online and search the GIS Day feature service. +}).addTo(map); + +L.esri.Geocoding.geocode().text('380 New York St, Redlands, California, 92373').run((err, results, response) => { + console.log(results); +}); + +L.esri.Geocoding.geocode().address('380 New York St').city('Redlands').region('California').postal('92373').run((err, results, response) => { + console.log(results); +}); + +const southWest = L.latLng(37.712, -108.227); +const northEast = L.latLng(41.774, -102.125); +const bounds = L.latLngBounds(southWest, northEast); // Colorado + +L.esri.Geocoding.geocode().text("Denver").within(bounds).run((err, response) => { + console.log(response); +}); + +const denver = L.latLng(37.712, -108.227); + +L.esri.Geocoding.geocode().text("Highlands Ranch").nearby(denver, 20000).run((err, response) => { + const res: any[] = response.results; +}); + +L.esri.Geocoding.suggest() + .text('trea') + .nearby([45, -121], 5000) + .run((error, response) => { + /* response syntax is documented here: + https://developers.arcgis.com/rest/geocode/api-reference/geocoding-suggest.htm#ESRI_SECTION1_FC3884A45AD24E62BD11C9888F1392DB + */ + }); + +L.esri.Geocoding.reverseGeocode() + .latlng([48.8583, 2.2945]) + .run((error, result, response) => { + // callback is called with error, result, and raw response. + // result.latlng contains the coordinates of the located address + // result.address contains information about the match + }); diff --git a/types/esri-leaflet-geocoder/index.d.ts b/types/esri-leaflet-geocoder/index.d.ts new file mode 100644 index 0000000000..762af94558 --- /dev/null +++ b/types/esri-leaflet-geocoder/index.d.ts @@ -0,0 +1,178 @@ +// Type definitions for esri-leaflet-geocoder 2.2 +// Project: https://github.com/Esri/esri-leaflet-geocoder +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +import * as leaflet from 'leaflet'; +import { esri as esriLeaflet } from 'esri-leaflet'; + +export = L; + +declare global { + namespace L.esri.Geocoding { + type GeosearchConstructor = new (options?: GeosearchObject) => Geosearch; + type Geosearch = GeosearchControl & leaflet.Evented; + + interface GeosearchControl extends leaflet.Control { + clear(): this; + clearSuggestions(): this; + disable(): this; + enable(): this; + } + + const Geosearch: GeosearchConstructor; + + function geosearch(options?: GeosearchObject): Geosearch; + + interface GeosearchObject { + position?: leaflet.ControlPosition; + zoomToResult?: boolean; + useMapBounds?: boolean | number; + collapseAfterResult?: boolean; + expanded?: boolean; + allowMultipleResults?: boolean; + providers?: GeosearchProvider[]; + placeholder?: string; + title?: string; + searchBounds?: leaflet.LatLngBoundsExpression | null; + } + + class GeocodeService extends esriLeaflet.Service { + constructor(options?: GeocodeServiceOptions); + geocode(): Geocode; + suggest(): Suggest; + reverse(): ReverseGeocode; + } + + function geocodeService(options?: GeocodeServiceOptions): GeocodeService; + + interface GeocodeServiceOptions extends esriLeaflet.ServiceOptions { + supportsSuggest?: boolean; + } + + class Geocode extends esriLeaflet.Task { + constructor(options?: esriLeaflet.TaskOptions | esriLeaflet.Service); + text(text: string): this; + address(text: string): this; + neighborhood(text: string): this; + city(text: string): this; + subregion(text: string): this; + region(text: string): this; + postal(text: string): this; + country(text: string): this; + category(text: string): this; + within(bounds: leaflet.LatLngBoundsExpression): this; + nearby(latlng: leaflet.LatLngExpression, distance: number): this; + run(callback: (error: any | undefined, results: { results: any[] }, response: any) => void, context?: any): this; + } + + function geocode(options?: esriLeaflet.TaskOptions | esriLeaflet.Service): Geocode; + + class Suggest extends esriLeaflet.Task { + constructor(options?: esriLeaflet.TaskOptions | esriLeaflet.Service); + text(text: string): this; + category(text: string): this; + within(bounds: leaflet.LatLngBoundsExpression): this; + nearby(latlng: leaflet.LatLngExpression, distance: number): this; + run(callback: (error: any | undefined, results: any, response: any) => void, context?: any): this; + } + + function suggest(options?: esriLeaflet.TaskOptions | esriLeaflet.Service): Suggest; + + class ReverseGeocode extends esriLeaflet.Task { + constructor(options?: esriLeaflet.TaskOptions | esriLeaflet.Service); + latlng(latlng: leaflet.LatLngExpression): this; + distance(distance: number): this; + language(language: string): this; + run(callback: (error: any | undefined, results: { latlng: leaflet.LatLng; address: string; }, response: any) => void, context?: any): this; + } + + function reverseGeocode(options?: esriLeaflet.TaskOptions | esriLeaflet.Service): ReverseGeocode; + + interface GeosearchProvider { + suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Task; + results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Task; + } + type GeosearchCallback = (error: any | undefined, results: any) => void; + + interface BaseProviderOptions { + label?: string; + maxResults?: number; + attribution?: string; + token?: string | null; + } + + class ArcgisOnlineProvider extends GeocodeService implements GeosearchProvider { + constructor(options?: ArcgisOnlineProviderOptions); + suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Suggest; + results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Geocode; + } + + function arcgisOnlineProvider(options?: ArcgisOnlineProviderOptions): ArcgisOnlineProvider; + + interface ArcgisOnlineProviderOptions extends BaseProviderOptions { + countries?: string | string[]; + categories?: string | string[]; + forStorage?: boolean; + } + + class GeocodeServiceProvider extends GeocodeService implements GeosearchProvider { + constructor(options?: GeocodeServiceProviderOptions); + suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Suggest; + results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Geocode; + } + + function geocodeServiceProvider(options?: GeocodeServiceProviderOptions): GeocodeServiceProvider; + + interface GeocodeServiceProviderOptions extends BaseProviderOptions { + url: string; + } + + class FeatureLayerProvider extends esriLeaflet.FeatureLayerService implements GeosearchProvider { + constructor(options?: FeatureLayerProviderOptions); + suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Query; + results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Query; + } + + function featureLayerProvider(options?: FeatureLayerProviderOptions): FeatureLayerProvider; + + interface FeatureLayerProviderOptions extends BaseProviderOptions { + url: string; + searchFields?: string | string[]; + bufferRadius?: number; + formatSuggestion?(featureInformation: any): string; + } + + class MapServiceProvider extends esriLeaflet.MapService implements GeosearchProvider { + constructor(options?: MapServiceProviderOptions); + suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Find; + results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Query | esriLeaflet.Find; + } + + function mapServiceProvider(options?: MapServiceProviderOptions): MapServiceProvider; + + interface MapServiceProviderOptions extends BaseProviderOptions { + url: string; + searchFields: string | string[]; + layers: number | number[]; + bufferRadius: number | number[]; + formatSuggestion(featureInformation: any): string; + } + + interface ResultObject { + text?: string; + bounds?: leaflet.LatLngBoundsExpression; + latlng?: leaflet.LatLngExpression; + properties?: any; + geojson?: leaflet.GeoJSON; + [key: string]: any; + } + + interface Results { + bounds: leaflet.LatLngBoundsExpression; + latlng: leaflet.LatLngExpression; + results: ResultObject[]; + } + } +} diff --git a/types/esri-leaflet-geocoder/tsconfig.json b/types/esri-leaflet-geocoder/tsconfig.json new file mode 100644 index 0000000000..d42bd2b388 --- /dev/null +++ b/types/esri-leaflet-geocoder/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "esri-leaflet-geocoder-tests.ts" + ] +} diff --git a/types/esri-leaflet-geocoder/tslint.json b/types/esri-leaflet-geocoder/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/esri-leaflet-geocoder/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 24debbc209b0fd8e91c1b9a93c1f04508978eb54 Mon Sep 17 00:00:00 2001 From: Nicholas Guarracino Date: Tue, 8 Aug 2017 16:16:49 -0400 Subject: [PATCH 129/166] Added type definition for reconnectingwebsocket. (#18705) --- types/reconnectingwebsocket/index.d.ts | 43 +++++++++++++++++ .../reconnectingwebsocket-tests.ts | 46 +++++++++++++++++++ types/reconnectingwebsocket/tsconfig.json | 23 ++++++++++ types/reconnectingwebsocket/tslint.json | 1 + 4 files changed, 113 insertions(+) create mode 100644 types/reconnectingwebsocket/index.d.ts create mode 100644 types/reconnectingwebsocket/reconnectingwebsocket-tests.ts create mode 100644 types/reconnectingwebsocket/tsconfig.json create mode 100644 types/reconnectingwebsocket/tslint.json diff --git a/types/reconnectingwebsocket/index.d.ts b/types/reconnectingwebsocket/index.d.ts new file mode 100644 index 0000000000..f8e218c008 --- /dev/null +++ b/types/reconnectingwebsocket/index.d.ts @@ -0,0 +1,43 @@ +// Type definitions for reconnectingwebsocket 1.0 +// Project: https://github.com/joewalnes/reconnecting-websocket +// Definitions by: Nicholas Guarracino +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export interface Options { + automaticOpen?: boolean; + binaryType?: 'blob' | 'arraybuffer'; + debug?: boolean; + maxReconnectAttempts?: number | null; + maxReconnectInterval?: number; + reconnectDecay?: number; + reconnectInterval?: number; + timeoutInterval?: number; +} + +export default class ReconnectingWebSocket { + constructor(url: string, protocols?: string[], options?: Options); + + static debugAll: boolean; + + static CONNECTING: number; + static OPEN: number; + static CLOSING: number; + static CLOSED: number; + + onclose: (event: any) => void; + onconnecting: (event: any) => void; + onerror: (event: any) => void; + onmessage: (event: any) => void; + onopen: (event: any) => void; + + close(code?: number, reason?: string): void; + open(reconnectAttempt?: boolean): void; + refresh(): void; + send(data: any): void; + + maxReconnectAttempts: number; + protocol: string | null; + readyState: number; + reconnectAttempts: number; + url: string; +} diff --git a/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts b/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts new file mode 100644 index 0000000000..d0c3bf600d --- /dev/null +++ b/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts @@ -0,0 +1,46 @@ +import ReconnectingWebSocket from "reconnectingwebsocket"; +import { Options } from "reconnectingwebsocket"; + +const options: Options = { + automaticOpen: false, + binaryType: "blob", + debug: false, + maxReconnectAttempts: 1, + maxReconnectInterval: 1000, + reconnectDecay: 1.5, + reconnectInterval: 1000, + timeoutInterval: 1000 +}; + +const ws1: ReconnectingWebSocket = new ReconnectingWebSocket("url", ["protocol"], options); +const ws2: ReconnectingWebSocket = new ReconnectingWebSocket("url", ["protocol"]); +const ws3: ReconnectingWebSocket = new ReconnectingWebSocket("url"); + +ReconnectingWebSocket.debugAll = true; +ReconnectingWebSocket.CONNECTING = WebSocket.CONNECTING; +ReconnectingWebSocket.OPEN = WebSocket.OPEN; +ReconnectingWebSocket.CLOSING = WebSocket.CLOSING; +ReconnectingWebSocket.CLOSED = WebSocket.CLOSED; + +ws1.onclose = (event: any) => { +}; + +ws2.onconnecting = (event: any) => { +}; + +ws3.onerror = (event: any) => { +}; + +ws1.onmessage = (event: any) => { +}; + +ws1.onopen = (event: any) => { +}; + +ws1.open(true); + +ws1.refresh(); + +ws1.send({}); + +ws1.close(); diff --git a/types/reconnectingwebsocket/tsconfig.json b/types/reconnectingwebsocket/tsconfig.json new file mode 100644 index 0000000000..5810760606 --- /dev/null +++ b/types/reconnectingwebsocket/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "reconnectingwebsocket-tests.ts" + ] +} diff --git a/types/reconnectingwebsocket/tslint.json b/types/reconnectingwebsocket/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/reconnectingwebsocket/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From d4bb1bd1e486a0887d2dd30ce9cb4dccca341a5c Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:35:03 +0200 Subject: [PATCH 130/166] [public-ip] add typings (#18752) --- types/public-ip/index.d.ts | 12 ++++++++++++ types/public-ip/public-ip-tests.ts | 16 ++++++++++++++++ types/public-ip/tsconfig.json | 22 ++++++++++++++++++++++ types/public-ip/tslint.json | 1 + 4 files changed, 51 insertions(+) create mode 100644 types/public-ip/index.d.ts create mode 100644 types/public-ip/public-ip-tests.ts create mode 100644 types/public-ip/tsconfig.json create mode 100644 types/public-ip/tslint.json diff --git a/types/public-ip/index.d.ts b/types/public-ip/index.d.ts new file mode 100644 index 0000000000..463a1a2d18 --- /dev/null +++ b/types/public-ip/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for public-ip 2.3 +// Project: https://github.com/sindresorhus/public-ip#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function v4(options?: Options): Promise; +export function v6(options?: Options): Promise; + +export interface Options { + https?: boolean; + timeout?: number; +} diff --git a/types/public-ip/public-ip-tests.ts b/types/public-ip/public-ip-tests.ts new file mode 100644 index 0000000000..e7e0540bbe --- /dev/null +++ b/types/public-ip/public-ip-tests.ts @@ -0,0 +1,16 @@ +import * as publicIp from 'public-ip'; + +let str: string; +publicIp.v4().then(ip => { + str = ip; +}); +publicIp.v4({https: false, timeout: 10}).then(ip => { + str = ip; +}); + +publicIp.v6().then(ip => { + str = ip; +}); +publicIp.v6({https: false, timeout: 10}).then(ip => { + str = ip; +}); diff --git a/types/public-ip/tsconfig.json b/types/public-ip/tsconfig.json new file mode 100644 index 0000000000..88c711afc2 --- /dev/null +++ b/types/public-ip/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "public-ip-tests.ts" + ] +} diff --git a/types/public-ip/tslint.json b/types/public-ip/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/public-ip/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 48ad743488a01d21589354f23935e107e3b1748d Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:35:29 +0200 Subject: [PATCH 131/166] [internal-ip] add typings (#18749) --- types/internal-ip/index.d.ts | 7 +++++++ types/internal-ip/internal-ip-tests.ts | 10 ++++++++++ types/internal-ip/tsconfig.json | 22 ++++++++++++++++++++++ types/internal-ip/tslint.json | 1 + 4 files changed, 40 insertions(+) create mode 100644 types/internal-ip/index.d.ts create mode 100644 types/internal-ip/internal-ip-tests.ts create mode 100644 types/internal-ip/tsconfig.json create mode 100644 types/internal-ip/tslint.json diff --git a/types/internal-ip/index.d.ts b/types/internal-ip/index.d.ts new file mode 100644 index 0000000000..a82dd8c913 --- /dev/null +++ b/types/internal-ip/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for internal-ip 2.0 +// Project: https://github.com/sindresorhus/internal-ip#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function v6(): Promise; +export function v4(): Promise; diff --git a/types/internal-ip/internal-ip-tests.ts b/types/internal-ip/internal-ip-tests.ts new file mode 100644 index 0000000000..e94ec9f510 --- /dev/null +++ b/types/internal-ip/internal-ip-tests.ts @@ -0,0 +1,10 @@ +import * as internalIp from 'internal-ip'; + +let str: string; +internalIp.v6().then(ip => { + str = ip; +}); + +internalIp.v4().then(ip => { + str = ip; +}); diff --git a/types/internal-ip/tsconfig.json b/types/internal-ip/tsconfig.json new file mode 100644 index 0000000000..fbca1b2374 --- /dev/null +++ b/types/internal-ip/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "internal-ip-tests.ts" + ] +} diff --git a/types/internal-ip/tslint.json b/types/internal-ip/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/internal-ip/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 39d28981ce0c4e2bce88b0dffb80fa8f16e505b5 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:36:37 +0200 Subject: [PATCH 132/166] [copy-text-to-clipboard] add typings (#18745) --- .../copy-text-to-clipboard-tests.ts | 8 +++++++ types/copy-text-to-clipboard/index.d.ts | 8 +++++++ types/copy-text-to-clipboard/tsconfig.json | 23 +++++++++++++++++++ types/copy-text-to-clipboard/tslint.json | 1 + 4 files changed, 40 insertions(+) create mode 100644 types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts create mode 100644 types/copy-text-to-clipboard/index.d.ts create mode 100644 types/copy-text-to-clipboard/tsconfig.json create mode 100644 types/copy-text-to-clipboard/tslint.json diff --git a/types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts b/types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts new file mode 100644 index 0000000000..4a1e63b28c --- /dev/null +++ b/types/copy-text-to-clipboard/copy-text-to-clipboard-tests.ts @@ -0,0 +1,8 @@ +import copy = require('copy-text-to-clipboard'); + +const button: HTMLButtonElement | null = document.getElementById('my-button'); +if (button) { + button.addEventListener('click', () => { + copy('🦄🌈'); + }); +} diff --git a/types/copy-text-to-clipboard/index.d.ts b/types/copy-text-to-clipboard/index.d.ts new file mode 100644 index 0000000000..56493778d0 --- /dev/null +++ b/types/copy-text-to-clipboard/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for copy-text-to-clipboard 1.0 +// Project: https://github.com/sindresorhus/copy-text-to-clipboard#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = copy; + +declare function copy(text: string): boolean; diff --git a/types/copy-text-to-clipboard/tsconfig.json b/types/copy-text-to-clipboard/tsconfig.json new file mode 100644 index 0000000000..71b4595292 --- /dev/null +++ b/types/copy-text-to-clipboard/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "copy-text-to-clipboard-tests.ts" + ] +} diff --git a/types/copy-text-to-clipboard/tslint.json b/types/copy-text-to-clipboard/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/copy-text-to-clipboard/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 1dc72c595a6c48728d2dd16701a81ffe4b7980e3 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:37:08 +0200 Subject: [PATCH 133/166] [wallpaper] add typings (#18744) --- types/wallpaper/index.d.ts | 11 +++++++++++ types/wallpaper/tsconfig.json | 22 ++++++++++++++++++++++ types/wallpaper/tslint.json | 1 + types/wallpaper/wallpaper-tests.ts | 8 ++++++++ 4 files changed, 42 insertions(+) create mode 100644 types/wallpaper/index.d.ts create mode 100644 types/wallpaper/tsconfig.json create mode 100644 types/wallpaper/tslint.json create mode 100644 types/wallpaper/wallpaper-tests.ts diff --git a/types/wallpaper/index.d.ts b/types/wallpaper/index.d.ts new file mode 100644 index 0000000000..21f2c8fb40 --- /dev/null +++ b/types/wallpaper/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for wallpaper 2.5 +// Project: https://github.com/sindresorhus/wallpaper#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function get(): Promise; +export function set(imagePath: string, options?: WallpaperOptions): Promise; + +export interface WallpaperOptions { + scale?: 'fill' | 'fit' | 'stretch' | 'center'; +} diff --git a/types/wallpaper/tsconfig.json b/types/wallpaper/tsconfig.json new file mode 100644 index 0000000000..e491008057 --- /dev/null +++ b/types/wallpaper/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "wallpaper-tests.ts" + ] +} diff --git a/types/wallpaper/tslint.json b/types/wallpaper/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/wallpaper/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/wallpaper/wallpaper-tests.ts b/types/wallpaper/wallpaper-tests.ts new file mode 100644 index 0000000000..49fc5dfd1b --- /dev/null +++ b/types/wallpaper/wallpaper-tests.ts @@ -0,0 +1,8 @@ +import wallpaper = require('wallpaper'); + +wallpaper.set('unicorn.jpg').then(() => {}); +wallpaper.set('unicorn.jpg', {scale: 'fill'}).then(() => {}); + +wallpaper.get().then(imagePath => { + const str: string = imagePath; +}); From 91fab979fcbc51fb35efae7165c6be627f9b5ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=9B=A8=20Jerray?= <7lemonsoul@gmail.com> Date: Wed, 9 Aug 2017 04:37:52 +0800 Subject: [PATCH 134/166] Add type definitions for generic-pool (#18741) --- types/generic-pool/generic-pool-tests.ts | 60 ++++++++++++++++++++++++ types/generic-pool/index.d.ts | 47 +++++++++++++++++++ types/generic-pool/tsconfig.json | 22 +++++++++ types/generic-pool/tslint.json | 1 + 4 files changed, 130 insertions(+) create mode 100644 types/generic-pool/generic-pool-tests.ts create mode 100644 types/generic-pool/index.d.ts create mode 100644 types/generic-pool/tsconfig.json create mode 100644 types/generic-pool/tslint.json diff --git a/types/generic-pool/generic-pool-tests.ts b/types/generic-pool/generic-pool-tests.ts new file mode 100644 index 0000000000..f990f19a72 --- /dev/null +++ b/types/generic-pool/generic-pool-tests.ts @@ -0,0 +1,60 @@ +import * as genericPool from "generic-pool"; + +class Connection { + connected: boolean; +} + +const factory = { + create: (): Promise => { + return new Promise(resolve => { + let conn = new Connection(); + resolve(conn); + }); + }, + destroy: (conn: Connection): Promise => { + return new Promise(resolve => { + conn.connected = false; + resolve(); + }); + }, + validate: (conn: Connection): Promise => { + return new Promise(resolve => { + return conn.connected; + }); + } +}; + +let opts = { + max: 10, + min: 2, + maxWaitingClients: 2, + testOnBorrow: true, + acquireTimeoutMillis: 100, + fifo: true, + priorityRange: 5, + autostart: false, + evictionRunIntervalMillis: 200, + numTestsPerRun: 3, + softIdleTimeoutMillis: 100, + idleTimeoutMillis: 5000 +}; + +let pool = genericPool.createPool(factory, opts); + +pool.acquire() + .then((conn: Connection) => { + return pool.release(conn); + }).then(() => { + return pool.acquire(5); + }).then((conn: Connection) => { + return pool.destroy(conn); + }).then(() => { + return pool.clear(); + }).then((results: undefined[]) => { + }); + +pool.on('factoryCreateError', (err: Error) => { +}); + +pool.on('factoryDestroyError', (err: Error) => { +}); diff --git a/types/generic-pool/index.d.ts b/types/generic-pool/index.d.ts new file mode 100644 index 0000000000..7f7830f6b1 --- /dev/null +++ b/types/generic-pool/index.d.ts @@ -0,0 +1,47 @@ +// Type definitions for generic-pool 3.1 +// Project: https://github.com/coopernurse/node-pool#readme +// Definitions by: Jerray Fu +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { EventEmitter } from "events"; + +export class Pool extends EventEmitter { + spareResourceCapacity: number; + size: number; + available: number; + borrowed: number; + pending: number; + max: number; + min: number; + + acquire(priority?: number): Promise; + release(resource: T): void; + destroy(resource: T): void; + drain(): Promise; + clear(): Promise; +} + +export interface Factory { + create(): Promise; + destroy(client: T): Promise; + validate?(client: T): Promise; +} + +export interface Options { + max?: number; + min?: number; + maxWaitingClients?: number; + testOnBorrow?: boolean; + acquireTimeoutMillis?: number; + fifo?: boolean; + priorityRange?: number; + autostart?: boolean; + evictionRunIntervalMillis?: number; + numTestsPerRun?: number; + softIdleTimeoutMillis?: number; + idleTimeoutMillis?: number; +} + +export function createPool(factory: Factory, opts?: Options): Pool; diff --git a/types/generic-pool/tsconfig.json b/types/generic-pool/tsconfig.json new file mode 100644 index 0000000000..1110c67eff --- /dev/null +++ b/types/generic-pool/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "generic-pool-tests.ts" + ] +} diff --git a/types/generic-pool/tslint.json b/types/generic-pool/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/generic-pool/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From ded90b265d2ea14a48779e4f27efbf4b6270ce9d Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:47:38 +0200 Subject: [PATCH 135/166] [cpy] update typings to 5.1; [cp-file] add typings (#18737) --- types/cp-file/cp-file-tests.ts | 19 +++++++++++++++++++ types/cp-file/index.d.ts | 28 ++++++++++++++++++++++++++++ types/cp-file/tsconfig.json | 22 ++++++++++++++++++++++ types/cp-file/tslint.json | 1 + types/cpy/cpy-tests.ts | 19 ++++++++++++++----- types/cpy/index.d.ts | 31 ++++++++++++++++++++++++++----- types/cpy/tsconfig.json | 5 ++--- 7 files changed, 112 insertions(+), 13 deletions(-) create mode 100644 types/cp-file/cp-file-tests.ts create mode 100644 types/cp-file/index.d.ts create mode 100644 types/cp-file/tsconfig.json create mode 100644 types/cp-file/tslint.json diff --git a/types/cp-file/cp-file-tests.ts b/types/cp-file/cp-file-tests.ts new file mode 100644 index 0000000000..173a650e8f --- /dev/null +++ b/types/cp-file/cp-file-tests.ts @@ -0,0 +1,19 @@ +import cpFile = require('cp-file'); + +cpFile('src/unicorn.png', 'dist/unicorn.png').then(() => {}); +cpFile('src/unicorn.png', 'dist/unicorn.png', {overwrite: false}).then(() => {}); +cpFile('src/unicorn.png', 'dist/unicorn.png') + .on('progress', data => { + let str: string; + let num: number; + + str = data.src; + str = data.dest; + num = data.size; + num = data.written; + num = data.percent; + }) + .then(() => {}); + +cpFile.sync('src/unicorn.png', 'dist/unicorn.png'); +cpFile.sync('src/unicorn.png', 'dist/unicorn.png', {overwrite: false}); diff --git a/types/cp-file/index.d.ts b/types/cp-file/index.d.ts new file mode 100644 index 0000000000..d0966f4c85 --- /dev/null +++ b/types/cp-file/index.d.ts @@ -0,0 +1,28 @@ +// Type definitions for cp-file 4.2 +// Project: https://github.com/sindresorhus/cp-file#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = cpFile; + +declare function cpFile(source: string, destination: string, options?: cpFile.Options): Promise & cpFile.ProgressEmitter; + +declare namespace cpFile { + function sync(source: string, destination: string, options?: Options): void; + + interface ProgressEmitter { + on(event: 'progress', handler: (data: ProgressData) => void): Promise; + } + + interface Options { + overwrite?: boolean; + } + + interface ProgressData { + src: string; + dest: string; + size: number; + written: number; + percent: number; + } +} diff --git a/types/cp-file/tsconfig.json b/types/cp-file/tsconfig.json new file mode 100644 index 0000000000..ab4eca94d8 --- /dev/null +++ b/types/cp-file/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "cp-file-tests.ts" + ] +} diff --git a/types/cp-file/tslint.json b/types/cp-file/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/cp-file/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/cpy/cpy-tests.ts b/types/cpy/cpy-tests.ts index 3bc0cbb32a..1800ab35bf 100644 --- a/types/cpy/cpy-tests.ts +++ b/types/cpy/cpy-tests.ts @@ -1,9 +1,18 @@ import cpy = require('cpy'); -cpy(['src/*.png', '!src/goat.png'], 'dist').then(() => { - console.log('files copied'); -}); - +cpy(['src/*.png', '!src/goat.png'], 'dist').then(() => {}); cpy('foo.js', 'destination', { - rename: basename => `prefix-${basename}` + rename: basename => `prefix-${basename}`, + cwd: '/', + parents: true, + stat: true, + overwrite: false, }); +cpy('foo.js', 'destination') + .on('progress', progress => { + let num: number; + num = progress.completedFiles; + num = progress.totalFiles; + num = progress.completedSize; + }) + .then(() => {}); diff --git a/types/cpy/index.d.ts b/types/cpy/index.d.ts index 8ef585250b..b6ca781137 100644 --- a/types/cpy/index.d.ts +++ b/types/cpy/index.d.ts @@ -1,10 +1,31 @@ -// Type definitions for cpy 5.0 +// Type definitions for cpy 5.1 // Project: https://github.com/sindresorhus/cpy#readme // Definitions by: Mohamed Hegazy +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +import glob = require('glob'); +import cpFile = require('cp-file'); + export = cpy; -declare function cpy( - src: string | string[], - dest: string, - opts?: { cwd?: string, parents?: boolean, rename?(s: string): string }): Promise; +declare function cpy(files: string | string[], destination: string, opts?: cpy.Options): Promise & cpy.ProgressEmitter; + +declare namespace cpy { + interface ProgressEmitter { + on(event: 'progress', handler: (progress: ProgressData) => void): Promise; + } + + type Options = CpyOptions & glob.IOptions & cpFile.Options; + + interface CpyOptions { + cwd?: string; + parents?: boolean; + rename?: string | ((basename: string) => string); + } + + interface ProgressData { + completedFiles: number; + totalFiles: number; + completedSize: number; + } +} diff --git a/types/cpy/tsconfig.json b/types/cpy/tsconfig.json index 6cb55952aa..75f61a1e5d 100644 --- a/types/cpy/tsconfig.json +++ b/types/cpy/tsconfig.json @@ -2,8 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, @@ -20,4 +19,4 @@ "index.d.ts", "cpy-tests.ts" ] -} \ No newline at end of file +} From d17782cacf342e259545b3330df5d586bec1935f Mon Sep 17 00:00:00 2001 From: Cleve Littlefield Date: Tue, 8 Aug 2017 13:48:09 -0700 Subject: [PATCH 136/166] react-document-title type definition. (#18736) --- types/react-document-title/index.d.ts | 15 ++++++++++++ .../react-document-title-tests.tsx | 8 +++++++ types/react-document-title/tsconfig.json | 24 +++++++++++++++++++ types/react-document-title/tslint.json | 1 + 4 files changed, 48 insertions(+) create mode 100644 types/react-document-title/index.d.ts create mode 100644 types/react-document-title/react-document-title-tests.tsx create mode 100644 types/react-document-title/tsconfig.json create mode 100644 types/react-document-title/tslint.json diff --git a/types/react-document-title/index.d.ts b/types/react-document-title/index.d.ts new file mode 100644 index 0000000000..63acedfdeb --- /dev/null +++ b/types/react-document-title/index.d.ts @@ -0,0 +1,15 @@ +// Type definitions for react-document-title 2.0 +// Project: https://github.com/gaearon/react-document-title +// Definitions by: Cleve Littlefield +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as React from 'react'; + +interface DocumentTitleProps { + title: string; +} + +declare class DocumentTitle extends React.Component { +} + +export default DocumentTitle; diff --git a/types/react-document-title/react-document-title-tests.tsx b/types/react-document-title/react-document-title-tests.tsx new file mode 100644 index 0000000000..4982218008 --- /dev/null +++ b/types/react-document-title/react-document-title-tests.tsx @@ -0,0 +1,8 @@ +import * as React from 'react'; +import DocumentTitle from 'react-document-title'; + +class TitleTest extends React.Component { + render() { + return ; + } +} diff --git a/types/react-document-title/tsconfig.json b/types/react-document-title/tsconfig.json new file mode 100644 index 0000000000..5ebdc1943d --- /dev/null +++ b/types/react-document-title/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "react-document-title-tests.tsx" + ] +} \ No newline at end of file diff --git a/types/react-document-title/tslint.json b/types/react-document-title/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-document-title/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From f340893290ce75a45a362eca9deb5c4c089bf60a Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:49:06 +0200 Subject: [PATCH 137/166] [getos] add typings (#18733) --- types/getos/getos-tests.ts | 18 ++++++++++++++++++ types/getos/index.d.ts | 30 ++++++++++++++++++++++++++++++ types/getos/tsconfig.json | 22 ++++++++++++++++++++++ types/getos/tslint.json | 1 + 4 files changed, 71 insertions(+) create mode 100644 types/getos/getos-tests.ts create mode 100644 types/getos/index.d.ts create mode 100644 types/getos/tsconfig.json create mode 100644 types/getos/tslint.json diff --git a/types/getos/getos-tests.ts b/types/getos/getos-tests.ts new file mode 100644 index 0000000000..b1d5c2327c --- /dev/null +++ b/types/getos/getos-tests.ts @@ -0,0 +1,18 @@ +import getos = require('getos'); + +getos((e, os) => { + if (e) { + return; + } + + const thisOs: getos.Os = os; + + if (os.os === 'linux') { + let str: string; + let strn: string | undefined; + + str = os.dist; + str = os.release; + strn = os.codename; + } +}); diff --git a/types/getos/index.d.ts b/types/getos/index.d.ts new file mode 100644 index 0000000000..2b0048d006 --- /dev/null +++ b/types/getos/index.d.ts @@ -0,0 +1,30 @@ +// Type definitions for getos 3.0 +// Project: https://github.com/retrohacker/getos +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = getos; + +declare function getos(cb: (error: Error | null, os: getos.Os) => void): string; + +declare namespace getos { + type Os = OtherOs | LinuxOs; + + interface OtherOs { + os: 'aix' + | 'android' + | 'darwin' + | 'freebsd' + | 'openbsd' + | 'sunos' + | 'win32' + | 'cygwin'; + } + + interface LinuxOs { + os: 'linux'; + dist: string; + release: string; + codename?: string; + } +} diff --git a/types/getos/tsconfig.json b/types/getos/tsconfig.json new file mode 100644 index 0000000000..765383ed1c --- /dev/null +++ b/types/getos/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "getos-tests.ts" + ] +} diff --git a/types/getos/tslint.json b/types/getos/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/getos/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 734ea84afcbb1ce7ad8b7668221f05bc3510770f Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:50:03 +0200 Subject: [PATCH 138/166] [os-locale] add typings for v2, add strict null checks & linting (#18732) --- types/os-locale/index.d.ts | 18 +++++++++++------- types/os-locale/os-locale-tests.ts | 16 ++++++++-------- types/os-locale/tsconfig.json | 4 ++-- types/os-locale/tslint.json | 1 + types/os-locale/v1/index.d.ts | 14 ++++++++++++++ types/os-locale/v1/os-locale-tests.ts | 10 ++++++++++ types/os-locale/v1/tsconfig.json | 25 +++++++++++++++++++++++++ types/os-locale/v1/tslint.json | 1 + 8 files changed, 72 insertions(+), 17 deletions(-) create mode 100644 types/os-locale/tslint.json create mode 100644 types/os-locale/v1/index.d.ts create mode 100644 types/os-locale/v1/os-locale-tests.ts create mode 100644 types/os-locale/v1/tsconfig.json create mode 100644 types/os-locale/v1/tslint.json diff --git a/types/os-locale/index.d.ts b/types/os-locale/index.d.ts index c14e3b2bce..3a35e70766 100644 --- a/types/os-locale/index.d.ts +++ b/types/os-locale/index.d.ts @@ -1,13 +1,17 @@ -// Type definitions for os-locale 1.4.0 +// Type definitions for os-locale 2.1 // Project: https://github.com/sindresorhus/os-locale // Definitions by: Aya Morisawa +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export = osLocale; -declare function osLocale(options: { spawn?: boolean }, cb: (err: any, locale: string) => void): void; -declare function osLocale(cb: (err: any, locale: string) => void): void; -declare function osLocaleSync(): string; -declare function osLocaleSync(options: { spawn?: boolean }): string; +declare function osLocale(options?: osLocale.Options): Promise; -export { osLocaleSync as sync }; -export default osLocale; +declare namespace osLocale { + function sync(options?: Options): string; + + interface Options { + spawn?: boolean; + } +} diff --git a/types/os-locale/os-locale-tests.ts b/types/os-locale/os-locale-tests.ts index c54f45f6a0..233d9b5905 100644 --- a/types/os-locale/os-locale-tests.ts +++ b/types/os-locale/os-locale-tests.ts @@ -1,11 +1,11 @@ +import osLocale = require('os-locale'); -import osLocale, { sync } from 'os-locale'; - -osLocale((err: any, locale: string) => { +osLocale().then(locale => { + const str: string = locale; +}); +osLocale({spawn: false}).then(locale => { + const str: string = locale; }); -osLocale({spawn: false}, (err: any, locale: string) => { -}); - -var locale1: string = sync(); -var locale2: string = sync({spawn: false}); +const locale1: string = osLocale.sync(); +const locale2: string = osLocale.sync({spawn: false}); diff --git a/types/os-locale/tsconfig.json b/types/os-locale/tsconfig.json index 4cf5682e02..1ee35717ce 100644 --- a/types/os-locale/tsconfig.json +++ b/types/os-locale/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "os-locale-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/os-locale/tslint.json b/types/os-locale/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/os-locale/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/os-locale/v1/index.d.ts b/types/os-locale/v1/index.d.ts new file mode 100644 index 0000000000..2861e64d6b --- /dev/null +++ b/types/os-locale/v1/index.d.ts @@ -0,0 +1,14 @@ +// Type definitions for os-locale 1.4 +// Project: https://github.com/sindresorhus/os-locale +// Definitions by: Aya Morisawa +// BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = osLocale; + +declare function osLocale(options: { spawn?: boolean }, cb: (err: any, locale: string) => void): void; +declare function osLocale(cb: (err: any, locale: string) => void): void; + +declare namespace osLocale { + function sync(options?: { spawn?: boolean }): string; +} diff --git a/types/os-locale/v1/os-locale-tests.ts b/types/os-locale/v1/os-locale-tests.ts new file mode 100644 index 0000000000..46e7c39b32 --- /dev/null +++ b/types/os-locale/v1/os-locale-tests.ts @@ -0,0 +1,10 @@ +import osLocale = require('os-locale'); + +osLocale((err: any, locale: string) => { +}); + +osLocale({spawn: false}, (err: any, locale: string) => { +}); + +const locale1: string = osLocale.sync(); +const locale2: string = osLocale.sync({spawn: false}); diff --git a/types/os-locale/v1/tsconfig.json b/types/os-locale/v1/tsconfig.json new file mode 100644 index 0000000000..833b306fa5 --- /dev/null +++ b/types/os-locale/v1/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "os-locale": ["os-locale/v1"] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "os-locale-tests.ts" + ] +} diff --git a/types/os-locale/v1/tslint.json b/types/os-locale/v1/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/os-locale/v1/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From a0d20a13149fc3f33a1a07f5c877197a5bcfa399 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:50:39 +0200 Subject: [PATCH 139/166] [os-name] introduce typings (#18731) --- types/os-name/index.d.ts | 11 +++++++++++ types/os-name/os-name-tests.ts | 8 ++++++++ types/os-name/tsconfig.json | 22 ++++++++++++++++++++++ types/os-name/tslint.json | 1 + 4 files changed, 42 insertions(+) create mode 100644 types/os-name/index.d.ts create mode 100644 types/os-name/os-name-tests.ts create mode 100644 types/os-name/tsconfig.json create mode 100644 types/os-name/tslint.json diff --git a/types/os-name/index.d.ts b/types/os-name/index.d.ts new file mode 100644 index 0000000000..4e974a251f --- /dev/null +++ b/types/os-name/index.d.ts @@ -0,0 +1,11 @@ +// 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 new file mode 100644 index 0000000000..43c9cbad9e --- /dev/null +++ b/types/os-name/os-name-tests.ts @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000000..9e01c425f3 --- /dev/null +++ b/types/os-name/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "os-name-tests.ts" + ] +} diff --git a/types/os-name/tslint.json b/types/os-name/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/os-name/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 86e4c7565caa9d18088ff5774682ce20d44169b1 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:51:37 +0200 Subject: [PATCH 140/166] [quick-lru] introduce typings (#18730) --- types/quick-lru/index.d.ts | 26 ++++++++++++++++++++++++++ types/quick-lru/quick-lru-tests.ts | 29 +++++++++++++++++++++++++++++ types/quick-lru/tsconfig.json | 23 +++++++++++++++++++++++ types/quick-lru/tslint.json | 1 + 4 files changed, 79 insertions(+) create mode 100644 types/quick-lru/index.d.ts create mode 100644 types/quick-lru/quick-lru-tests.ts create mode 100644 types/quick-lru/tsconfig.json create mode 100644 types/quick-lru/tslint.json diff --git a/types/quick-lru/index.d.ts b/types/quick-lru/index.d.ts new file mode 100644 index 0000000000..7ce12e397c --- /dev/null +++ b/types/quick-lru/index.d.ts @@ -0,0 +1,26 @@ +// Type definitions for quick-lru 1.1 +// Project: https://github.com/sindresorhus/quick-lru#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = QuickLRU; + +declare class QuickLRU implements Iterable<[K, V]> { + readonly size: number; + constructor(options?: QuickLRU.Options); + [Symbol.iterator](): Iterator<[K, V]>; + set(key: K, value: V): this; + get(key: K): V | undefined; + has(key: K): boolean; + peek(key: K): V | undefined; + delete(key: K): void; + clear(): void; + keys(): Iterable; + values(): Iterable; +} + +declare namespace QuickLRU { + interface Options { + maxSize: number; + } +} diff --git a/types/quick-lru/quick-lru-tests.ts b/types/quick-lru/quick-lru-tests.ts new file mode 100644 index 0000000000..140e25bcd8 --- /dev/null +++ b/types/quick-lru/quick-lru-tests.ts @@ -0,0 +1,29 @@ +import QuickLRU = require('quick-lru'); + +let num: number; +let numu: number | undefined; +let str: string; +let bool: boolean; + +const lru = new QuickLRU({maxSize: 1000}); + +lru.set('🦄', 1).set('🌈', 2); +numu = lru.get('🦄'); +bool = lru.has('🦄'); +numu = lru.peek('🦄'); +lru.delete('🦄'); +lru.clear(); +num = lru.size; + +for (const [key, value] of lru) { + str = key; + num = value; +} + +for (const key of lru.keys()) { + str = key; +} + +for (const value of lru.values()) { + num = value; +} diff --git a/types/quick-lru/tsconfig.json b/types/quick-lru/tsconfig.json new file mode 100644 index 0000000000..0678d18c4c --- /dev/null +++ b/types/quick-lru/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "quick-lru-tests.ts" + ] +} diff --git a/types/quick-lru/tslint.json b/types/quick-lru/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/quick-lru/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 7935e187c698a8aa87ce6853be6631f120c96943 Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Wed, 9 Aug 2017 04:52:06 +0800 Subject: [PATCH 141/166] [webpack-dotenv-plugin] Add type definitions (#18726) --- types/webpack-dotenv-plugin/index.d.ts | 22 +++++++++++++++++++ types/webpack-dotenv-plugin/tsconfig.json | 22 +++++++++++++++++++ types/webpack-dotenv-plugin/tslint.json | 1 + .../webpack-dotenv-plugin-tests.ts | 19 ++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 types/webpack-dotenv-plugin/index.d.ts create mode 100644 types/webpack-dotenv-plugin/tsconfig.json create mode 100644 types/webpack-dotenv-plugin/tslint.json create mode 100644 types/webpack-dotenv-plugin/webpack-dotenv-plugin-tests.ts diff --git a/types/webpack-dotenv-plugin/index.d.ts b/types/webpack-dotenv-plugin/index.d.ts new file mode 100644 index 0000000000..4200c3b15e --- /dev/null +++ b/types/webpack-dotenv-plugin/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for webpack-dotenv-plugin 2.0 +// Project: https://github.com/nwinch/webpack-dotenv-plugin#readme +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as webpack from 'webpack'; + +declare namespace WebpackDotenvPlugin { + interface Options { + path?: string; + sample?: string; + silent?: boolean; + encoding?: string; + allowEmptyValues?: boolean; + } +} + +declare class WebpackDotenvPlugin extends webpack.Plugin { + constructor(options?: WebpackDotenvPlugin.Options); +} + +export = WebpackDotenvPlugin; diff --git a/types/webpack-dotenv-plugin/tsconfig.json b/types/webpack-dotenv-plugin/tsconfig.json new file mode 100644 index 0000000000..dbd9d47b1f --- /dev/null +++ b/types/webpack-dotenv-plugin/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "webpack-dotenv-plugin-tests.ts" + ] +} diff --git a/types/webpack-dotenv-plugin/tslint.json b/types/webpack-dotenv-plugin/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/webpack-dotenv-plugin/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/webpack-dotenv-plugin/webpack-dotenv-plugin-tests.ts b/types/webpack-dotenv-plugin/webpack-dotenv-plugin-tests.ts new file mode 100644 index 0000000000..8ea3993d39 --- /dev/null +++ b/types/webpack-dotenv-plugin/webpack-dotenv-plugin-tests.ts @@ -0,0 +1,19 @@ +import * as webpack from 'webpack'; +import * as DotenvPlugin from 'webpack-dotenv-plugin'; + +const config: webpack.Configuration = { + plugins: [ + new DotenvPlugin(), + new DotenvPlugin({ + sample: './.env.default', + path: './.env' + }), + new DotenvPlugin({ + sample: './.env.default', + path: './.env', + silent: true, + encoding: 'utf-8', + allowEmptyValues: true + }) + ] +}; From a573285132b9e5b50833bcd897089fe6a8175ae4 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:53:36 +0200 Subject: [PATCH 142/166] [p-limit] introduce typings (#18721) --- types/p-limit/index.d.ts | 8 ++++++++ types/p-limit/p-limit-tests.ts | 13 +++++++++++++ types/p-limit/tsconfig.json | 22 ++++++++++++++++++++++ types/p-limit/tslint.json | 1 + 4 files changed, 44 insertions(+) create mode 100644 types/p-limit/index.d.ts create mode 100644 types/p-limit/p-limit-tests.ts create mode 100644 types/p-limit/tsconfig.json create mode 100644 types/p-limit/tslint.json diff --git a/types/p-limit/index.d.ts b/types/p-limit/index.d.ts new file mode 100644 index 0000000000..bab2fa3272 --- /dev/null +++ b/types/p-limit/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for p-limit 1.1 +// Project: https://github.com/sindresorhus/p-limit#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pLimit; + +declare function pLimit(concurrency: number): (fn: () => PromiseLike) => Promise; diff --git a/types/p-limit/p-limit-tests.ts b/types/p-limit/p-limit-tests.ts new file mode 100644 index 0000000000..6e50894802 --- /dev/null +++ b/types/p-limit/p-limit-tests.ts @@ -0,0 +1,13 @@ +import pLimit = require('p-limit'); + +const limit = pLimit(1); + +const input = [ + limit(() => Promise.resolve('foo')), + limit(() => Promise.resolve('bar')), + limit(() => Promise.resolve(undefined)), +]; + +Promise.all(input).then(result => { + const str: string | undefined = result[0]; +}); diff --git a/types/p-limit/tsconfig.json b/types/p-limit/tsconfig.json new file mode 100644 index 0000000000..62ac82b46f --- /dev/null +++ b/types/p-limit/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-limit-tests.ts" + ] +} diff --git a/types/p-limit/tslint.json b/types/p-limit/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-limit/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 56a605246af95b852cdca7e3860d6c558d693356 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:54:03 +0200 Subject: [PATCH 143/166] [locate-path] add typings (#18720) --- types/locate-path/index.d.ts | 18 ++++++++++++++++++ types/locate-path/locate-path-tests.ts | 19 +++++++++++++++++++ types/locate-path/tsconfig.json | 22 ++++++++++++++++++++++ types/locate-path/tslint.json | 1 + 4 files changed, 60 insertions(+) create mode 100644 types/locate-path/index.d.ts create mode 100644 types/locate-path/locate-path-tests.ts create mode 100644 types/locate-path/tsconfig.json create mode 100644 types/locate-path/tslint.json diff --git a/types/locate-path/index.d.ts b/types/locate-path/index.d.ts new file mode 100644 index 0000000000..c863acdc3c --- /dev/null +++ b/types/locate-path/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for locate-path 2.0 +// Project: https://github.com/sindresorhus/locate-path#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = locatePath; + +declare function locatePath(input: Iterable, options?: locatePath.Options): Promise; + +declare namespace locatePath { + function sync(input: Iterable, options?: {cwd?: string}): string | undefined; + + interface Options { + concurrency?: number; + preserveOrder?: boolean; + cwd?: string; + } +} diff --git a/types/locate-path/locate-path-tests.ts b/types/locate-path/locate-path-tests.ts new file mode 100644 index 0000000000..9bab13c13e --- /dev/null +++ b/types/locate-path/locate-path-tests.ts @@ -0,0 +1,19 @@ +import locatePath = require('locate-path'); + +const files = [ + 'unicorn.png', + 'rainbow.png', // only this one actually exists on disk + 'pony.png' +]; + +let path: string | undefined; + +locatePath(files).then(foundPath => { + path = foundPath; +}); +locatePath(files, {concurrency: 2, preserveOrder: false, cwd: ''}).then(foundPath => { + path = foundPath; +}); + +path = locatePath.sync(files); +path = locatePath.sync(files, {cwd: ''}); diff --git a/types/locate-path/tsconfig.json b/types/locate-path/tsconfig.json new file mode 100644 index 0000000000..ba894e700e --- /dev/null +++ b/types/locate-path/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "locate-path-tests.ts" + ] +} diff --git a/types/locate-path/tslint.json b/types/locate-path/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/locate-path/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 48e27a5c81598fecb10cdb5b22ccdfe53730865b Mon Sep 17 00:00:00 2001 From: Adam Voga Date: Tue, 8 Aug 2017 22:57:04 +0200 Subject: [PATCH 144/166] Added types for package: ibm_db (#18712) * Added typings for ibm_db * Add some test * Linter fixes --- types/ibm_db/ibm_db-tests.ts | 12 ++ types/ibm_db/index.d.ts | 219 +++++++++++++++++++++++++++++++++++ types/ibm_db/tsconfig.json | 23 ++++ types/ibm_db/tslint.json | 1 + 4 files changed, 255 insertions(+) create mode 100644 types/ibm_db/ibm_db-tests.ts create mode 100644 types/ibm_db/index.d.ts create mode 100644 types/ibm_db/tsconfig.json create mode 100644 types/ibm_db/tslint.json diff --git a/types/ibm_db/ibm_db-tests.ts b/types/ibm_db/ibm_db-tests.ts new file mode 100644 index 0000000000..93802c662f --- /dev/null +++ b/types/ibm_db/ibm_db-tests.ts @@ -0,0 +1,12 @@ +import * as ibmdb from 'ibm_db'; +const cn = ''; +ibmdb.open("DATABASE=;HOSTNAME=;UID=db2user;PWD=password;PORT=;PROTOCOL=TCPIP", (err: Error, conn: ibmdb.Database) => { + if (err) return false; + + conn.query('select 1 from sysibm.sysdummy1', (err, data) => { + if (err) return false; + conn.close(() => { + // + }); + }); +}); diff --git a/types/ibm_db/index.d.ts b/types/ibm_db/index.d.ts new file mode 100644 index 0000000000..9bd8d66d6c --- /dev/null +++ b/types/ibm_db/index.d.ts @@ -0,0 +1,219 @@ +// Type definitions for ibm_db 2.0 +// Project: https://github.com/ibmdb/node-ibm_db +// Definitions by: Adam Voga +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +interface ConnStr { + DATABASE: string; + HOSTNAME: string; + PORT: number | string; + PROTOCOL: string; + UID: string; + PWD: string; +} + +interface Options { + odbc?: ODBC; + queue?: SimpleQueue | any[]; + fetchMode?: number | null; + conected?: boolean; + connectTimeout?: number | null; + systemNaming?: boolean; +} + +interface DescribeObject { + database: string; + schema?: string; + type?: string; + table?: string; + column?: string; +} + +interface PoolOptions { + idleTimeout?: number; + autoCleanIdle?: boolean; + maxPoolSize: number; + connectTimeout?: number; + systemNaming?: any; +} + +declare class SimpleQueue { + fifo: any[]; + executing: boolean; + push(fn: (foo: any, bar: any) => void): void; + maybeNext(): void; + next(): void; +} // Class SimpleQueue + +export default (options?: Options) => new Database(options); + +export class Database implements Options { + odbc: ODBC; + queue: SimpleQueue | any[]; + fetchMode: number | null; + connected: boolean; + connectTimeout: number | null; + conn?: ODBCConnection; + + constructor(options?: Options); + + open(connStr: string | ConnStr): Promise; + open(connStr: string | ConnStr, cb: (err: Error, conn?: ODBCConnection) => void): void; + + openSync(connStr: string | ConnStr): boolean; + + close(cb?: (err: Error, db: Database) => any): void; + close(): Promise; + + closeSync(): boolean; + + query(query: string, params: any[], cb: (err: Error, res: any[]) => void): void; + query(query: string | {sql: string, params: any[]}, cb: (err: Error, res: any[]) => void): void; + query(query: string | {sql: string, params: any[]}, params?: any[]): Promise; + + queryResult(query: string, params: any[], cb: (err: Error, res: ODBCResult) => void): void; + queryResult(query: string | {sql: string, params: any[]}, cb: (err: Error, res: ODBCResult) => void): void; + queryResult(query: string, params?: any[]): Promise; + + queryResultSync(query: string | {sql: string, params: any[]}, params?: any[]): ODBCResult; + + querySync(query: string | {sql: string, params: any[]}, params?: any[]): any[]; + + queryStream(sql: string, params: any[]): any; // TODO: add types from stream + + fetchStreamingResults(results: any, stream: any): any; // TODO: add types from stream + + beginTransaction(cb: (err: Error, res: any) => void): void; + beginTransaction(): Promise; + + endTransaction(rollback: boolean, cb: (foo: any, bar: any) => any): any; + endTransaction(): Promise; + + commitTransaction(cb: (err: Error, res: any) => void): void; + commitTransaction(): Promise; + + rollbackTransaction(cb: (err: Error, res: any) => void): void; + rollbackTransaction(): Promise; + + beginTransactionSync(): Database; + + endTransactionSync(rollback: boolean): Database; + + commitTransactionSync(): Database; + + rollbackTransactionSync(): Database; + + columns(catalog: string | null, schema: string | null, table: string | null, column: string | null, cb: (error: Error, res: ODBCResult) => void): void; + + tables(catalog: string | null, schema: string | null, table: string | null, type: string | null, cb: (error: Error, res: ODBCResult) => void): void; + + describe(obj: DescribeObject, cb: (error: Error, res: any[]) => void): void; + + prepare(sql: string, cb: (err: Error, stmt: ODBCStatement) => void): void; + prepare(sql: string): Promise; + + prepareSync(sql: string): ODBCStatement; + + setIsolationLevel(isolationLevel: number): boolean; +} // Class Database + +export class ODBC { + SQSQL_CLOSE?: string; + SQL_DROP?: string; + SQL_UNBIND?: string; + SQL_RESET_PARAMS?: string; + SQL_DESTROY?: string; + FETCH_ARRAY?: string; + FETCH_OBJECT?: string; +} // Class ODBC + +export let SQSQL_CLOSE: string; +export let SQL_DROP: string; +export let SQL_UNBIND: string; +export let SQL_RESET_PARAMS: string; +export let SQL_DESTROY: string; +export let FETCH_ARRAY: string; +export let FETCH_OBJECT: string; + +export class ODBCConnection { + loginTimeout: number; + connectTimeout: number; + connected: boolean; + systemNaming: boolean; +} // Class ODBCConnection + +export class ODBCStatement { + queue: SimpleQueue; + bindQueue: SimpleQueue; + + // TODO: type of outparams is unknown + _execute(cb: (err: Error, result: any[]) => void): void; + + _executeSync(params: any[]): ODBCResult; + + _executeDirect(sql: string, cb: (err: Error, result: any[]) => void): void; + + // _executeDirectSync // TODO: Add missing piece + + _executeNonQuery(cb: (err: Error, res: any[]) => void): void; + + // _executeNonQuerySync // TODO: Add missing piece + + _prepare(sql: string, cb: (err: Error) => void): void; + + _bind(params: any[], cb: (err: Error) => void): void; + + _bindSync(ary: any[]): void; + + execute(params: any[], cb: (err: Error, result: any[], outparams: any) => void): void; // TODO: type of outparams is unknown + execute(cb: (err: Error, result: any[], outparams: any) => void): void; + execute(params: any[]): Promise<{result: any[], outparams: any}>; + + executeSync(params: any[]): ODBCResult; + + executeDirect(sql: string, cb: (err: Error, result: any[]) => void): void; + + executeNonQuery(params: any[], cb: (err: Error, res: any[]) => void): void; + executeNonQuery(cb: (err: Error, res: any[]) => void): void; + executeNonQuery(params?: any[]): Promise; + + prepare(sql: string, cb: (err: Error, result: any[]) => void): void; + + bind(ary: any[], cb: (err: Error) => void): void; + + bindSync(ary: any[]): void; +} // Class ODBCStatement + +export class ODBCResult { + fetchMode: number; +} // Class ODBCResult + +export function getElapsedTime(): string; + +export function debug(x: boolean): void; + +export function open(connStr: string | ConnStr, options: Options, cb: (err: Error, db: Database) => void): void; +export function open(connStr: string | ConnStr, cb: (err: Error, db: Database) => void): void; +export function open(connStr: string | ConnStr, options?: Options): Promise; + +export function openSync(connStr: string | ConnStr, options?: Options): Database; + +export function close(db: Database): void; + +export class Pool implements PoolOptions { + maxPoolSize: number; + options: PoolOptions; + index: number; + availablePool: object; + usedPool: object; + poolsize: number; + odbc: ODBC; + constructor(options: PoolOptions) + open(connStr: string, cb: (err: Error, db: Database) => void): void; + init(count: number, connStr: string): boolean; + setMaxPoolSize(count: number): boolean; + setConnectTimeout(timeout: number): boolean; + cleanup(connStr: string): boolean; + close(cb: (foo: any, bar: any) => any): void; +} // Class Pool diff --git a/types/ibm_db/tsconfig.json b/types/ibm_db/tsconfig.json new file mode 100644 index 0000000000..a2944f53d3 --- /dev/null +++ b/types/ibm_db/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "ibm_db-tests.ts" + ] +} diff --git a/types/ibm_db/tslint.json b/types/ibm_db/tslint.json new file mode 100644 index 0000000000..5464b6543a --- /dev/null +++ b/types/ibm_db/tslint.json @@ -0,0 +1 @@ + { "extends": "dtslint/dt.json" } From 3c43f5038a523e68373dab9a209da9d467f74994 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 22:57:54 +0200 Subject: [PATCH 145/166] [p-tap] introduce typings (#18711) --- types/p-tap/index.d.ts | 13 +++++++++++++ types/p-tap/p-tap-tests.ts | 26 ++++++++++++++++++++++++++ types/p-tap/tsconfig.json | 22 ++++++++++++++++++++++ types/p-tap/tslint.json | 1 + 4 files changed, 62 insertions(+) create mode 100644 types/p-tap/index.d.ts create mode 100644 types/p-tap/p-tap-tests.ts create mode 100644 types/p-tap/tsconfig.json create mode 100644 types/p-tap/tslint.json diff --git a/types/p-tap/index.d.ts b/types/p-tap/index.d.ts new file mode 100644 index 0000000000..38996963fc --- /dev/null +++ b/types/p-tap/index.d.ts @@ -0,0 +1,13 @@ +// Type definitions for p-tap 1.0 +// Project: https://github.com/sindresorhus/p-tap#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pTap; + +declare const pTap: pTap; + +interface pTap { + (fn: (value: T) => any): (value: T) => Promise; + catch(fn: (value: any) => any): (value: any) => Promise; +} diff --git a/types/p-tap/p-tap-tests.ts b/types/p-tap/p-tap-tests.ts new file mode 100644 index 0000000000..e47cd83140 --- /dev/null +++ b/types/p-tap/p-tap-tests.ts @@ -0,0 +1,26 @@ +import pTap = require('p-tap'); + +Promise.resolve('unicorn') + .then(pTap(val => { + let str: string = val; + return 1; + })) + .then(val => { + let str: string = val; + }); + +Promise.resolve('unicorn') + .then(pTap(val => { + let str: string = val; + return Promise.resolve(1); + })) + .then(val => { + let str: string = val; + }); + +Promise.reject(new Error()) + .catch(pTap.catch(val => { + const num: number = val; + })) + .then(() => 1) + .catch(() => {}); diff --git a/types/p-tap/tsconfig.json b/types/p-tap/tsconfig.json new file mode 100644 index 0000000000..57f00f3d05 --- /dev/null +++ b/types/p-tap/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-tap-tests.ts" + ] +} diff --git a/types/p-tap/tslint.json b/types/p-tap/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-tap/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 40295264aa560794c246bf6d5146a34c3d6ced4c Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:01:12 +0200 Subject: [PATCH 146/166] [p-locate] introduce typings (#18718) --- types/p-locate/index.d.ts | 15 +++++++++++++++ types/p-locate/p-locate-tests.ts | 14 ++++++++++++++ types/p-locate/tsconfig.json | 22 ++++++++++++++++++++++ types/p-locate/tslint.json | 1 + 4 files changed, 52 insertions(+) create mode 100644 types/p-locate/index.d.ts create mode 100644 types/p-locate/p-locate-tests.ts create mode 100644 types/p-locate/tsconfig.json create mode 100644 types/p-locate/tslint.json diff --git a/types/p-locate/index.d.ts b/types/p-locate/index.d.ts new file mode 100644 index 0000000000..9ddc11197c --- /dev/null +++ b/types/p-locate/index.d.ts @@ -0,0 +1,15 @@ +// Type definitions for p-locate 2.0 +// Project: https://github.com/sindresorhus/p-locate#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pLocate; + +declare function pLocate(input: Iterable | T>, tester: (element: T) => Promise | boolean, options?: pLocate.Options): Promise; + +declare namespace pLocate { + interface Options { + concurrency?: number; + preserveOrder?: boolean; + } +} diff --git a/types/p-locate/p-locate-tests.ts b/types/p-locate/p-locate-tests.ts new file mode 100644 index 0000000000..acceb0376a --- /dev/null +++ b/types/p-locate/p-locate-tests.ts @@ -0,0 +1,14 @@ +import pLocate = require('p-locate'); + +const files = [ + 'unicorn.png', + 'rainbow.png', + 'pony.png' +]; + +let str: string | undefined; +pLocate(files, file => Promise.resolve(file === 'rainbow.png')).then(foundPath => { + str = foundPath; +}); + +pLocate(files, file => Promise.resolve(file === 'rainbow.png'), {concurrency: 2, preserveOrder: false}); diff --git a/types/p-locate/tsconfig.json b/types/p-locate/tsconfig.json new file mode 100644 index 0000000000..09d6d1f3dc --- /dev/null +++ b/types/p-locate/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-locate-tests.ts" + ] +} diff --git a/types/p-locate/tslint.json b/types/p-locate/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-locate/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From c42f6ca95b6b387b51788409c1d73e8d68af73d8 Mon Sep 17 00:00:00 2001 From: Melvin Groenhoff Date: Tue, 8 Aug 2017 23:01:56 +0200 Subject: [PATCH 147/166] Add typings for read-package-tree. (#18698) --- types/read-package-tree/index.d.ts | 29 +++++++++++++++++++ .../read-package-tree-tests.ts | 11 +++++++ types/read-package-tree/tsconfig.json | 22 ++++++++++++++ types/read-package-tree/tslint.json | 1 + 4 files changed, 63 insertions(+) create mode 100644 types/read-package-tree/index.d.ts create mode 100644 types/read-package-tree/read-package-tree-tests.ts create mode 100644 types/read-package-tree/tsconfig.json create mode 100644 types/read-package-tree/tslint.json diff --git a/types/read-package-tree/index.d.ts b/types/read-package-tree/index.d.ts new file mode 100644 index 0000000000..e67083ffca --- /dev/null +++ b/types/read-package-tree/index.d.ts @@ -0,0 +1,29 @@ +// Type definitions for read-package-tree 5.1 +// Project: https://github.com/npm/read-package-tree +// Definitions by: Melvin Groenhoff +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function rpt(root: string, cb: (er: Error | null, data: rpt.Node) => void): void; +declare function rpt(root: string, filterWith: (node: rpt.Node, kidName: string) => void | undefined | boolean, cb: (er: Error | null, data: rpt.Node) => void): void; + +declare namespace rpt { + class Node { + id: number; + package: any; + children: Node[]; + parent: Node | null; + path: string; + realpath: string; + error: Error | null; + isLink: boolean; + constructor(pkg: any, logical: string, physical: string, er: Error | null, cache: { [physical: string]: Node; }, fromLink?: boolean); + } + + class Link extends Node { + isLink: true; + target: Node; + constructor(pkg: any, logical: string, physical: string, realpath: string, er: Error | null, cache: { [physical: string]: Node; }); + } +} + +export = rpt; diff --git a/types/read-package-tree/read-package-tree-tests.ts b/types/read-package-tree/read-package-tree-tests.ts new file mode 100644 index 0000000000..0d3595a568 --- /dev/null +++ b/types/read-package-tree/read-package-tree-tests.ts @@ -0,0 +1,11 @@ +import * as readPackageTree from "read-package-tree"; + +readPackageTree("../", (error, data) => { + // done +}); + +readPackageTree("../", (node, kidName) => { + // filter +}, (error, data) => { + // done +}); diff --git a/types/read-package-tree/tsconfig.json b/types/read-package-tree/tsconfig.json new file mode 100644 index 0000000000..901a9a4074 --- /dev/null +++ b/types/read-package-tree/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "read-package-tree-tests.ts" + ] +} diff --git a/types/read-package-tree/tslint.json b/types/read-package-tree/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/read-package-tree/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 802fca28a0568818f83c356ac3d9e8024c4beba6 Mon Sep 17 00:00:00 2001 From: Melvin Groenhoff Date: Tue, 8 Aug 2017 23:04:26 +0200 Subject: [PATCH 148/166] Add typings for npm-package-arg. (#18696) --- types/npm-package-arg/index.d.ts | 84 +++++++++++++++++++ .../npm-package-arg/npm-package-arg-tests.ts | 6 ++ types/npm-package-arg/tsconfig.json | 22 +++++ types/npm-package-arg/tslint.json | 1 + 4 files changed, 113 insertions(+) create mode 100644 types/npm-package-arg/index.d.ts create mode 100644 types/npm-package-arg/npm-package-arg-tests.ts create mode 100644 types/npm-package-arg/tsconfig.json create mode 100644 types/npm-package-arg/tslint.json diff --git a/types/npm-package-arg/index.d.ts b/types/npm-package-arg/index.d.ts new file mode 100644 index 0000000000..bb1a0d8550 --- /dev/null +++ b/types/npm-package-arg/index.d.ts @@ -0,0 +1,84 @@ +// Type definitions for npm-package-arg 5.1 +// Project: https://github.com/npm/npm-package-arg +// Definitions by: Melvin Groenhoff +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * Throws if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported. + * @param arg a string that you might pass to npm install, like: + * foo@1.2, @bar/foo@1.2, foo@user/foo, http://x.com/foo.tgz, git+https://github.com/user/foo, bitbucket:user/foo, foo.tar.gz, ../foo/bar/ or bar. + * If the arg you provide doesn't have a specifier part, eg foo then the specifier will default to latest. + * @param where Optionally the path to resolve file paths relative to. Defaults to process.cwd() + */ +declare function npa(arg: string, where?: string): npa.Result; + +declare namespace npa { + /** + * Throws if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported. + * @param name The name of the module you want to install. For example: foo or @bar/foo. + * @param spec The specifier indicating where and how you can get this module. + * Something like: 1.2, ^1.7.17, http://x.com/foo.tgz, git+https://github.com/user/foo, bitbucket:user/foo, file:foo.tar.gz or file:../foo/bar/. If not included then the default is latest. + * @param where Optionally the path to resolve file paths relative to. Defaults to process.cwd() + */ + function resolve(name: string, spec: string, where?: string): Result; + + class Result { + /** + * One of the following strings: + * * git - A git repo + * * tag - A tagged version, like "foo@latest" + * * version - A specific version number, like "foo@1.2.3" + * * range - A version range, like "foo@2.x" + * * file - A local .tar.gz, .tar or .tgz file. + * * directory - A local directory. + * * remote - An http url (presumably to a tgz) + */ + type: "git" | "tag" | "version" | "range" | "file" | "directory" | "remote"; + /** + * If true this specifier refers to a resource hosted on a registry. This is true for tag, version and range types. + */ + registry: boolean; + /** + * If known, the name field expected in the resulting pkg. + */ + name: string | null; + /** + * If a name is something like @org/module then the scope field will be set to @org. If it doesn't have a scoped name, then scope is null. + */ + scope: string | null; + /** + * A version of name escaped to match the npm scoped packages specification. Mostly used when making requests against a registry. When name is null, escapedName will also be null. + */ + escapedName: string | null; + /** + * The specifier part that was parsed out in calls to npa(arg), or the value of spec in calls to `npa.resolve(name, spec). + */ + rawSpec: string; + /** + * The normalized specifier, for saving to package.json files. null for registry dependencies. + */ + saveSpec: string | null; + /** + * The version of the specifier to be used to fetch this resource. null for shortcuts to hosted git dependencies as there isn't just one URL to try with them. + */ + fetchSpec: string | null; + /** + * If set, this is a semver specifier to match against git tags with + */ + gitRange?: string; + /** + * If set, this is the specific committish to use with a git dependency. + */ + gitCommittish?: string; + /** + * If from === 'hosted' then this will be a hosted-git-info object. This property is not included when serializing the object as JSON. + */ + hosted?: any; + /** + * The original un-modified string that was provided. If called as npa.resolve(name, spec) then this will be name + '@' + spec. + */ + raw: string; + } +} + +export = npa; diff --git a/types/npm-package-arg/npm-package-arg-tests.ts b/types/npm-package-arg/npm-package-arg-tests.ts new file mode 100644 index 0000000000..ed95eb5243 --- /dev/null +++ b/types/npm-package-arg/npm-package-arg-tests.ts @@ -0,0 +1,6 @@ +import * as npa from "npm-package-arg"; + +const result1 = npa("npm-package-arg@5.1"); +const result2 = npa("npm-package-arg@5.1", ".."); +const result3 = npa.resolve("npm-package-arg", "^5.1.0"); +const result4 = npa.resolve("npm-package-arg", "^5.1.0", ".."); diff --git a/types/npm-package-arg/tsconfig.json b/types/npm-package-arg/tsconfig.json new file mode 100644 index 0000000000..97e72c70ab --- /dev/null +++ b/types/npm-package-arg/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "npm-package-arg-tests.ts" + ] +} diff --git a/types/npm-package-arg/tslint.json b/types/npm-package-arg/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/npm-package-arg/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 49a86971ef16956a22089bd5e8b2aac9650725c0 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 8 Aug 2017 14:06:51 -0700 Subject: [PATCH 149/166] Use `lodash/scripts/generate-modules.ts` to generate `lodash-es` too (#18751) --- types/lodash-es/add.d.ts | 2 + types/lodash-es/add/index.d.ts | 3 - types/lodash-es/after.d.ts | 2 + types/lodash-es/after/index.d.ts | 3 - types/lodash-es/ary.d.ts | 2 + types/lodash-es/ary/index.d.ts | 3 - types/lodash-es/assign.d.ts | 2 + types/lodash-es/assign/index.d.ts | 3 - types/lodash-es/assignIn.d.ts | 2 + types/lodash-es/assignIn/index.d.ts | 3 - types/lodash-es/assignInWith.d.ts | 2 + types/lodash-es/assignInWith/index.d.ts | 3 - types/lodash-es/assignWith.d.ts | 2 + types/lodash-es/assignWith/index.d.ts | 3 - types/lodash-es/at.d.ts | 2 + types/lodash-es/at/index.d.ts | 3 - types/lodash-es/attempt.d.ts | 2 + types/lodash-es/attempt/index.d.ts | 3 - types/lodash-es/before.d.ts | 2 + types/lodash-es/before/index.d.ts | 3 - types/lodash-es/bind.d.ts | 2 + types/lodash-es/bind/index.d.ts | 3 - types/lodash-es/bindAll.d.ts | 2 + types/lodash-es/bindAll/index.d.ts | 3 - types/lodash-es/bindKey.d.ts | 2 + types/lodash-es/bindKey/index.d.ts | 3 - types/lodash-es/camelCase.d.ts | 2 + types/lodash-es/camelCase/index.d.ts | 3 - types/lodash-es/capitalize.d.ts | 2 + types/lodash-es/capitalize/index.d.ts | 3 - types/lodash-es/castArray.d.ts | 2 + types/lodash-es/castArray/index.d.ts | 3 - types/lodash-es/ceil.d.ts | 2 + types/lodash-es/ceil/index.d.ts | 3 - types/lodash-es/chain.d.ts | 2 + types/lodash-es/chain/index.d.ts | 3 - types/lodash-es/chunk.d.ts | 2 + types/lodash-es/chunk/index.d.ts | 3 - types/lodash-es/clamp.d.ts | 2 + types/lodash-es/clamp/index.d.ts | 3 - types/lodash-es/clone.d.ts | 2 + types/lodash-es/clone/index.d.ts | 3 - types/lodash-es/cloneDeep.d.ts | 2 + types/lodash-es/cloneDeep/index.d.ts | 3 - types/lodash-es/cloneDeepWith.d.ts | 2 + types/lodash-es/cloneDeepWith/index.d.ts | 3 - types/lodash-es/cloneWith.d.ts | 2 + types/lodash-es/cloneWith/index.d.ts | 3 - types/lodash-es/compact.d.ts | 2 + types/lodash-es/compact/index.d.ts | 3 - types/lodash-es/concat.d.ts | 2 + types/lodash-es/concat/index.d.ts | 3 - types/lodash-es/constant.d.ts | 2 + types/lodash-es/constant/index.d.ts | 3 - types/lodash-es/countBy.d.ts | 2 + types/lodash-es/countBy/index.d.ts | 3 - types/lodash-es/create.d.ts | 2 + types/lodash-es/create/index.d.ts | 3 - types/lodash-es/curry.d.ts | 2 + types/lodash-es/curry/index.d.ts | 3 - types/lodash-es/curryRight.d.ts | 2 + types/lodash-es/curryRight/index.d.ts | 3 - types/lodash-es/debounce.d.ts | 2 + types/lodash-es/debounce/index.d.ts | 3 - types/lodash-es/deburr.d.ts | 2 + types/lodash-es/deburr/index.d.ts | 3 - types/lodash-es/defaults.d.ts | 2 + types/lodash-es/defaults/index.d.ts | 3 - types/lodash-es/defaultsDeep.d.ts | 2 + types/lodash-es/defaultsDeep/index.d.ts | 3 - types/lodash-es/defer.d.ts | 2 + types/lodash-es/defer/index.d.ts | 3 - types/lodash-es/delay.d.ts | 2 + types/lodash-es/delay/index.d.ts | 3 - types/lodash-es/difference.d.ts | 2 + types/lodash-es/difference/index.d.ts | 3 - types/lodash-es/differenceBy.d.ts | 2 + types/lodash-es/differenceBy/index.d.ts | 3 - types/lodash-es/differenceWith.d.ts | 2 + types/lodash-es/differenceWith/index.d.ts | 3 - types/lodash-es/drop.d.ts | 2 + types/lodash-es/drop/index.d.ts | 3 - types/lodash-es/dropRight.d.ts | 2 + types/lodash-es/dropRight/index.d.ts | 3 - types/lodash-es/dropRightWhile.d.ts | 2 + types/lodash-es/dropRightWhile/index.d.ts | 3 - types/lodash-es/dropWhile.d.ts | 2 + types/lodash-es/dropWhile/index.d.ts | 3 - types/lodash-es/each.d.ts | 2 + types/lodash-es/each/index.d.ts | 3 - types/lodash-es/eachRight.d.ts | 2 + types/lodash-es/eachRight/index.d.ts | 3 - types/lodash-es/endsWith.d.ts | 2 + types/lodash-es/endsWith/index.d.ts | 3 - types/lodash-es/eq.d.ts | 2 + types/lodash-es/eq/index.d.ts | 3 - types/lodash-es/escape.d.ts | 2 + types/lodash-es/escape/index.d.ts | 3 - types/lodash-es/escapeRegExp.d.ts | 2 + types/lodash-es/escapeRegExp/index.d.ts | 3 - types/lodash-es/every.d.ts | 2 + types/lodash-es/every/index.d.ts | 3 - types/lodash-es/extend.d.ts | 2 + types/lodash-es/extend/index.d.ts | 3 - types/lodash-es/extendWith.d.ts | 2 + types/lodash-es/extendWith/index.d.ts | 3 - types/lodash-es/fb/index.d.ts | 2 - types/lodash-es/fill.d.ts | 2 + types/lodash-es/fill/index.d.ts | 3 - types/lodash-es/filter.d.ts | 2 + types/lodash-es/filter/index.d.ts | 3 - types/lodash-es/find.d.ts | 2 + types/lodash-es/find/index.d.ts | 3 - types/lodash-es/findIndex.d.ts | 2 + types/lodash-es/findIndex/index.d.ts | 3 - types/lodash-es/findKey.d.ts | 2 + types/lodash-es/findKey/index.d.ts | 3 - types/lodash-es/findLast.d.ts | 2 + types/lodash-es/findLast/index.d.ts | 3 - types/lodash-es/findLastIndex.d.ts | 2 + types/lodash-es/findLastIndex/index.d.ts | 3 - types/lodash-es/findLastKey.d.ts | 2 + types/lodash-es/findLastKey/index.d.ts | 3 - types/lodash-es/first.d.ts | 2 + types/lodash-es/first/index.d.ts | 3 - types/lodash-es/flatMap.d.ts | 2 + types/lodash-es/flatMap/index.d.ts | 3 - types/lodash-es/flatten.d.ts | 2 + types/lodash-es/flatten/index.d.ts | 3 - types/lodash-es/flattenDeep.d.ts | 2 + types/lodash-es/flattenDeep/index.d.ts | 3 - types/lodash-es/flattenDepth.d.ts | 2 + types/lodash-es/flattenDepth/index.d.ts | 3 - types/lodash-es/flip.d.ts | 2 + types/lodash-es/flip/index.d.ts | 3 - types/lodash-es/floor.d.ts | 2 + types/lodash-es/floor/index.d.ts | 3 - types/lodash-es/flow.d.ts | 2 + types/lodash-es/flow/index.d.ts | 3 - types/lodash-es/flowRight.d.ts | 2 + types/lodash-es/flowRight/index.d.ts | 3 - types/lodash-es/forEach.d.ts | 2 + types/lodash-es/forEach/index.d.ts | 3 - types/lodash-es/forEachRight.d.ts | 2 + types/lodash-es/forEachRight/index.d.ts | 3 - types/lodash-es/forIn.d.ts | 2 + types/lodash-es/forIn/index.d.ts | 3 - types/lodash-es/forInRight.d.ts | 2 + types/lodash-es/forInRight/index.d.ts | 3 - types/lodash-es/forOwn.d.ts | 2 + types/lodash-es/forOwn/index.d.ts | 3 - types/lodash-es/forOwnRight.d.ts | 2 + types/lodash-es/forOwnRight/index.d.ts | 3 - types/lodash-es/fromPairs.d.ts | 2 + types/lodash-es/fromPairs/index.d.ts | 3 - types/lodash-es/functions.d.ts | 2 + types/lodash-es/functions/index.d.ts | 3 - types/lodash-es/functionsIn.d.ts | 2 + types/lodash-es/functionsIn/index.d.ts | 3 - types/lodash-es/get.d.ts | 2 + types/lodash-es/get/index.d.ts | 3 - types/lodash-es/groupBy.d.ts | 2 + types/lodash-es/groupBy/index.d.ts | 3 - types/lodash-es/gt.d.ts | 2 + types/lodash-es/gt/index.d.ts | 3 - types/lodash-es/gte.d.ts | 2 + types/lodash-es/gte/index.d.ts | 3 - types/lodash-es/has.d.ts | 2 + types/lodash-es/has/index.d.ts | 3 - types/lodash-es/hasIn.d.ts | 2 + types/lodash-es/hasIn/index.d.ts | 3 - types/lodash-es/head.d.ts | 2 + types/lodash-es/head/index.d.ts | 3 - types/lodash-es/identity.d.ts | 2 + types/lodash-es/identity/index.d.ts | 3 - types/lodash-es/inRange.d.ts | 2 + types/lodash-es/inRange/index.d.ts | 3 - types/lodash-es/includes.d.ts | 2 + types/lodash-es/includes/index.d.ts | 3 - types/lodash-es/index.d.ts | 574 +++++++++--------- types/lodash-es/indexOf.d.ts | 2 + types/lodash-es/indexOf/index.d.ts | 3 - types/lodash-es/initial.d.ts | 2 + types/lodash-es/initial/index.d.ts | 3 - types/lodash-es/intersection.d.ts | 2 + types/lodash-es/intersection/index.d.ts | 3 - types/lodash-es/intersectionBy.d.ts | 2 + types/lodash-es/intersectionBy/index.d.ts | 3 - types/lodash-es/intersectionWith.d.ts | 2 + types/lodash-es/intersectionWith/index.d.ts | 3 - types/lodash-es/invert.d.ts | 2 + types/lodash-es/invert/index.d.ts | 3 - types/lodash-es/invertBy.d.ts | 2 + types/lodash-es/invertBy/index.d.ts | 3 - types/lodash-es/invoke.d.ts | 2 + types/lodash-es/invoke/index.d.ts | 3 - types/lodash-es/invokeMap.d.ts | 2 + types/lodash-es/invokeMap/index.d.ts | 3 - types/lodash-es/isArguments.d.ts | 2 + types/lodash-es/isArguments/index.d.ts | 3 - types/lodash-es/isArray.d.ts | 2 + types/lodash-es/isArray/index.d.ts | 3 - types/lodash-es/isArrayBuffer.d.ts | 2 + types/lodash-es/isArrayBuffer/index.d.ts | 3 - types/lodash-es/isArrayLike.d.ts | 2 + types/lodash-es/isArrayLike/index.d.ts | 3 - types/lodash-es/isArrayLikeObject.d.ts | 2 + types/lodash-es/isArrayLikeObject/index.d.ts | 3 - types/lodash-es/isBoolean.d.ts | 2 + types/lodash-es/isBoolean/index.d.ts | 3 - types/lodash-es/isBuffer.d.ts | 2 + types/lodash-es/isBuffer/index.d.ts | 3 - types/lodash-es/isDate.d.ts | 2 + types/lodash-es/isDate/index.d.ts | 3 - types/lodash-es/isElement.d.ts | 2 + types/lodash-es/isElement/index.d.ts | 3 - types/lodash-es/isEmpty.d.ts | 2 + types/lodash-es/isEmpty/index.d.ts | 3 - types/lodash-es/isEqual.d.ts | 2 + types/lodash-es/isEqual/index.d.ts | 3 - types/lodash-es/isEqualWith.d.ts | 2 + types/lodash-es/isEqualWith/index.d.ts | 3 - types/lodash-es/isError.d.ts | 2 + types/lodash-es/isError/index.d.ts | 3 - types/lodash-es/isFinite.d.ts | 2 + types/lodash-es/isFinite/index.d.ts | 3 - types/lodash-es/isFunction.d.ts | 2 + types/lodash-es/isFunction/index.d.ts | 3 - types/lodash-es/isInteger.d.ts | 2 + types/lodash-es/isInteger/index.d.ts | 3 - types/lodash-es/isLength.d.ts | 2 + types/lodash-es/isLength/index.d.ts | 3 - types/lodash-es/isMap.d.ts | 2 + types/lodash-es/isMap/index.d.ts | 3 - types/lodash-es/isMatch.d.ts | 2 + types/lodash-es/isMatch/index.d.ts | 3 - types/lodash-es/isMatchWith.d.ts | 2 + types/lodash-es/isMatchWith/index.d.ts | 3 - types/lodash-es/isNaN.d.ts | 2 + types/lodash-es/isNaN/index.d.ts | 3 - types/lodash-es/isNative.d.ts | 2 + types/lodash-es/isNative/index.d.ts | 3 - types/lodash-es/isNil.d.ts | 2 + types/lodash-es/isNil/index.d.ts | 3 - types/lodash-es/isNull.d.ts | 2 + types/lodash-es/isNull/index.d.ts | 3 - types/lodash-es/isNumber.d.ts | 2 + types/lodash-es/isNumber/index.d.ts | 3 - types/lodash-es/isObject.d.ts | 2 + types/lodash-es/isObject/index.d.ts | 3 - types/lodash-es/isObjectLike.d.ts | 2 + types/lodash-es/isObjectLike/index.d.ts | 3 - types/lodash-es/isPlainObject.d.ts | 2 + types/lodash-es/isPlainObject/index.d.ts | 3 - types/lodash-es/isRegExp.d.ts | 2 + types/lodash-es/isRegExp/index.d.ts | 3 - types/lodash-es/isSafeInteger.d.ts | 2 + types/lodash-es/isSafeInteger/index.d.ts | 3 - types/lodash-es/isSet.d.ts | 2 + types/lodash-es/isSet/index.d.ts | 3 - types/lodash-es/isString.d.ts | 2 + types/lodash-es/isString/index.d.ts | 3 - types/lodash-es/isSymbol.d.ts | 2 + types/lodash-es/isSymbol/index.d.ts | 3 - types/lodash-es/isTypedArray.d.ts | 2 + types/lodash-es/isTypedArray/index.d.ts | 3 - types/lodash-es/isUndefined.d.ts | 2 + types/lodash-es/isUndefined/index.d.ts | 3 - types/lodash-es/isWeakMap.d.ts | 2 + types/lodash-es/isWeakMap/index.d.ts | 3 - types/lodash-es/isWeakSet.d.ts | 2 + types/lodash-es/isWeakSet/index.d.ts | 3 - types/lodash-es/iteratee.d.ts | 2 + types/lodash-es/iteratee/index.d.ts | 3 - types/lodash-es/join.d.ts | 2 + types/lodash-es/join/index.d.ts | 3 - types/lodash-es/kebabCase.d.ts | 2 + types/lodash-es/kebabCase/index.d.ts | 3 - types/lodash-es/keyBy.d.ts | 2 + types/lodash-es/keyBy/index.d.ts | 3 - types/lodash-es/keys.d.ts | 2 + types/lodash-es/keys/index.d.ts | 3 - types/lodash-es/keysIn.d.ts | 2 + types/lodash-es/keysIn/index.d.ts | 3 - types/lodash-es/last.d.ts | 2 + types/lodash-es/last/index.d.ts | 3 - types/lodash-es/lastIndexOf.d.ts | 2 + types/lodash-es/lastIndexOf/index.d.ts | 3 - types/lodash-es/lowerCase.d.ts | 2 + types/lodash-es/lowerCase/index.d.ts | 3 - types/lodash-es/lowerFirst.d.ts | 2 + types/lodash-es/lowerFirst/index.d.ts | 3 - types/lodash-es/lt.d.ts | 2 + types/lodash-es/lt/index.d.ts | 3 - types/lodash-es/lte.d.ts | 2 + types/lodash-es/lte/index.d.ts | 3 - types/lodash-es/map.d.ts | 2 + types/lodash-es/map/index.d.ts | 3 - types/lodash-es/mapKeys.d.ts | 2 + types/lodash-es/mapKeys/index.d.ts | 3 - types/lodash-es/mapValues.d.ts | 2 + types/lodash-es/mapValues/index.d.ts | 3 - types/lodash-es/matches.d.ts | 2 + types/lodash-es/matches/index.d.ts | 3 - types/lodash-es/matchesProperty.d.ts | 2 + types/lodash-es/matchesProperty/index.d.ts | 3 - types/lodash-es/max.d.ts | 2 + types/lodash-es/max/index.d.ts | 3 - types/lodash-es/maxBy.d.ts | 2 + types/lodash-es/maxBy/index.d.ts | 3 - types/lodash-es/mean.d.ts | 2 + types/lodash-es/mean/index.d.ts | 3 - types/lodash-es/meanBy.d.ts | 2 + types/lodash-es/meanBy/index.d.ts | 3 - types/lodash-es/memoize.d.ts | 2 + types/lodash-es/memoize/index.d.ts | 3 - types/lodash-es/merge.d.ts | 2 + types/lodash-es/merge/index.d.ts | 3 - types/lodash-es/mergeWith.d.ts | 2 + types/lodash-es/mergeWith/index.d.ts | 3 - types/lodash-es/method.d.ts | 2 + types/lodash-es/method/index.d.ts | 3 - types/lodash-es/methodOf.d.ts | 2 + types/lodash-es/methodOf/index.d.ts | 3 - types/lodash-es/min.d.ts | 2 + types/lodash-es/min/index.d.ts | 3 - types/lodash-es/minBy.d.ts | 2 + types/lodash-es/minBy/index.d.ts | 3 - types/lodash-es/mixin.d.ts | 2 + types/lodash-es/mixin/index.d.ts | 3 - types/lodash-es/negate.d.ts | 2 + types/lodash-es/negate/index.d.ts | 3 - types/lodash-es/noConflict.d.ts | 2 + types/lodash-es/noConflict/index.d.ts | 3 - types/lodash-es/noop.d.ts | 2 + types/lodash-es/noop/index.d.ts | 3 - types/lodash-es/now.d.ts | 2 + types/lodash-es/now/index.d.ts | 3 - types/lodash-es/nthArg.d.ts | 2 + types/lodash-es/nthArg/index.d.ts | 3 - types/lodash-es/omit.d.ts | 2 + types/lodash-es/omit/index.d.ts | 3 - types/lodash-es/omitBy.d.ts | 2 + types/lodash-es/omitBy/index.d.ts | 3 - types/lodash-es/once.d.ts | 2 + types/lodash-es/once/index.d.ts | 3 - types/lodash-es/orderBy.d.ts | 2 + types/lodash-es/orderBy/index.d.ts | 3 - types/lodash-es/over.d.ts | 2 + types/lodash-es/over/index.d.ts | 3 - types/lodash-es/overArgs.d.ts | 2 + types/lodash-es/overArgs/index.d.ts | 3 - types/lodash-es/overEvery.d.ts | 2 + types/lodash-es/overEvery/index.d.ts | 3 - types/lodash-es/overSome.d.ts | 2 + types/lodash-es/overSome/index.d.ts | 3 - types/lodash-es/pad.d.ts | 2 + types/lodash-es/pad/index.d.ts | 3 - types/lodash-es/padEnd.d.ts | 2 + types/lodash-es/padEnd/index.d.ts | 3 - types/lodash-es/padStart.d.ts | 2 + types/lodash-es/padStart/index.d.ts | 3 - types/lodash-es/parseInt.d.ts | 2 + types/lodash-es/parseInt/index.d.ts | 3 - types/lodash-es/partial.d.ts | 2 + types/lodash-es/partial/index.d.ts | 3 - types/lodash-es/partialRight.d.ts | 2 + types/lodash-es/partialRight/index.d.ts | 3 - types/lodash-es/partition.d.ts | 2 + types/lodash-es/partition/index.d.ts | 3 - types/lodash-es/pick.d.ts | 2 + types/lodash-es/pick/index.d.ts | 3 - types/lodash-es/pickBy.d.ts | 2 + types/lodash-es/pickBy/index.d.ts | 3 - types/lodash-es/property.d.ts | 2 + types/lodash-es/property/index.d.ts | 3 - types/lodash-es/propertyOf.d.ts | 2 + types/lodash-es/propertyOf/index.d.ts | 3 - types/lodash-es/pull.d.ts | 2 + types/lodash-es/pull/index.d.ts | 3 - types/lodash-es/pullAll.d.ts | 2 + types/lodash-es/pullAll/index.d.ts | 3 - types/lodash-es/pullAllBy.d.ts | 2 + types/lodash-es/pullAllBy/index.d.ts | 3 - types/lodash-es/pullAt.d.ts | 2 + types/lodash-es/pullAt/index.d.ts | 3 - types/lodash-es/random.d.ts | 2 + types/lodash-es/random/index.d.ts | 3 - types/lodash-es/range.d.ts | 2 + types/lodash-es/range/index.d.ts | 3 - types/lodash-es/rangeRight.d.ts | 2 + types/lodash-es/rangeRight/index.d.ts | 3 - types/lodash-es/rearg.d.ts | 2 + types/lodash-es/rearg/index.d.ts | 3 - types/lodash-es/reduce.d.ts | 2 + types/lodash-es/reduce/index.d.ts | 3 - types/lodash-es/reduceRight.d.ts | 2 + types/lodash-es/reduceRight/index.d.ts | 3 - types/lodash-es/reject.d.ts | 2 + types/lodash-es/reject/index.d.ts | 3 - types/lodash-es/remove.d.ts | 2 + types/lodash-es/remove/index.d.ts | 3 - types/lodash-es/repeat.d.ts | 2 + types/lodash-es/repeat/index.d.ts | 3 - types/lodash-es/replace.d.ts | 2 + types/lodash-es/replace/index.d.ts | 3 - types/lodash-es/rest.d.ts | 2 + types/lodash-es/rest/index.d.ts | 3 - types/lodash-es/result.d.ts | 2 + types/lodash-es/result/index.d.ts | 3 - types/lodash-es/reverse.d.ts | 2 + types/lodash-es/reverse/index.d.ts | 3 - types/lodash-es/round.d.ts | 2 + types/lodash-es/round/index.d.ts | 3 - types/lodash-es/runInContext.d.ts | 2 + types/lodash-es/runInContext/index.d.ts | 3 - types/lodash-es/sample.d.ts | 2 + types/lodash-es/sample/index.d.ts | 3 - types/lodash-es/sampleSize.d.ts | 2 + types/lodash-es/sampleSize/index.d.ts | 3 - types/lodash-es/set.d.ts | 2 + types/lodash-es/set/index.d.ts | 3 - types/lodash-es/setWith.d.ts | 2 + types/lodash-es/setWith/index.d.ts | 3 - types/lodash-es/shuffle.d.ts | 2 + types/lodash-es/shuffle/index.d.ts | 3 - types/lodash-es/size.d.ts | 2 + types/lodash-es/size/index.d.ts | 3 - types/lodash-es/slice.d.ts | 2 + types/lodash-es/slice/index.d.ts | 3 - types/lodash-es/snakeCase.d.ts | 2 + types/lodash-es/snakeCase/index.d.ts | 3 - types/lodash-es/some.d.ts | 2 + types/lodash-es/some/index.d.ts | 3 - types/lodash-es/sortBy.d.ts | 2 + types/lodash-es/sortBy/index.d.ts | 3 - types/lodash-es/sortedIndex.d.ts | 2 + types/lodash-es/sortedIndex/index.d.ts | 3 - types/lodash-es/sortedIndexBy.d.ts | 2 + types/lodash-es/sortedIndexBy/index.d.ts | 3 - types/lodash-es/sortedIndexOf.d.ts | 2 + types/lodash-es/sortedIndexOf/index.d.ts | 3 - types/lodash-es/sortedLastIndex.d.ts | 2 + types/lodash-es/sortedLastIndex/index.d.ts | 3 - types/lodash-es/sortedLastIndexBy.d.ts | 2 + types/lodash-es/sortedLastIndexBy/index.d.ts | 3 - types/lodash-es/sortedLastIndexOf.d.ts | 2 + types/lodash-es/sortedLastIndexOf/index.d.ts | 3 - types/lodash-es/sortedUniq.d.ts | 2 + types/lodash-es/sortedUniq/index.d.ts | 3 - types/lodash-es/sortedUniqBy.d.ts | 2 + types/lodash-es/sortedUniqBy/index.d.ts | 3 - types/lodash-es/split.d.ts | 2 + types/lodash-es/split/index.d.ts | 3 - types/lodash-es/spread.d.ts | 2 + types/lodash-es/spread/index.d.ts | 3 - types/lodash-es/startCase.d.ts | 2 + types/lodash-es/startCase/index.d.ts | 3 - types/lodash-es/startsWith.d.ts | 2 + types/lodash-es/startsWith/index.d.ts | 3 - types/lodash-es/subtract.d.ts | 2 + types/lodash-es/subtract/index.d.ts | 3 - types/lodash-es/sum.d.ts | 2 + types/lodash-es/sum/index.d.ts | 3 - types/lodash-es/sumBy.d.ts | 2 + types/lodash-es/sumBy/index.d.ts | 3 - types/lodash-es/tail.d.ts | 2 + types/lodash-es/tail/index.d.ts | 3 - types/lodash-es/take.d.ts | 2 + types/lodash-es/take/index.d.ts | 3 - types/lodash-es/takeRight.d.ts | 2 + types/lodash-es/takeRight/index.d.ts | 3 - types/lodash-es/takeRightWhile.d.ts | 2 + types/lodash-es/takeRightWhile/index.d.ts | 3 - types/lodash-es/takeWhile.d.ts | 2 + types/lodash-es/takeWhile/index.d.ts | 3 - types/lodash-es/tap.d.ts | 2 + types/lodash-es/tap/index.d.ts | 3 - types/lodash-es/template.d.ts | 2 + types/lodash-es/template/index.d.ts | 3 - types/lodash-es/throttle.d.ts | 2 + types/lodash-es/throttle/index.d.ts | 3 - types/lodash-es/thru.d.ts | 2 + types/lodash-es/thru/index.d.ts | 3 - types/lodash-es/times.d.ts | 2 + types/lodash-es/times/index.d.ts | 3 - types/lodash-es/toArray.d.ts | 2 + types/lodash-es/toArray/index.d.ts | 3 - types/lodash-es/toInteger.d.ts | 2 + types/lodash-es/toInteger/index.d.ts | 3 - types/lodash-es/toLength.d.ts | 2 + types/lodash-es/toLength/index.d.ts | 3 - types/lodash-es/toLower.d.ts | 2 + types/lodash-es/toLower/index.d.ts | 3 - types/lodash-es/toNumber.d.ts | 2 + types/lodash-es/toNumber/index.d.ts | 3 - types/lodash-es/toPairs.d.ts | 2 + types/lodash-es/toPairs/index.d.ts | 3 - types/lodash-es/toPairsIn.d.ts | 2 + types/lodash-es/toPairsIn/index.d.ts | 3 - types/lodash-es/toPath.d.ts | 2 + types/lodash-es/toPath/index.d.ts | 3 - types/lodash-es/toPlainObject.d.ts | 2 + types/lodash-es/toPlainObject/index.d.ts | 3 - types/lodash-es/toSafeInteger.d.ts | 2 + types/lodash-es/toSafeInteger/index.d.ts | 3 - types/lodash-es/toString.d.ts | 2 + types/lodash-es/toString/index.d.ts | 3 - types/lodash-es/toUpper.d.ts | 2 + types/lodash-es/toUpper/index.d.ts | 3 - types/lodash-es/transform.d.ts | 2 + types/lodash-es/transform/index.d.ts | 3 - types/lodash-es/trim.d.ts | 2 + types/lodash-es/trim/index.d.ts | 3 - types/lodash-es/trimEnd.d.ts | 2 + types/lodash-es/trimEnd/index.d.ts | 3 - types/lodash-es/trimStart.d.ts | 2 + types/lodash-es/trimStart/index.d.ts | 3 - types/lodash-es/truncate.d.ts | 2 + types/lodash-es/truncate/index.d.ts | 3 - types/lodash-es/tsconfig.json | 583 +++++++++--------- types/lodash-es/unary.d.ts | 2 + types/lodash-es/unary/index.d.ts | 3 - types/lodash-es/unescape.d.ts | 2 + types/lodash-es/unescape/index.d.ts | 3 - types/lodash-es/union.d.ts | 2 + types/lodash-es/union/index.d.ts | 3 - types/lodash-es/unionBy.d.ts | 2 + types/lodash-es/unionBy/index.d.ts | 3 - types/lodash-es/unionWith.d.ts | 2 + types/lodash-es/unionWith/index.d.ts | 3 - types/lodash-es/uniq.d.ts | 2 + types/lodash-es/uniq/index.d.ts | 3 - types/lodash-es/uniqBy.d.ts | 2 + types/lodash-es/uniqBy/index.d.ts | 3 - types/lodash-es/uniqWith.d.ts | 2 + types/lodash-es/uniqWith/index.d.ts | 3 - types/lodash-es/uniqueId.d.ts | 2 + types/lodash-es/uniqueId/index.d.ts | 3 - types/lodash-es/unset.d.ts | 2 + types/lodash-es/unset/index.d.ts | 3 - types/lodash-es/unzip.d.ts | 2 + types/lodash-es/unzip/index.d.ts | 3 - types/lodash-es/unzipWith.d.ts | 2 + types/lodash-es/unzipWith/index.d.ts | 3 - types/lodash-es/update.d.ts | 2 + types/lodash-es/update/index.d.ts | 3 - types/lodash-es/upperCase.d.ts | 2 + types/lodash-es/upperCase/index.d.ts | 3 - types/lodash-es/upperFirst.d.ts | 2 + types/lodash-es/upperFirst/index.d.ts | 3 - types/lodash-es/values.d.ts | 2 + types/lodash-es/values/index.d.ts | 3 - types/lodash-es/valuesIn.d.ts | 2 + types/lodash-es/valuesIn/index.d.ts | 3 - types/lodash-es/without.d.ts | 2 + types/lodash-es/without/index.d.ts | 3 - types/lodash-es/words.d.ts | 2 + types/lodash-es/words/index.d.ts | 3 - types/lodash-es/wrap.d.ts | 2 + types/lodash-es/wrap/index.d.ts | 3 - types/lodash-es/xor.d.ts | 2 + types/lodash-es/xor/index.d.ts | 3 - types/lodash-es/xorBy.d.ts | 2 + types/lodash-es/xorBy/index.d.ts | 3 - types/lodash-es/xorWith.d.ts | 2 + types/lodash-es/xorWith/index.d.ts | 3 - types/lodash-es/zip.d.ts | 2 + types/lodash-es/zip/index.d.ts | 3 - types/lodash-es/zipObject.d.ts | 2 + types/lodash-es/zipObject/index.d.ts | 3 - types/lodash-es/zipWith.d.ts | 2 + types/lodash-es/zipWith/index.d.ts | 3 - types/lodash.add/index.d.ts | 2 + types/lodash.add/tsconfig.json | 10 +- types/lodash.after/index.d.ts | 2 + types/lodash.after/tsconfig.json | 10 +- types/lodash.ary/index.d.ts | 2 + types/lodash.ary/tsconfig.json | 10 +- types/lodash.assign/index.d.ts | 2 + types/lodash.assign/tsconfig.json | 10 +- types/lodash.assignin/index.d.ts | 2 + types/lodash.assignin/tsconfig.json | 10 +- types/lodash.assigninwith/index.d.ts | 2 + types/lodash.assigninwith/tsconfig.json | 10 +- types/lodash.assignwith/index.d.ts | 2 + types/lodash.assignwith/tsconfig.json | 10 +- types/lodash.at/index.d.ts | 2 + types/lodash.at/tsconfig.json | 10 +- types/lodash.attempt/index.d.ts | 2 + types/lodash.attempt/tsconfig.json | 10 +- types/lodash.before/index.d.ts | 2 + types/lodash.before/tsconfig.json | 10 +- types/lodash.bind/index.d.ts | 2 + types/lodash.bind/tsconfig.json | 10 +- types/lodash.bindall/index.d.ts | 2 + types/lodash.bindall/tsconfig.json | 10 +- types/lodash.bindkey/index.d.ts | 2 + types/lodash.bindkey/tsconfig.json | 10 +- types/lodash.camelcase/index.d.ts | 2 + types/lodash.camelcase/tsconfig.json | 10 +- types/lodash.capitalize/index.d.ts | 2 + types/lodash.capitalize/tsconfig.json | 10 +- types/lodash.castarray/index.d.ts | 2 + types/lodash.castarray/tsconfig.json | 10 +- types/lodash.ceil/index.d.ts | 2 + types/lodash.ceil/tsconfig.json | 10 +- types/lodash.chunk/index.d.ts | 2 + types/lodash.chunk/tsconfig.json | 10 +- types/lodash.clamp/index.d.ts | 2 + types/lodash.clamp/tsconfig.json | 10 +- types/lodash.clone/index.d.ts | 2 + types/lodash.clone/tsconfig.json | 10 +- types/lodash.clonedeep/index.d.ts | 2 + types/lodash.clonedeep/tsconfig.json | 10 +- types/lodash.clonedeepwith/index.d.ts | 2 + types/lodash.clonedeepwith/tsconfig.json | 10 +- types/lodash.clonewith/index.d.ts | 2 + types/lodash.clonewith/tsconfig.json | 10 +- types/lodash.compact/index.d.ts | 2 + types/lodash.compact/tsconfig.json | 10 +- types/lodash.concat/index.d.ts | 2 + types/lodash.concat/tsconfig.json | 10 +- types/lodash.constant/index.d.ts | 2 + types/lodash.constant/tsconfig.json | 10 +- types/lodash.countby/index.d.ts | 2 + types/lodash.countby/tsconfig.json | 10 +- types/lodash.create/index.d.ts | 2 + types/lodash.create/tsconfig.json | 10 +- types/lodash.curry/index.d.ts | 2 + types/lodash.curry/tsconfig.json | 10 +- types/lodash.curryright/index.d.ts | 2 + types/lodash.curryright/tsconfig.json | 10 +- types/lodash.debounce/index.d.ts | 2 + types/lodash.debounce/tsconfig.json | 10 +- types/lodash.deburr/index.d.ts | 2 + types/lodash.deburr/tsconfig.json | 10 +- types/lodash.defaults/index.d.ts | 2 + types/lodash.defaults/tsconfig.json | 10 +- types/lodash.defaultsdeep/index.d.ts | 2 + types/lodash.defaultsdeep/tsconfig.json | 10 +- types/lodash.defer/index.d.ts | 2 + types/lodash.defer/tsconfig.json | 10 +- types/lodash.delay/index.d.ts | 2 + types/lodash.delay/tsconfig.json | 10 +- types/lodash.difference/index.d.ts | 2 + types/lodash.difference/tsconfig.json | 10 +- types/lodash.differenceby/index.d.ts | 2 + types/lodash.differenceby/tsconfig.json | 10 +- types/lodash.differencewith/index.d.ts | 2 + types/lodash.differencewith/tsconfig.json | 10 +- types/lodash.drop/index.d.ts | 2 + types/lodash.drop/tsconfig.json | 10 +- types/lodash.dropright/index.d.ts | 2 + types/lodash.dropright/tsconfig.json | 10 +- types/lodash.droprightwhile/index.d.ts | 2 + types/lodash.droprightwhile/tsconfig.json | 10 +- types/lodash.dropwhile/index.d.ts | 2 + types/lodash.dropwhile/tsconfig.json | 10 +- types/lodash.endswith/index.d.ts | 2 + types/lodash.endswith/tsconfig.json | 10 +- types/lodash.eq/index.d.ts | 2 + types/lodash.eq/tsconfig.json | 10 +- types/lodash.escape/index.d.ts | 2 + types/lodash.escape/tsconfig.json | 10 +- types/lodash.escaperegexp/index.d.ts | 2 + types/lodash.escaperegexp/tsconfig.json | 10 +- types/lodash.every/index.d.ts | 2 + types/lodash.every/tsconfig.json | 10 +- types/lodash.fill/index.d.ts | 2 + types/lodash.fill/tsconfig.json | 10 +- types/lodash.filter/index.d.ts | 2 + types/lodash.filter/tsconfig.json | 10 +- types/lodash.find/index.d.ts | 2 + types/lodash.find/tsconfig.json | 10 +- types/lodash.findindex/index.d.ts | 2 + types/lodash.findindex/tsconfig.json | 10 +- types/lodash.findkey/index.d.ts | 2 + types/lodash.findkey/tsconfig.json | 10 +- types/lodash.findlast/index.d.ts | 2 + types/lodash.findlast/tsconfig.json | 10 +- types/lodash.findlastindex/index.d.ts | 2 + types/lodash.findlastindex/tsconfig.json | 10 +- types/lodash.findlastkey/index.d.ts | 2 + types/lodash.findlastkey/tsconfig.json | 10 +- types/lodash.first/index.d.ts | 2 + types/lodash.first/tsconfig.json | 10 +- types/lodash.flatmap/index.d.ts | 2 + types/lodash.flatmap/tsconfig.json | 10 +- types/lodash.flatten/index.d.ts | 2 + types/lodash.flatten/tsconfig.json | 10 +- types/lodash.flattendeep/index.d.ts | 2 + types/lodash.flattendeep/tsconfig.json | 10 +- types/lodash.flattendepth/index.d.ts | 2 + types/lodash.flattendepth/tsconfig.json | 10 +- types/lodash.flip/index.d.ts | 2 + types/lodash.flip/tsconfig.json | 10 +- types/lodash.floor/index.d.ts | 2 + types/lodash.floor/tsconfig.json | 10 +- types/lodash.flow/index.d.ts | 2 + types/lodash.flow/tsconfig.json | 10 +- types/lodash.flowright/index.d.ts | 2 + types/lodash.flowright/tsconfig.json | 10 +- types/lodash.foreach/index.d.ts | 2 + types/lodash.foreach/tsconfig.json | 10 +- types/lodash.foreachright/index.d.ts | 2 + types/lodash.foreachright/tsconfig.json | 10 +- types/lodash.forin/index.d.ts | 2 + types/lodash.forin/tsconfig.json | 10 +- types/lodash.forinright/index.d.ts | 2 + types/lodash.forinright/tsconfig.json | 10 +- types/lodash.forown/index.d.ts | 2 + types/lodash.forown/tsconfig.json | 10 +- types/lodash.forownright/index.d.ts | 2 + types/lodash.forownright/tsconfig.json | 10 +- types/lodash.frompairs/index.d.ts | 2 + types/lodash.frompairs/tsconfig.json | 10 +- types/lodash.functions/index.d.ts | 2 + types/lodash.functions/tsconfig.json | 10 +- types/lodash.functionsin/index.d.ts | 2 + types/lodash.functionsin/tsconfig.json | 10 +- types/lodash.get/index.d.ts | 2 + types/lodash.get/tsconfig.json | 10 +- types/lodash.groupby/index.d.ts | 2 + types/lodash.groupby/tsconfig.json | 10 +- types/lodash.gt/index.d.ts | 2 + types/lodash.gt/tsconfig.json | 10 +- types/lodash.gte/index.d.ts | 2 + types/lodash.gte/tsconfig.json | 10 +- types/lodash.has/index.d.ts | 2 + types/lodash.has/tsconfig.json | 10 +- types/lodash.hasin/index.d.ts | 2 + types/lodash.hasin/tsconfig.json | 10 +- types/lodash.head/index.d.ts | 2 + types/lodash.head/tsconfig.json | 10 +- types/lodash.identity/index.d.ts | 2 + types/lodash.identity/tsconfig.json | 10 +- types/lodash.includes/index.d.ts | 2 + types/lodash.includes/tsconfig.json | 10 +- types/lodash.indexof/index.d.ts | 2 + types/lodash.indexof/tsconfig.json | 10 +- types/lodash.initial/index.d.ts | 2 + types/lodash.initial/tsconfig.json | 10 +- types/lodash.inrange/index.d.ts | 2 + types/lodash.inrange/tsconfig.json | 10 +- types/lodash.intersection/index.d.ts | 2 + types/lodash.intersection/tsconfig.json | 10 +- types/lodash.intersectionby/index.d.ts | 2 + types/lodash.intersectionby/tsconfig.json | 10 +- types/lodash.intersectionwith/index.d.ts | 2 + types/lodash.intersectionwith/tsconfig.json | 10 +- types/lodash.invert/index.d.ts | 2 + types/lodash.invert/tsconfig.json | 10 +- types/lodash.invertby/index.d.ts | 2 + types/lodash.invertby/tsconfig.json | 10 +- types/lodash.invoke/index.d.ts | 2 + types/lodash.invoke/tsconfig.json | 10 +- types/lodash.invokemap/index.d.ts | 2 + types/lodash.invokemap/tsconfig.json | 10 +- types/lodash.isarguments/index.d.ts | 2 + types/lodash.isarguments/tsconfig.json | 10 +- types/lodash.isarray/index.d.ts | 2 + types/lodash.isarray/tsconfig.json | 10 +- types/lodash.isarraybuffer/index.d.ts | 2 + types/lodash.isarraybuffer/tsconfig.json | 10 +- types/lodash.isarraylike/index.d.ts | 2 + types/lodash.isarraylike/tsconfig.json | 10 +- types/lodash.isarraylikeobject/index.d.ts | 2 + types/lodash.isarraylikeobject/tsconfig.json | 10 +- types/lodash.isboolean/index.d.ts | 2 + types/lodash.isboolean/tsconfig.json | 10 +- types/lodash.isbuffer/index.d.ts | 2 + types/lodash.isbuffer/tsconfig.json | 10 +- types/lodash.isdate/index.d.ts | 2 + types/lodash.isdate/tsconfig.json | 10 +- types/lodash.iselement/index.d.ts | 2 + types/lodash.iselement/tsconfig.json | 10 +- types/lodash.isempty/index.d.ts | 2 + types/lodash.isempty/tsconfig.json | 10 +- types/lodash.isequal/index.d.ts | 2 + types/lodash.isequal/tsconfig.json | 10 +- types/lodash.isequalwith/index.d.ts | 2 + types/lodash.isequalwith/tsconfig.json | 10 +- types/lodash.iserror/index.d.ts | 2 + types/lodash.iserror/tsconfig.json | 10 +- types/lodash.isfinite/index.d.ts | 2 + types/lodash.isfinite/tsconfig.json | 10 +- types/lodash.isfunction/index.d.ts | 2 + types/lodash.isfunction/tsconfig.json | 10 +- types/lodash.isinteger/index.d.ts | 2 + types/lodash.isinteger/tsconfig.json | 10 +- types/lodash.islength/index.d.ts | 2 + types/lodash.islength/tsconfig.json | 10 +- types/lodash.ismap/index.d.ts | 2 + types/lodash.ismap/tsconfig.json | 10 +- types/lodash.ismatch/index.d.ts | 2 + types/lodash.ismatch/tsconfig.json | 10 +- types/lodash.ismatchwith/index.d.ts | 2 + types/lodash.ismatchwith/tsconfig.json | 10 +- types/lodash.isnan/index.d.ts | 2 + types/lodash.isnan/tsconfig.json | 10 +- types/lodash.isnative/index.d.ts | 2 + types/lodash.isnative/tsconfig.json | 10 +- types/lodash.isnil/index.d.ts | 2 + types/lodash.isnil/tsconfig.json | 10 +- types/lodash.isnull/index.d.ts | 2 + types/lodash.isnull/tsconfig.json | 10 +- types/lodash.isnumber/index.d.ts | 2 + types/lodash.isnumber/tsconfig.json | 10 +- types/lodash.isobject/index.d.ts | 2 + types/lodash.isobject/tsconfig.json | 10 +- types/lodash.isobjectlike/index.d.ts | 2 + types/lodash.isobjectlike/tsconfig.json | 10 +- types/lodash.isplainobject/index.d.ts | 2 + types/lodash.isplainobject/tsconfig.json | 10 +- types/lodash.isregexp/index.d.ts | 2 + types/lodash.isregexp/tsconfig.json | 10 +- types/lodash.issafeinteger/index.d.ts | 2 + types/lodash.issafeinteger/tsconfig.json | 10 +- types/lodash.isset/index.d.ts | 2 + types/lodash.isset/tsconfig.json | 10 +- types/lodash.isstring/index.d.ts | 2 + types/lodash.isstring/tsconfig.json | 10 +- types/lodash.issymbol/index.d.ts | 2 + types/lodash.issymbol/tsconfig.json | 10 +- types/lodash.istypedarray/index.d.ts | 2 + types/lodash.istypedarray/tsconfig.json | 10 +- types/lodash.isundefined/index.d.ts | 2 + types/lodash.isundefined/tsconfig.json | 10 +- types/lodash.isweakmap/index.d.ts | 2 + types/lodash.isweakmap/tsconfig.json | 10 +- types/lodash.isweakset/index.d.ts | 2 + types/lodash.isweakset/tsconfig.json | 10 +- types/lodash.iteratee/index.d.ts | 2 + types/lodash.iteratee/tsconfig.json | 10 +- types/lodash.join/index.d.ts | 2 + types/lodash.join/tsconfig.json | 10 +- types/lodash.kebabcase/index.d.ts | 2 + types/lodash.kebabcase/tsconfig.json | 10 +- types/lodash.keyby/index.d.ts | 2 + types/lodash.keyby/tsconfig.json | 10 +- types/lodash.keys/index.d.ts | 2 + types/lodash.keys/tsconfig.json | 10 +- types/lodash.keysin/index.d.ts | 2 + types/lodash.keysin/tsconfig.json | 10 +- types/lodash.last/index.d.ts | 2 + types/lodash.last/tsconfig.json | 10 +- types/lodash.lastindexof/index.d.ts | 2 + types/lodash.lastindexof/tsconfig.json | 10 +- types/lodash.lowercase/index.d.ts | 2 + types/lodash.lowercase/tsconfig.json | 10 +- types/lodash.lowerfirst/index.d.ts | 2 + types/lodash.lowerfirst/tsconfig.json | 10 +- types/lodash.lt/index.d.ts | 2 + types/lodash.lt/tsconfig.json | 10 +- types/lodash.lte/index.d.ts | 2 + types/lodash.lte/tsconfig.json | 10 +- types/lodash.mapkeys/index.d.ts | 2 + types/lodash.mapkeys/tsconfig.json | 10 +- types/lodash.mapvalues/index.d.ts | 2 + types/lodash.mapvalues/tsconfig.json | 10 +- types/lodash.matches/index.d.ts | 2 + types/lodash.matches/tsconfig.json | 10 +- types/lodash.matchesproperty/index.d.ts | 2 + types/lodash.matchesproperty/tsconfig.json | 10 +- types/lodash.max/index.d.ts | 2 + types/lodash.max/tsconfig.json | 10 +- types/lodash.maxby/index.d.ts | 2 + types/lodash.maxby/tsconfig.json | 10 +- types/lodash.mean/index.d.ts | 2 + types/lodash.mean/tsconfig.json | 10 +- types/lodash.meanby/index.d.ts | 2 + types/lodash.meanby/tsconfig.json | 10 +- types/lodash.memoize/index.d.ts | 2 + types/lodash.memoize/tsconfig.json | 10 +- types/lodash.merge/index.d.ts | 2 + types/lodash.merge/tsconfig.json | 10 +- types/lodash.mergewith/index.d.ts | 2 + types/lodash.mergewith/tsconfig.json | 10 +- types/lodash.method/index.d.ts | 2 + types/lodash.method/tsconfig.json | 10 +- types/lodash.methodof/index.d.ts | 2 + types/lodash.methodof/tsconfig.json | 10 +- types/lodash.min/index.d.ts | 2 + types/lodash.min/tsconfig.json | 10 +- types/lodash.minby/index.d.ts | 2 + types/lodash.minby/tsconfig.json | 10 +- types/lodash.mixin/index.d.ts | 2 + types/lodash.mixin/tsconfig.json | 10 +- types/lodash.negate/index.d.ts | 2 + types/lodash.negate/tsconfig.json | 10 +- types/lodash.noop/index.d.ts | 2 + types/lodash.noop/tsconfig.json | 10 +- types/lodash.now/index.d.ts | 2 + types/lodash.now/tsconfig.json | 10 +- types/lodash.ntharg/index.d.ts | 2 + types/lodash.ntharg/tsconfig.json | 10 +- types/lodash.omit/index.d.ts | 2 + types/lodash.omit/tsconfig.json | 10 +- types/lodash.omitby/index.d.ts | 2 + types/lodash.omitby/tsconfig.json | 10 +- types/lodash.once/index.d.ts | 2 + types/lodash.once/tsconfig.json | 10 +- types/lodash.orderby/index.d.ts | 2 + types/lodash.orderby/tsconfig.json | 10 +- types/lodash.over/index.d.ts | 2 + types/lodash.over/tsconfig.json | 10 +- types/lodash.overargs/index.d.ts | 2 + types/lodash.overargs/tsconfig.json | 10 +- types/lodash.overevery/index.d.ts | 2 + types/lodash.overevery/tsconfig.json | 10 +- types/lodash.oversome/index.d.ts | 2 + types/lodash.oversome/tsconfig.json | 10 +- types/lodash.pad/index.d.ts | 2 + types/lodash.pad/tsconfig.json | 10 +- types/lodash.padend/index.d.ts | 2 + types/lodash.padend/tsconfig.json | 10 +- types/lodash.padstart/index.d.ts | 2 + types/lodash.padstart/tsconfig.json | 10 +- types/lodash.parseint/index.d.ts | 2 + types/lodash.parseint/tsconfig.json | 10 +- types/lodash.partial/index.d.ts | 2 + types/lodash.partial/tsconfig.json | 10 +- types/lodash.partialright/index.d.ts | 2 + types/lodash.partialright/tsconfig.json | 10 +- types/lodash.partition/index.d.ts | 2 + types/lodash.partition/tsconfig.json | 10 +- types/lodash.pick/index.d.ts | 2 + types/lodash.pick/tsconfig.json | 10 +- types/lodash.pickby/index.d.ts | 2 + types/lodash.pickby/tsconfig.json | 10 +- types/lodash.property/index.d.ts | 2 + types/lodash.property/tsconfig.json | 10 +- types/lodash.propertyof/index.d.ts | 2 + types/lodash.propertyof/tsconfig.json | 10 +- types/lodash.pull/index.d.ts | 2 + types/lodash.pull/tsconfig.json | 10 +- types/lodash.pullall/index.d.ts | 2 + types/lodash.pullall/tsconfig.json | 10 +- types/lodash.pullallby/index.d.ts | 2 + types/lodash.pullallby/tsconfig.json | 10 +- types/lodash.pullat/index.d.ts | 2 + types/lodash.pullat/tsconfig.json | 10 +- types/lodash.random/index.d.ts | 2 + types/lodash.random/tsconfig.json | 10 +- types/lodash.range/index.d.ts | 2 + types/lodash.range/tsconfig.json | 10 +- types/lodash.rangeright/index.d.ts | 2 + types/lodash.rangeright/tsconfig.json | 10 +- types/lodash.rearg/index.d.ts | 2 + types/lodash.rearg/tsconfig.json | 10 +- types/lodash.reduce/index.d.ts | 2 + types/lodash.reduce/tsconfig.json | 10 +- types/lodash.reduceright/index.d.ts | 2 + types/lodash.reduceright/tsconfig.json | 10 +- types/lodash.reject/index.d.ts | 2 + types/lodash.reject/tsconfig.json | 10 +- types/lodash.remove/index.d.ts | 2 + types/lodash.remove/tsconfig.json | 10 +- types/lodash.repeat/index.d.ts | 2 + types/lodash.repeat/tsconfig.json | 10 +- types/lodash.replace/index.d.ts | 2 + types/lodash.replace/tsconfig.json | 10 +- types/lodash.rest/index.d.ts | 2 + types/lodash.rest/tsconfig.json | 10 +- types/lodash.result/index.d.ts | 2 + types/lodash.result/tsconfig.json | 10 +- types/lodash.reverse/index.d.ts | 2 + types/lodash.reverse/tsconfig.json | 10 +- types/lodash.round/index.d.ts | 2 + types/lodash.round/tsconfig.json | 10 +- types/lodash.sample/index.d.ts | 2 + types/lodash.sample/tsconfig.json | 10 +- types/lodash.samplesize/index.d.ts | 2 + types/lodash.samplesize/tsconfig.json | 10 +- types/lodash.set/index.d.ts | 2 + types/lodash.set/tsconfig.json | 10 +- types/lodash.setwith/index.d.ts | 2 + types/lodash.setwith/tsconfig.json | 10 +- types/lodash.shuffle/index.d.ts | 2 + types/lodash.shuffle/tsconfig.json | 10 +- types/lodash.size/index.d.ts | 2 + types/lodash.size/tsconfig.json | 10 +- types/lodash.slice/index.d.ts | 2 + types/lodash.slice/tsconfig.json | 10 +- types/lodash.snakecase/index.d.ts | 2 + types/lodash.snakecase/tsconfig.json | 10 +- types/lodash.some/index.d.ts | 2 + types/lodash.some/tsconfig.json | 10 +- types/lodash.sortby/index.d.ts | 2 + types/lodash.sortby/tsconfig.json | 10 +- types/lodash.sortedindex/index.d.ts | 2 + types/lodash.sortedindex/tsconfig.json | 10 +- types/lodash.sortedindexby/index.d.ts | 2 + types/lodash.sortedindexby/tsconfig.json | 10 +- types/lodash.sortedindexof/index.d.ts | 2 + types/lodash.sortedindexof/tsconfig.json | 10 +- types/lodash.sortedlastindex/index.d.ts | 2 + types/lodash.sortedlastindex/tsconfig.json | 10 +- types/lodash.sortedlastindexby/index.d.ts | 2 + types/lodash.sortedlastindexby/tsconfig.json | 10 +- types/lodash.sortedlastindexof/index.d.ts | 2 + types/lodash.sortedlastindexof/tsconfig.json | 10 +- types/lodash.sorteduniq/index.d.ts | 2 + types/lodash.sorteduniq/tsconfig.json | 10 +- types/lodash.sorteduniqby/index.d.ts | 2 + types/lodash.sorteduniqby/tsconfig.json | 10 +- types/lodash.split/index.d.ts | 2 + types/lodash.split/tsconfig.json | 10 +- types/lodash.spread/index.d.ts | 2 + types/lodash.spread/tsconfig.json | 10 +- types/lodash.startcase/index.d.ts | 2 + types/lodash.startcase/tsconfig.json | 10 +- types/lodash.startswith/index.d.ts | 2 + types/lodash.startswith/tsconfig.json | 10 +- types/lodash.subtract/index.d.ts | 2 + types/lodash.subtract/tsconfig.json | 10 +- types/lodash.sum/index.d.ts | 2 + types/lodash.sum/tsconfig.json | 10 +- types/lodash.sumby/index.d.ts | 2 + types/lodash.sumby/tsconfig.json | 10 +- types/lodash.tail/index.d.ts | 2 + types/lodash.tail/tsconfig.json | 10 +- types/lodash.take/index.d.ts | 2 + types/lodash.take/tsconfig.json | 10 +- types/lodash.takeright/index.d.ts | 2 + types/lodash.takeright/tsconfig.json | 10 +- types/lodash.takerightwhile/index.d.ts | 2 + types/lodash.takerightwhile/tsconfig.json | 10 +- types/lodash.takewhile/index.d.ts | 2 + types/lodash.takewhile/tsconfig.json | 10 +- types/lodash.template/index.d.ts | 2 + types/lodash.template/tsconfig.json | 10 +- types/lodash.throttle/index.d.ts | 2 + types/lodash.throttle/tsconfig.json | 10 +- types/lodash.times/index.d.ts | 2 + types/lodash.times/tsconfig.json | 10 +- types/lodash.toarray/index.d.ts | 2 + types/lodash.toarray/tsconfig.json | 10 +- types/lodash.tointeger/index.d.ts | 2 + types/lodash.tointeger/tsconfig.json | 10 +- types/lodash.tolength/index.d.ts | 2 + types/lodash.tolength/tsconfig.json | 10 +- types/lodash.tolower/index.d.ts | 2 + types/lodash.tolower/tsconfig.json | 10 +- types/lodash.tonumber/index.d.ts | 2 + types/lodash.tonumber/tsconfig.json | 10 +- types/lodash.topairs/index.d.ts | 2 + types/lodash.topairs/tsconfig.json | 10 +- types/lodash.topairsin/index.d.ts | 2 + types/lodash.topairsin/tsconfig.json | 10 +- types/lodash.topath/index.d.ts | 2 + types/lodash.topath/tsconfig.json | 10 +- types/lodash.toplainobject/index.d.ts | 2 + types/lodash.toplainobject/tsconfig.json | 10 +- types/lodash.tosafeinteger/index.d.ts | 2 + types/lodash.tosafeinteger/tsconfig.json | 10 +- types/lodash.tostring/index.d.ts | 2 + types/lodash.tostring/tsconfig.json | 10 +- types/lodash.toupper/index.d.ts | 2 + types/lodash.toupper/tsconfig.json | 10 +- types/lodash.transform/index.d.ts | 2 + types/lodash.transform/tsconfig.json | 10 +- types/lodash.trim/index.d.ts | 2 + types/lodash.trim/tsconfig.json | 10 +- types/lodash.trimend/index.d.ts | 2 + types/lodash.trimend/tsconfig.json | 10 +- types/lodash.trimstart/index.d.ts | 2 + types/lodash.trimstart/tsconfig.json | 10 +- types/lodash.truncate/index.d.ts | 2 + types/lodash.truncate/tsconfig.json | 10 +- types/lodash.unary/index.d.ts | 2 + types/lodash.unary/tsconfig.json | 10 +- types/lodash.unescape/index.d.ts | 2 + types/lodash.unescape/tsconfig.json | 10 +- types/lodash.union/index.d.ts | 2 + types/lodash.union/tsconfig.json | 10 +- types/lodash.unionby/index.d.ts | 2 + types/lodash.unionby/tsconfig.json | 10 +- types/lodash.unionwith/index.d.ts | 2 + types/lodash.unionwith/tsconfig.json | 10 +- types/lodash.uniq/index.d.ts | 2 + types/lodash.uniq/tsconfig.json | 10 +- types/lodash.uniqby/index.d.ts | 2 + types/lodash.uniqby/tsconfig.json | 10 +- types/lodash.uniqueid/index.d.ts | 2 + types/lodash.uniqueid/tsconfig.json | 10 +- types/lodash.uniqwith/index.d.ts | 2 + types/lodash.uniqwith/tsconfig.json | 10 +- types/lodash.unset/index.d.ts | 2 + types/lodash.unset/tsconfig.json | 10 +- types/lodash.unzip/index.d.ts | 2 + types/lodash.unzip/tsconfig.json | 10 +- types/lodash.unzipwith/index.d.ts | 2 + types/lodash.unzipwith/tsconfig.json | 10 +- types/lodash.update/index.d.ts | 2 + types/lodash.update/tsconfig.json | 10 +- types/lodash.uppercase/index.d.ts | 2 + types/lodash.uppercase/tsconfig.json | 10 +- types/lodash.upperfirst/index.d.ts | 2 + types/lodash.upperfirst/tsconfig.json | 10 +- types/lodash.values/index.d.ts | 2 + types/lodash.values/tsconfig.json | 10 +- types/lodash.valuesin/index.d.ts | 2 + types/lodash.valuesin/tsconfig.json | 10 +- types/lodash.without/index.d.ts | 2 + types/lodash.without/tsconfig.json | 10 +- types/lodash.words/index.d.ts | 2 + types/lodash.words/tsconfig.json | 10 +- types/lodash.wrap/index.d.ts | 2 + types/lodash.wrap/tsconfig.json | 10 +- types/lodash.xor/index.d.ts | 2 + types/lodash.xor/tsconfig.json | 10 +- types/lodash.xorby/index.d.ts | 2 + types/lodash.xorby/tsconfig.json | 10 +- types/lodash.xorwith/index.d.ts | 2 + types/lodash.xorwith/tsconfig.json | 10 +- types/lodash.zip/index.d.ts | 2 + types/lodash.zip/tsconfig.json | 10 +- types/lodash.zipobject/index.d.ts | 2 + types/lodash.zipobject/tsconfig.json | 10 +- types/lodash.zipwith/index.d.ts | 2 + types/lodash.zipwith/tsconfig.json | 10 +- types/lodash/add.d.ts | 2 + types/lodash/add/index.d.ts | 2 - types/lodash/after.d.ts | 2 + types/lodash/after/index.d.ts | 2 - types/lodash/ary.d.ts | 2 + types/lodash/ary/index.d.ts | 2 - types/lodash/assign.d.ts | 2 + types/lodash/assign/index.d.ts | 2 - types/lodash/assignIn.d.ts | 2 + types/lodash/assignIn/index.d.ts | 2 - types/lodash/assignInWith.d.ts | 2 + types/lodash/assignInWith/index.d.ts | 2 - types/lodash/assignWith.d.ts | 2 + types/lodash/assignWith/index.d.ts | 2 - types/lodash/at.d.ts | 2 + types/lodash/at/index.d.ts | 2 - types/lodash/attempt.d.ts | 2 + types/lodash/attempt/index.d.ts | 2 - types/lodash/before.d.ts | 2 + types/lodash/before/index.d.ts | 2 - types/lodash/bind.d.ts | 2 + types/lodash/bind/index.d.ts | 2 - types/lodash/bindAll.d.ts | 2 + types/lodash/bindAll/index.d.ts | 2 - types/lodash/bindKey.d.ts | 2 + types/lodash/bindKey/index.d.ts | 2 - types/lodash/camelCase.d.ts | 2 + types/lodash/camelCase/index.d.ts | 2 - types/lodash/capitalize.d.ts | 2 + types/lodash/capitalize/index.d.ts | 2 - types/lodash/castArray.d.ts | 2 + types/lodash/castArray/index.d.ts | 2 - types/lodash/ceil.d.ts | 2 + types/lodash/ceil/index.d.ts | 2 - types/lodash/chain.d.ts | 2 + types/lodash/chain/index.d.ts | 2 - types/lodash/chunk.d.ts | 2 + types/lodash/chunk/index.d.ts | 2 - types/lodash/clamp.d.ts | 2 + types/lodash/clamp/index.d.ts | 2 - types/lodash/clone.d.ts | 2 + types/lodash/clone/index.d.ts | 2 - types/lodash/cloneDeep.d.ts | 2 + types/lodash/cloneDeep/index.d.ts | 2 - types/lodash/cloneDeepWith.d.ts | 2 + types/lodash/cloneDeepWith/index.d.ts | 2 - types/lodash/cloneWith.d.ts | 2 + types/lodash/cloneWith/index.d.ts | 2 - types/lodash/compact.d.ts | 2 + types/lodash/compact/index.d.ts | 2 - types/lodash/concat.d.ts | 2 + types/lodash/concat/index.d.ts | 2 - types/lodash/constant.d.ts | 2 + types/lodash/constant/index.d.ts | 2 - types/lodash/countBy.d.ts | 2 + types/lodash/countBy/index.d.ts | 2 - types/lodash/create.d.ts | 2 + types/lodash/create/index.d.ts | 2 - types/lodash/curry.d.ts | 2 + types/lodash/curry/index.d.ts | 2 - types/lodash/curryRight.d.ts | 2 + types/lodash/curryRight/index.d.ts | 2 - types/lodash/debounce.d.ts | 2 + types/lodash/debounce/index.d.ts | 2 - types/lodash/deburr.d.ts | 2 + types/lodash/deburr/index.d.ts | 2 - types/lodash/defaults.d.ts | 2 + types/lodash/defaults/index.d.ts | 2 - types/lodash/defaultsDeep.d.ts | 2 + types/lodash/defaultsDeep/index.d.ts | 2 - types/lodash/defer.d.ts | 2 + types/lodash/defer/index.d.ts | 2 - types/lodash/delay.d.ts | 2 + types/lodash/delay/index.d.ts | 2 - types/lodash/difference.d.ts | 2 + types/lodash/difference/index.d.ts | 2 - types/lodash/differenceBy.d.ts | 2 + types/lodash/differenceBy/index.d.ts | 2 - types/lodash/differenceWith.d.ts | 2 + types/lodash/differenceWith/index.d.ts | 2 - types/lodash/divide/index.d.ts | 2 - types/lodash/drop.d.ts | 2 + types/lodash/drop/index.d.ts | 2 - types/lodash/dropRight.d.ts | 2 + types/lodash/dropRight/index.d.ts | 2 - types/lodash/dropRightWhile.d.ts | 2 + types/lodash/dropRightWhile/index.d.ts | 2 - types/lodash/dropWhile.d.ts | 2 + types/lodash/dropWhile/index.d.ts | 2 - types/lodash/each.d.ts | 2 + types/lodash/each/index.d.ts | 2 - types/lodash/eachRight.d.ts | 2 + types/lodash/eachRight/index.d.ts | 2 - types/lodash/endsWith.d.ts | 2 + types/lodash/endsWith/index.d.ts | 2 - types/lodash/eq.d.ts | 2 + types/lodash/eq/index.d.ts | 2 - types/lodash/escape.d.ts | 2 + types/lodash/escape/index.d.ts | 2 - types/lodash/escapeRegExp.d.ts | 2 + types/lodash/escapeRegExp/index.d.ts | 2 - types/lodash/every.d.ts | 2 + types/lodash/every/index.d.ts | 2 - types/lodash/extend.d.ts | 2 + types/lodash/extend/index.d.ts | 2 - types/lodash/extendWith.d.ts | 2 + types/lodash/extendWith/index.d.ts | 2 - types/lodash/fb/index.d.ts | 2 - types/lodash/fill.d.ts | 2 + types/lodash/fill/index.d.ts | 2 - types/lodash/filter.d.ts | 2 + types/lodash/filter/index.d.ts | 2 - types/lodash/find.d.ts | 2 + types/lodash/find/index.d.ts | 2 - types/lodash/findIndex.d.ts | 2 + types/lodash/findIndex/index.d.ts | 2 - types/lodash/findKey.d.ts | 2 + types/lodash/findKey/index.d.ts | 2 - types/lodash/findLast.d.ts | 2 + types/lodash/findLast/index.d.ts | 2 - types/lodash/findLastIndex.d.ts | 2 + types/lodash/findLastIndex/index.d.ts | 2 - types/lodash/findLastKey.d.ts | 2 + types/lodash/findLastKey/index.d.ts | 2 - types/lodash/first.d.ts | 2 + types/lodash/first/index.d.ts | 2 - types/lodash/flatMap.d.ts | 2 + types/lodash/flatMap/index.d.ts | 2 - types/lodash/flatten.d.ts | 2 + types/lodash/flatten/index.d.ts | 2 - types/lodash/flattenDeep.d.ts | 2 + types/lodash/flattenDeep/index.d.ts | 2 - types/lodash/flattenDepth.d.ts | 2 + types/lodash/flattenDepth/index.d.ts | 2 - types/lodash/flip.d.ts | 2 + types/lodash/flip/index.d.ts | 2 - types/lodash/floor.d.ts | 2 + types/lodash/floor/index.d.ts | 2 - types/lodash/flow.d.ts | 2 + types/lodash/flow/index.d.ts | 2 - types/lodash/flowRight.d.ts | 2 + types/lodash/flowRight/index.d.ts | 2 - types/lodash/forEach.d.ts | 2 + types/lodash/forEach/index.d.ts | 2 - types/lodash/forEachRight.d.ts | 2 + types/lodash/forEachRight/index.d.ts | 2 - types/lodash/forIn.d.ts | 2 + types/lodash/forIn/index.d.ts | 2 - types/lodash/forInRight.d.ts | 2 + types/lodash/forInRight/index.d.ts | 2 - types/lodash/forOwn.d.ts | 2 + types/lodash/forOwn/index.d.ts | 2 - types/lodash/forOwnRight.d.ts | 2 + types/lodash/forOwnRight/index.d.ts | 2 - types/lodash/fromPairs.d.ts | 2 + types/lodash/fromPairs/index.d.ts | 2 - types/lodash/functions.d.ts | 2 + types/lodash/functions/index.d.ts | 2 - types/lodash/functionsIn.d.ts | 2 + types/lodash/functionsIn/index.d.ts | 2 - types/lodash/get.d.ts | 2 + types/lodash/get/index.d.ts | 2 - types/lodash/groupBy.d.ts | 2 + types/lodash/groupBy/index.d.ts | 2 - types/lodash/gt.d.ts | 2 + types/lodash/gt/index.d.ts | 2 - types/lodash/gte.d.ts | 2 + types/lodash/gte/index.d.ts | 2 - types/lodash/has.d.ts | 2 + types/lodash/has/index.d.ts | 2 - types/lodash/hasIn.d.ts | 2 + types/lodash/hasIn/index.d.ts | 2 - types/lodash/head.d.ts | 2 + types/lodash/head/index.d.ts | 2 - types/lodash/identity.d.ts | 2 + types/lodash/identity/index.d.ts | 2 - types/lodash/inRange.d.ts | 2 + types/lodash/inRange/index.d.ts | 2 - types/lodash/includes.d.ts | 2 + types/lodash/includes/index.d.ts | 2 - types/lodash/indexOf.d.ts | 2 + types/lodash/indexOf/index.d.ts | 2 - types/lodash/initial.d.ts | 2 + types/lodash/initial/index.d.ts | 2 - types/lodash/intersection.d.ts | 2 + types/lodash/intersection/index.d.ts | 2 - types/lodash/intersectionBy.d.ts | 2 + types/lodash/intersectionBy/index.d.ts | 2 - types/lodash/intersectionWith.d.ts | 2 + types/lodash/intersectionWith/index.d.ts | 2 - types/lodash/invert.d.ts | 2 + types/lodash/invert/index.d.ts | 2 - types/lodash/invertBy.d.ts | 2 + types/lodash/invertBy/index.d.ts | 2 - types/lodash/invoke.d.ts | 2 + types/lodash/invoke/index.d.ts | 2 - types/lodash/invokeMap.d.ts | 2 + types/lodash/invokeMap/index.d.ts | 2 - types/lodash/isArguments.d.ts | 2 + types/lodash/isArguments/index.d.ts | 2 - types/lodash/isArray.d.ts | 2 + types/lodash/isArray/index.d.ts | 2 - types/lodash/isArrayBuffer.d.ts | 2 + types/lodash/isArrayBuffer/index.d.ts | 2 - types/lodash/isArrayLike.d.ts | 2 + types/lodash/isArrayLike/index.d.ts | 2 - types/lodash/isArrayLikeObject.d.ts | 2 + types/lodash/isArrayLikeObject/index.d.ts | 2 - types/lodash/isBoolean.d.ts | 2 + types/lodash/isBoolean/index.d.ts | 2 - types/lodash/isBuffer.d.ts | 2 + types/lodash/isBuffer/index.d.ts | 2 - types/lodash/isDate.d.ts | 2 + types/lodash/isDate/index.d.ts | 2 - types/lodash/isElement.d.ts | 2 + types/lodash/isElement/index.d.ts | 2 - types/lodash/isEmpty.d.ts | 2 + types/lodash/isEmpty/index.d.ts | 2 - types/lodash/isEqual.d.ts | 2 + types/lodash/isEqual/index.d.ts | 2 - types/lodash/isEqualWith.d.ts | 2 + types/lodash/isEqualWith/index.d.ts | 2 - types/lodash/isError.d.ts | 2 + types/lodash/isError/index.d.ts | 2 - types/lodash/isFinite.d.ts | 2 + types/lodash/isFinite/index.d.ts | 2 - types/lodash/isFunction.d.ts | 2 + types/lodash/isFunction/index.d.ts | 2 - types/lodash/isInteger.d.ts | 2 + types/lodash/isInteger/index.d.ts | 2 - types/lodash/isLength.d.ts | 2 + types/lodash/isLength/index.d.ts | 2 - types/lodash/isMap.d.ts | 2 + types/lodash/isMap/index.d.ts | 2 - types/lodash/isMatch.d.ts | 2 + types/lodash/isMatch/index.d.ts | 2 - types/lodash/isMatchWith.d.ts | 2 + types/lodash/isMatchWith/index.d.ts | 2 - types/lodash/isNaN.d.ts | 2 + types/lodash/isNaN/index.d.ts | 2 - types/lodash/isNative.d.ts | 2 + types/lodash/isNative/index.d.ts | 2 - types/lodash/isNil.d.ts | 2 + types/lodash/isNil/index.d.ts | 2 - types/lodash/isNull.d.ts | 2 + types/lodash/isNull/index.d.ts | 2 - types/lodash/isNumber.d.ts | 2 + types/lodash/isNumber/index.d.ts | 2 - types/lodash/isObject.d.ts | 2 + types/lodash/isObject/index.d.ts | 2 - types/lodash/isObjectLike.d.ts | 2 + types/lodash/isObjectLike/index.d.ts | 2 - types/lodash/isPlainObject.d.ts | 2 + types/lodash/isPlainObject/index.d.ts | 2 - types/lodash/isRegExp.d.ts | 2 + types/lodash/isRegExp/index.d.ts | 2 - types/lodash/isSafeInteger.d.ts | 2 + types/lodash/isSafeInteger/index.d.ts | 2 - types/lodash/isSet.d.ts | 2 + types/lodash/isSet/index.d.ts | 2 - types/lodash/isString.d.ts | 2 + types/lodash/isString/index.d.ts | 2 - types/lodash/isSymbol.d.ts | 2 + types/lodash/isSymbol/index.d.ts | 2 - types/lodash/isTypedArray.d.ts | 2 + types/lodash/isTypedArray/index.d.ts | 2 - types/lodash/isUndefined.d.ts | 2 + types/lodash/isUndefined/index.d.ts | 2 - types/lodash/isWeakMap.d.ts | 2 + types/lodash/isWeakMap/index.d.ts | 2 - types/lodash/isWeakSet.d.ts | 2 + types/lodash/isWeakSet/index.d.ts | 2 - types/lodash/iteratee.d.ts | 2 + types/lodash/iteratee/index.d.ts | 2 - types/lodash/join.d.ts | 2 + types/lodash/join/index.d.ts | 2 - types/lodash/kebabCase.d.ts | 2 + types/lodash/kebabCase/index.d.ts | 2 - types/lodash/keyBy.d.ts | 2 + types/lodash/keyBy/index.d.ts | 2 - types/lodash/keys.d.ts | 2 + types/lodash/keys/index.d.ts | 2 - types/lodash/keysIn.d.ts | 2 + types/lodash/keysIn/index.d.ts | 2 - types/lodash/last.d.ts | 2 + types/lodash/last/index.d.ts | 2 - types/lodash/lastIndexOf.d.ts | 2 + types/lodash/lastIndexOf/index.d.ts | 2 - types/lodash/lodash-tests.ts | 2 +- types/lodash/lowerCase.d.ts | 2 + types/lodash/lowerCase/index.d.ts | 2 - types/lodash/lowerFirst.d.ts | 2 + types/lodash/lowerFirst/index.d.ts | 2 - types/lodash/lt.d.ts | 2 + types/lodash/lt/index.d.ts | 2 - types/lodash/lte.d.ts | 2 + types/lodash/lte/index.d.ts | 2 - types/lodash/map.d.ts | 2 + types/lodash/map/index.d.ts | 2 - types/lodash/mapKeys.d.ts | 2 + types/lodash/mapKeys/index.d.ts | 2 - types/lodash/mapValues.d.ts | 2 + types/lodash/mapValues/index.d.ts | 2 - types/lodash/matches.d.ts | 2 + types/lodash/matches/index.d.ts | 2 - types/lodash/matchesProperty.d.ts | 2 + types/lodash/matchesProperty/index.d.ts | 2 - types/lodash/max.d.ts | 2 + types/lodash/max/index.d.ts | 2 - types/lodash/maxBy.d.ts | 2 + types/lodash/maxBy/index.d.ts | 2 - types/lodash/mean.d.ts | 2 + types/lodash/mean/index.d.ts | 2 - types/lodash/meanBy.d.ts | 2 + types/lodash/meanBy/index.d.ts | 2 - types/lodash/memoize.d.ts | 2 + types/lodash/memoize/index.d.ts | 2 - types/lodash/merge.d.ts | 2 + types/lodash/merge/index.d.ts | 2 - types/lodash/mergeWith.d.ts | 2 + types/lodash/mergeWith/index.d.ts | 2 - types/lodash/method.d.ts | 2 + types/lodash/method/index.d.ts | 2 - types/lodash/methodOf.d.ts | 2 + types/lodash/methodOf/index.d.ts | 2 - types/lodash/min.d.ts | 2 + types/lodash/min/index.d.ts | 2 - types/lodash/minBy.d.ts | 2 + types/lodash/minBy/index.d.ts | 2 - types/lodash/mixin.d.ts | 2 + types/lodash/mixin/index.d.ts | 2 - types/lodash/negate.d.ts | 2 + types/lodash/negate/index.d.ts | 2 - types/lodash/noConflict.d.ts | 2 + types/lodash/noConflict/index.d.ts | 2 - types/lodash/noop.d.ts | 2 + types/lodash/noop/index.d.ts | 2 - types/lodash/now.d.ts | 2 + types/lodash/now/index.d.ts | 2 - types/lodash/nth/index.d.ts | 2 - types/lodash/nthArg.d.ts | 2 + types/lodash/nthArg/index.d.ts | 2 - types/lodash/omit.d.ts | 2 + types/lodash/omit/index.d.ts | 2 - types/lodash/omitBy.d.ts | 2 + types/lodash/omitBy/index.d.ts | 2 - types/lodash/once.d.ts | 2 + types/lodash/once/index.d.ts | 2 - types/lodash/orderBy.d.ts | 2 + types/lodash/orderBy/index.d.ts | 2 - types/lodash/over.d.ts | 2 + types/lodash/over/index.d.ts | 2 - types/lodash/overArgs.d.ts | 2 + types/lodash/overArgs/index.d.ts | 2 - types/lodash/overEvery.d.ts | 2 + types/lodash/overEvery/index.d.ts | 2 - types/lodash/overSome.d.ts | 2 + types/lodash/overSome/index.d.ts | 2 - types/lodash/pad.d.ts | 2 + types/lodash/pad/index.d.ts | 2 - types/lodash/padEnd.d.ts | 2 + types/lodash/padEnd/index.d.ts | 2 - types/lodash/padStart.d.ts | 2 + types/lodash/padStart/index.d.ts | 2 - types/lodash/parseInt.d.ts | 2 + types/lodash/parseInt/index.d.ts | 2 - types/lodash/partial.d.ts | 2 + types/lodash/partial/index.d.ts | 2 - types/lodash/partialRight.d.ts | 2 + types/lodash/partialRight/index.d.ts | 2 - types/lodash/partition.d.ts | 2 + types/lodash/partition/index.d.ts | 2 - types/lodash/pick.d.ts | 2 + types/lodash/pick/index.d.ts | 2 - types/lodash/pickBy.d.ts | 2 + types/lodash/pickBy/index.d.ts | 2 - types/lodash/property.d.ts | 2 + types/lodash/property/index.d.ts | 2 - types/lodash/propertyOf.d.ts | 2 + types/lodash/propertyOf/index.d.ts | 2 - types/lodash/pull.d.ts | 2 + types/lodash/pull/index.d.ts | 2 - types/lodash/pullAll.d.ts | 2 + types/lodash/pullAll/index.d.ts | 2 - types/lodash/pullAllBy.d.ts | 2 + types/lodash/pullAllBy/index.d.ts | 2 - types/lodash/pullAt.d.ts | 2 + types/lodash/pullAt/index.d.ts | 2 - types/lodash/random.d.ts | 2 + types/lodash/random/index.d.ts | 2 - types/lodash/range.d.ts | 2 + types/lodash/range/index.d.ts | 2 - types/lodash/rangeRight.d.ts | 2 + types/lodash/rangeRight/index.d.ts | 2 - types/lodash/rearg.d.ts | 2 + types/lodash/rearg/index.d.ts | 2 - types/lodash/reduce.d.ts | 2 + types/lodash/reduce/index.d.ts | 2 - types/lodash/reduceRight.d.ts | 2 + types/lodash/reduceRight/index.d.ts | 2 - types/lodash/reject.d.ts | 2 + types/lodash/reject/index.d.ts | 2 - types/lodash/remove.d.ts | 2 + types/lodash/remove/index.d.ts | 2 - types/lodash/repeat.d.ts | 2 + types/lodash/repeat/index.d.ts | 2 - types/lodash/replace.d.ts | 2 + types/lodash/replace/index.d.ts | 2 - types/lodash/rest.d.ts | 2 + types/lodash/rest/index.d.ts | 2 - types/lodash/result.d.ts | 2 + types/lodash/result/index.d.ts | 2 - types/lodash/reverse.d.ts | 2 + types/lodash/reverse/index.d.ts | 2 - types/lodash/round.d.ts | 2 + types/lodash/round/index.d.ts | 2 - types/lodash/runInContext.d.ts | 2 + types/lodash/runInContext/index.d.ts | 2 - types/lodash/sample.d.ts | 2 + types/lodash/sample/index.d.ts | 2 - types/lodash/sampleSize.d.ts | 2 + types/lodash/sampleSize/index.d.ts | 2 - types/lodash/scripts/generate-modules.ts | 118 ++-- types/lodash/set.d.ts | 2 + types/lodash/set/index.d.ts | 2 - types/lodash/setWith.d.ts | 2 + types/lodash/setWith/index.d.ts | 2 - types/lodash/shuffle.d.ts | 2 + types/lodash/shuffle/index.d.ts | 2 - types/lodash/size.d.ts | 2 + types/lodash/size/index.d.ts | 2 - types/lodash/slice.d.ts | 2 + types/lodash/slice/index.d.ts | 2 - types/lodash/snakeCase.d.ts | 2 + types/lodash/snakeCase/index.d.ts | 2 - types/lodash/some.d.ts | 2 + types/lodash/some/index.d.ts | 2 - types/lodash/sortBy.d.ts | 2 + types/lodash/sortBy/index.d.ts | 2 - types/lodash/sortedIndex.d.ts | 2 + types/lodash/sortedIndex/index.d.ts | 2 - types/lodash/sortedIndexBy.d.ts | 2 + types/lodash/sortedIndexBy/index.d.ts | 2 - types/lodash/sortedIndexOf.d.ts | 2 + types/lodash/sortedIndexOf/index.d.ts | 2 - types/lodash/sortedLastIndex.d.ts | 2 + types/lodash/sortedLastIndex/index.d.ts | 2 - types/lodash/sortedLastIndexBy.d.ts | 2 + types/lodash/sortedLastIndexBy/index.d.ts | 2 - types/lodash/sortedLastIndexOf.d.ts | 2 + types/lodash/sortedLastIndexOf/index.d.ts | 2 - types/lodash/sortedUniq.d.ts | 2 + types/lodash/sortedUniq/index.d.ts | 2 - types/lodash/sortedUniqBy.d.ts | 2 + types/lodash/sortedUniqBy/index.d.ts | 2 - types/lodash/split.d.ts | 2 + types/lodash/split/index.d.ts | 2 - types/lodash/spread.d.ts | 2 + types/lodash/spread/index.d.ts | 2 - types/lodash/startCase.d.ts | 2 + types/lodash/startCase/index.d.ts | 2 - types/lodash/startsWith.d.ts | 2 + types/lodash/startsWith/index.d.ts | 2 - types/lodash/subtract.d.ts | 2 + types/lodash/subtract/index.d.ts | 2 - types/lodash/sum.d.ts | 2 + types/lodash/sum/index.d.ts | 2 - types/lodash/sumBy.d.ts | 2 + types/lodash/sumBy/index.d.ts | 2 - types/lodash/tail.d.ts | 2 + types/lodash/tail/index.d.ts | 2 - types/lodash/take.d.ts | 2 + types/lodash/take/index.d.ts | 2 - types/lodash/takeRight.d.ts | 2 + types/lodash/takeRight/index.d.ts | 2 - types/lodash/takeRightWhile.d.ts | 2 + types/lodash/takeRightWhile/index.d.ts | 2 - types/lodash/takeWhile.d.ts | 2 + types/lodash/takeWhile/index.d.ts | 2 - types/lodash/tap.d.ts | 2 + types/lodash/tap/index.d.ts | 2 - types/lodash/template.d.ts | 2 + types/lodash/template/index.d.ts | 2 - types/lodash/throttle.d.ts | 2 + types/lodash/throttle/index.d.ts | 2 - types/lodash/thru.d.ts | 2 + types/lodash/thru/index.d.ts | 2 - types/lodash/times.d.ts | 2 + types/lodash/times/index.d.ts | 2 - types/lodash/toArray.d.ts | 2 + types/lodash/toArray/index.d.ts | 2 - types/lodash/toFinite/index.d.ts | 2 - types/lodash/toInteger.d.ts | 2 + types/lodash/toInteger/index.d.ts | 2 - types/lodash/toLength.d.ts | 2 + types/lodash/toLength/index.d.ts | 2 - types/lodash/toLower.d.ts | 2 + types/lodash/toLower/index.d.ts | 2 - types/lodash/toNumber.d.ts | 2 + types/lodash/toNumber/index.d.ts | 2 - types/lodash/toPairs.d.ts | 2 + types/lodash/toPairs/index.d.ts | 2 - types/lodash/toPairsIn.d.ts | 2 + types/lodash/toPairsIn/index.d.ts | 2 - types/lodash/toPath.d.ts | 2 + types/lodash/toPath/index.d.ts | 2 - types/lodash/toPlainObject.d.ts | 2 + types/lodash/toPlainObject/index.d.ts | 2 - types/lodash/toSafeInteger.d.ts | 2 + types/lodash/toSafeInteger/index.d.ts | 2 - types/lodash/toString.d.ts | 2 + types/lodash/toString/index.d.ts | 2 - types/lodash/toUpper.d.ts | 2 + types/lodash/toUpper/index.d.ts | 2 - types/lodash/transform.d.ts | 2 + types/lodash/transform/index.d.ts | 2 - types/lodash/trim.d.ts | 2 + types/lodash/trim/index.d.ts | 2 - types/lodash/trimEnd.d.ts | 2 + types/lodash/trimEnd/index.d.ts | 2 - types/lodash/trimStart.d.ts | 2 + types/lodash/trimStart/index.d.ts | 2 - types/lodash/truncate.d.ts | 2 + types/lodash/truncate/index.d.ts | 2 - types/lodash/tsconfig.json | 590 +++++++++---------- types/lodash/unary.d.ts | 2 + types/lodash/unary/index.d.ts | 2 - types/lodash/unescape.d.ts | 2 + types/lodash/unescape/index.d.ts | 2 - types/lodash/union.d.ts | 2 + types/lodash/union/index.d.ts | 2 - types/lodash/unionBy.d.ts | 2 + types/lodash/unionBy/index.d.ts | 2 - types/lodash/unionWith.d.ts | 2 + types/lodash/unionWith/index.d.ts | 2 - types/lodash/uniq.d.ts | 2 + types/lodash/uniq/index.d.ts | 2 - types/lodash/uniqBy.d.ts | 2 + types/lodash/uniqBy/index.d.ts | 2 - types/lodash/uniqWith.d.ts | 2 + types/lodash/uniqWith/index.d.ts | 2 - types/lodash/uniqueId.d.ts | 2 + types/lodash/uniqueId/index.d.ts | 2 - types/lodash/unset.d.ts | 2 + types/lodash/unset/index.d.ts | 2 - types/lodash/unzip.d.ts | 2 + types/lodash/unzip/index.d.ts | 2 - types/lodash/unzipWith.d.ts | 2 + types/lodash/unzipWith/index.d.ts | 2 - types/lodash/update.d.ts | 2 + types/lodash/update/index.d.ts | 2 - types/lodash/upperCase.d.ts | 2 + types/lodash/upperCase/index.d.ts | 2 - types/lodash/upperFirst.d.ts | 2 + types/lodash/upperFirst/index.d.ts | 2 - types/lodash/values.d.ts | 2 + types/lodash/values/index.d.ts | 2 - types/lodash/valuesIn.d.ts | 2 + types/lodash/valuesIn/index.d.ts | 2 - types/lodash/without.d.ts | 2 + types/lodash/without/index.d.ts | 2 - types/lodash/words.d.ts | 2 + types/lodash/words/index.d.ts | 2 - types/lodash/wrap.d.ts | 2 + types/lodash/wrap/index.d.ts | 2 - types/lodash/xor.d.ts | 2 + types/lodash/xor/index.d.ts | 2 - types/lodash/xorBy.d.ts | 2 + types/lodash/xorBy/index.d.ts | 2 - types/lodash/xorWith.d.ts | 2 + types/lodash/xorWith/index.d.ts | 2 - types/lodash/zip.d.ts | 2 + types/lodash/zip/index.d.ts | 2 - types/lodash/zipObject.d.ts | 2 + types/lodash/zipObject/index.d.ts | 2 - types/lodash/zipObjectDeep/index.d.ts | 2 - types/lodash/zipWith.d.ts | 2 + types/lodash/zipWith/index.d.ts | 2 - 1701 files changed, 4024 insertions(+), 3720 deletions(-) create mode 100644 types/lodash-es/add.d.ts delete mode 100644 types/lodash-es/add/index.d.ts create mode 100644 types/lodash-es/after.d.ts delete mode 100644 types/lodash-es/after/index.d.ts create mode 100644 types/lodash-es/ary.d.ts delete mode 100644 types/lodash-es/ary/index.d.ts create mode 100644 types/lodash-es/assign.d.ts delete mode 100644 types/lodash-es/assign/index.d.ts create mode 100644 types/lodash-es/assignIn.d.ts delete mode 100644 types/lodash-es/assignIn/index.d.ts create mode 100644 types/lodash-es/assignInWith.d.ts delete mode 100644 types/lodash-es/assignInWith/index.d.ts create mode 100644 types/lodash-es/assignWith.d.ts delete mode 100644 types/lodash-es/assignWith/index.d.ts create mode 100644 types/lodash-es/at.d.ts delete mode 100644 types/lodash-es/at/index.d.ts create mode 100644 types/lodash-es/attempt.d.ts delete mode 100644 types/lodash-es/attempt/index.d.ts create mode 100644 types/lodash-es/before.d.ts delete mode 100644 types/lodash-es/before/index.d.ts create mode 100644 types/lodash-es/bind.d.ts delete mode 100644 types/lodash-es/bind/index.d.ts create mode 100644 types/lodash-es/bindAll.d.ts delete mode 100644 types/lodash-es/bindAll/index.d.ts create mode 100644 types/lodash-es/bindKey.d.ts delete mode 100644 types/lodash-es/bindKey/index.d.ts create mode 100644 types/lodash-es/camelCase.d.ts delete mode 100644 types/lodash-es/camelCase/index.d.ts create mode 100644 types/lodash-es/capitalize.d.ts delete mode 100644 types/lodash-es/capitalize/index.d.ts create mode 100644 types/lodash-es/castArray.d.ts delete mode 100644 types/lodash-es/castArray/index.d.ts create mode 100644 types/lodash-es/ceil.d.ts delete mode 100644 types/lodash-es/ceil/index.d.ts create mode 100644 types/lodash-es/chain.d.ts delete mode 100644 types/lodash-es/chain/index.d.ts create mode 100644 types/lodash-es/chunk.d.ts delete mode 100644 types/lodash-es/chunk/index.d.ts create mode 100644 types/lodash-es/clamp.d.ts delete mode 100644 types/lodash-es/clamp/index.d.ts create mode 100644 types/lodash-es/clone.d.ts delete mode 100644 types/lodash-es/clone/index.d.ts create mode 100644 types/lodash-es/cloneDeep.d.ts delete mode 100644 types/lodash-es/cloneDeep/index.d.ts create mode 100644 types/lodash-es/cloneDeepWith.d.ts delete mode 100644 types/lodash-es/cloneDeepWith/index.d.ts create mode 100644 types/lodash-es/cloneWith.d.ts delete mode 100644 types/lodash-es/cloneWith/index.d.ts create mode 100644 types/lodash-es/compact.d.ts delete mode 100644 types/lodash-es/compact/index.d.ts create mode 100644 types/lodash-es/concat.d.ts delete mode 100644 types/lodash-es/concat/index.d.ts create mode 100644 types/lodash-es/constant.d.ts delete mode 100644 types/lodash-es/constant/index.d.ts create mode 100644 types/lodash-es/countBy.d.ts delete mode 100644 types/lodash-es/countBy/index.d.ts create mode 100644 types/lodash-es/create.d.ts delete mode 100644 types/lodash-es/create/index.d.ts create mode 100644 types/lodash-es/curry.d.ts delete mode 100644 types/lodash-es/curry/index.d.ts create mode 100644 types/lodash-es/curryRight.d.ts delete mode 100644 types/lodash-es/curryRight/index.d.ts create mode 100644 types/lodash-es/debounce.d.ts delete mode 100644 types/lodash-es/debounce/index.d.ts create mode 100644 types/lodash-es/deburr.d.ts delete mode 100644 types/lodash-es/deburr/index.d.ts create mode 100644 types/lodash-es/defaults.d.ts delete mode 100644 types/lodash-es/defaults/index.d.ts create mode 100644 types/lodash-es/defaultsDeep.d.ts delete mode 100644 types/lodash-es/defaultsDeep/index.d.ts create mode 100644 types/lodash-es/defer.d.ts delete mode 100644 types/lodash-es/defer/index.d.ts create mode 100644 types/lodash-es/delay.d.ts delete mode 100644 types/lodash-es/delay/index.d.ts create mode 100644 types/lodash-es/difference.d.ts delete mode 100644 types/lodash-es/difference/index.d.ts create mode 100644 types/lodash-es/differenceBy.d.ts delete mode 100644 types/lodash-es/differenceBy/index.d.ts create mode 100644 types/lodash-es/differenceWith.d.ts delete mode 100644 types/lodash-es/differenceWith/index.d.ts create mode 100644 types/lodash-es/drop.d.ts delete mode 100644 types/lodash-es/drop/index.d.ts create mode 100644 types/lodash-es/dropRight.d.ts delete mode 100644 types/lodash-es/dropRight/index.d.ts create mode 100644 types/lodash-es/dropRightWhile.d.ts delete mode 100644 types/lodash-es/dropRightWhile/index.d.ts create mode 100644 types/lodash-es/dropWhile.d.ts delete mode 100644 types/lodash-es/dropWhile/index.d.ts create mode 100644 types/lodash-es/each.d.ts delete mode 100644 types/lodash-es/each/index.d.ts create mode 100644 types/lodash-es/eachRight.d.ts delete mode 100644 types/lodash-es/eachRight/index.d.ts create mode 100644 types/lodash-es/endsWith.d.ts delete mode 100644 types/lodash-es/endsWith/index.d.ts create mode 100644 types/lodash-es/eq.d.ts delete mode 100644 types/lodash-es/eq/index.d.ts create mode 100644 types/lodash-es/escape.d.ts delete mode 100644 types/lodash-es/escape/index.d.ts create mode 100644 types/lodash-es/escapeRegExp.d.ts delete mode 100644 types/lodash-es/escapeRegExp/index.d.ts create mode 100644 types/lodash-es/every.d.ts delete mode 100644 types/lodash-es/every/index.d.ts create mode 100644 types/lodash-es/extend.d.ts delete mode 100644 types/lodash-es/extend/index.d.ts create mode 100644 types/lodash-es/extendWith.d.ts delete mode 100644 types/lodash-es/extendWith/index.d.ts delete mode 100644 types/lodash-es/fb/index.d.ts create mode 100644 types/lodash-es/fill.d.ts delete mode 100644 types/lodash-es/fill/index.d.ts create mode 100644 types/lodash-es/filter.d.ts delete mode 100644 types/lodash-es/filter/index.d.ts create mode 100644 types/lodash-es/find.d.ts delete mode 100644 types/lodash-es/find/index.d.ts create mode 100644 types/lodash-es/findIndex.d.ts delete mode 100644 types/lodash-es/findIndex/index.d.ts create mode 100644 types/lodash-es/findKey.d.ts delete mode 100644 types/lodash-es/findKey/index.d.ts create mode 100644 types/lodash-es/findLast.d.ts delete mode 100644 types/lodash-es/findLast/index.d.ts create mode 100644 types/lodash-es/findLastIndex.d.ts delete mode 100644 types/lodash-es/findLastIndex/index.d.ts create mode 100644 types/lodash-es/findLastKey.d.ts delete mode 100644 types/lodash-es/findLastKey/index.d.ts create mode 100644 types/lodash-es/first.d.ts delete mode 100644 types/lodash-es/first/index.d.ts create mode 100644 types/lodash-es/flatMap.d.ts delete mode 100644 types/lodash-es/flatMap/index.d.ts create mode 100644 types/lodash-es/flatten.d.ts delete mode 100644 types/lodash-es/flatten/index.d.ts create mode 100644 types/lodash-es/flattenDeep.d.ts delete mode 100644 types/lodash-es/flattenDeep/index.d.ts create mode 100644 types/lodash-es/flattenDepth.d.ts delete mode 100644 types/lodash-es/flattenDepth/index.d.ts create mode 100644 types/lodash-es/flip.d.ts delete mode 100644 types/lodash-es/flip/index.d.ts create mode 100644 types/lodash-es/floor.d.ts delete mode 100644 types/lodash-es/floor/index.d.ts create mode 100644 types/lodash-es/flow.d.ts delete mode 100644 types/lodash-es/flow/index.d.ts create mode 100644 types/lodash-es/flowRight.d.ts delete mode 100644 types/lodash-es/flowRight/index.d.ts create mode 100644 types/lodash-es/forEach.d.ts delete mode 100644 types/lodash-es/forEach/index.d.ts create mode 100644 types/lodash-es/forEachRight.d.ts delete mode 100644 types/lodash-es/forEachRight/index.d.ts create mode 100644 types/lodash-es/forIn.d.ts delete mode 100644 types/lodash-es/forIn/index.d.ts create mode 100644 types/lodash-es/forInRight.d.ts delete mode 100644 types/lodash-es/forInRight/index.d.ts create mode 100644 types/lodash-es/forOwn.d.ts delete mode 100644 types/lodash-es/forOwn/index.d.ts create mode 100644 types/lodash-es/forOwnRight.d.ts delete mode 100644 types/lodash-es/forOwnRight/index.d.ts create mode 100644 types/lodash-es/fromPairs.d.ts delete mode 100644 types/lodash-es/fromPairs/index.d.ts create mode 100644 types/lodash-es/functions.d.ts delete mode 100644 types/lodash-es/functions/index.d.ts create mode 100644 types/lodash-es/functionsIn.d.ts delete mode 100644 types/lodash-es/functionsIn/index.d.ts create mode 100644 types/lodash-es/get.d.ts delete mode 100644 types/lodash-es/get/index.d.ts create mode 100644 types/lodash-es/groupBy.d.ts delete mode 100644 types/lodash-es/groupBy/index.d.ts create mode 100644 types/lodash-es/gt.d.ts delete mode 100644 types/lodash-es/gt/index.d.ts create mode 100644 types/lodash-es/gte.d.ts delete mode 100644 types/lodash-es/gte/index.d.ts create mode 100644 types/lodash-es/has.d.ts delete mode 100644 types/lodash-es/has/index.d.ts create mode 100644 types/lodash-es/hasIn.d.ts delete mode 100644 types/lodash-es/hasIn/index.d.ts create mode 100644 types/lodash-es/head.d.ts delete mode 100644 types/lodash-es/head/index.d.ts create mode 100644 types/lodash-es/identity.d.ts delete mode 100644 types/lodash-es/identity/index.d.ts create mode 100644 types/lodash-es/inRange.d.ts delete mode 100644 types/lodash-es/inRange/index.d.ts create mode 100644 types/lodash-es/includes.d.ts delete mode 100644 types/lodash-es/includes/index.d.ts create mode 100644 types/lodash-es/indexOf.d.ts delete mode 100644 types/lodash-es/indexOf/index.d.ts create mode 100644 types/lodash-es/initial.d.ts delete mode 100644 types/lodash-es/initial/index.d.ts create mode 100644 types/lodash-es/intersection.d.ts delete mode 100644 types/lodash-es/intersection/index.d.ts create mode 100644 types/lodash-es/intersectionBy.d.ts delete mode 100644 types/lodash-es/intersectionBy/index.d.ts create mode 100644 types/lodash-es/intersectionWith.d.ts delete mode 100644 types/lodash-es/intersectionWith/index.d.ts create mode 100644 types/lodash-es/invert.d.ts delete mode 100644 types/lodash-es/invert/index.d.ts create mode 100644 types/lodash-es/invertBy.d.ts delete mode 100644 types/lodash-es/invertBy/index.d.ts create mode 100644 types/lodash-es/invoke.d.ts delete mode 100644 types/lodash-es/invoke/index.d.ts create mode 100644 types/lodash-es/invokeMap.d.ts delete mode 100644 types/lodash-es/invokeMap/index.d.ts create mode 100644 types/lodash-es/isArguments.d.ts delete mode 100644 types/lodash-es/isArguments/index.d.ts create mode 100644 types/lodash-es/isArray.d.ts delete mode 100644 types/lodash-es/isArray/index.d.ts create mode 100644 types/lodash-es/isArrayBuffer.d.ts delete mode 100644 types/lodash-es/isArrayBuffer/index.d.ts create mode 100644 types/lodash-es/isArrayLike.d.ts delete mode 100644 types/lodash-es/isArrayLike/index.d.ts create mode 100644 types/lodash-es/isArrayLikeObject.d.ts delete mode 100644 types/lodash-es/isArrayLikeObject/index.d.ts create mode 100644 types/lodash-es/isBoolean.d.ts delete mode 100644 types/lodash-es/isBoolean/index.d.ts create mode 100644 types/lodash-es/isBuffer.d.ts delete mode 100644 types/lodash-es/isBuffer/index.d.ts create mode 100644 types/lodash-es/isDate.d.ts delete mode 100644 types/lodash-es/isDate/index.d.ts create mode 100644 types/lodash-es/isElement.d.ts delete mode 100644 types/lodash-es/isElement/index.d.ts create mode 100644 types/lodash-es/isEmpty.d.ts delete mode 100644 types/lodash-es/isEmpty/index.d.ts create mode 100644 types/lodash-es/isEqual.d.ts delete mode 100644 types/lodash-es/isEqual/index.d.ts create mode 100644 types/lodash-es/isEqualWith.d.ts delete mode 100644 types/lodash-es/isEqualWith/index.d.ts create mode 100644 types/lodash-es/isError.d.ts delete mode 100644 types/lodash-es/isError/index.d.ts create mode 100644 types/lodash-es/isFinite.d.ts delete mode 100644 types/lodash-es/isFinite/index.d.ts create mode 100644 types/lodash-es/isFunction.d.ts delete mode 100644 types/lodash-es/isFunction/index.d.ts create mode 100644 types/lodash-es/isInteger.d.ts delete mode 100644 types/lodash-es/isInteger/index.d.ts create mode 100644 types/lodash-es/isLength.d.ts delete mode 100644 types/lodash-es/isLength/index.d.ts create mode 100644 types/lodash-es/isMap.d.ts delete mode 100644 types/lodash-es/isMap/index.d.ts create mode 100644 types/lodash-es/isMatch.d.ts delete mode 100644 types/lodash-es/isMatch/index.d.ts create mode 100644 types/lodash-es/isMatchWith.d.ts delete mode 100644 types/lodash-es/isMatchWith/index.d.ts create mode 100644 types/lodash-es/isNaN.d.ts delete mode 100644 types/lodash-es/isNaN/index.d.ts create mode 100644 types/lodash-es/isNative.d.ts delete mode 100644 types/lodash-es/isNative/index.d.ts create mode 100644 types/lodash-es/isNil.d.ts delete mode 100644 types/lodash-es/isNil/index.d.ts create mode 100644 types/lodash-es/isNull.d.ts delete mode 100644 types/lodash-es/isNull/index.d.ts create mode 100644 types/lodash-es/isNumber.d.ts delete mode 100644 types/lodash-es/isNumber/index.d.ts create mode 100644 types/lodash-es/isObject.d.ts delete mode 100644 types/lodash-es/isObject/index.d.ts create mode 100644 types/lodash-es/isObjectLike.d.ts delete mode 100644 types/lodash-es/isObjectLike/index.d.ts create mode 100644 types/lodash-es/isPlainObject.d.ts delete mode 100644 types/lodash-es/isPlainObject/index.d.ts create mode 100644 types/lodash-es/isRegExp.d.ts delete mode 100644 types/lodash-es/isRegExp/index.d.ts create mode 100644 types/lodash-es/isSafeInteger.d.ts delete mode 100644 types/lodash-es/isSafeInteger/index.d.ts create mode 100644 types/lodash-es/isSet.d.ts delete mode 100644 types/lodash-es/isSet/index.d.ts create mode 100644 types/lodash-es/isString.d.ts delete mode 100644 types/lodash-es/isString/index.d.ts create mode 100644 types/lodash-es/isSymbol.d.ts delete mode 100644 types/lodash-es/isSymbol/index.d.ts create mode 100644 types/lodash-es/isTypedArray.d.ts delete mode 100644 types/lodash-es/isTypedArray/index.d.ts create mode 100644 types/lodash-es/isUndefined.d.ts delete mode 100644 types/lodash-es/isUndefined/index.d.ts create mode 100644 types/lodash-es/isWeakMap.d.ts delete mode 100644 types/lodash-es/isWeakMap/index.d.ts create mode 100644 types/lodash-es/isWeakSet.d.ts delete mode 100644 types/lodash-es/isWeakSet/index.d.ts create mode 100644 types/lodash-es/iteratee.d.ts delete mode 100644 types/lodash-es/iteratee/index.d.ts create mode 100644 types/lodash-es/join.d.ts delete mode 100644 types/lodash-es/join/index.d.ts create mode 100644 types/lodash-es/kebabCase.d.ts delete mode 100644 types/lodash-es/kebabCase/index.d.ts create mode 100644 types/lodash-es/keyBy.d.ts delete mode 100644 types/lodash-es/keyBy/index.d.ts create mode 100644 types/lodash-es/keys.d.ts delete mode 100644 types/lodash-es/keys/index.d.ts create mode 100644 types/lodash-es/keysIn.d.ts delete mode 100644 types/lodash-es/keysIn/index.d.ts create mode 100644 types/lodash-es/last.d.ts delete mode 100644 types/lodash-es/last/index.d.ts create mode 100644 types/lodash-es/lastIndexOf.d.ts delete mode 100644 types/lodash-es/lastIndexOf/index.d.ts create mode 100644 types/lodash-es/lowerCase.d.ts delete mode 100644 types/lodash-es/lowerCase/index.d.ts create mode 100644 types/lodash-es/lowerFirst.d.ts delete mode 100644 types/lodash-es/lowerFirst/index.d.ts create mode 100644 types/lodash-es/lt.d.ts delete mode 100644 types/lodash-es/lt/index.d.ts create mode 100644 types/lodash-es/lte.d.ts delete mode 100644 types/lodash-es/lte/index.d.ts create mode 100644 types/lodash-es/map.d.ts delete mode 100644 types/lodash-es/map/index.d.ts create mode 100644 types/lodash-es/mapKeys.d.ts delete mode 100644 types/lodash-es/mapKeys/index.d.ts create mode 100644 types/lodash-es/mapValues.d.ts delete mode 100644 types/lodash-es/mapValues/index.d.ts create mode 100644 types/lodash-es/matches.d.ts delete mode 100644 types/lodash-es/matches/index.d.ts create mode 100644 types/lodash-es/matchesProperty.d.ts delete mode 100644 types/lodash-es/matchesProperty/index.d.ts create mode 100644 types/lodash-es/max.d.ts delete mode 100644 types/lodash-es/max/index.d.ts create mode 100644 types/lodash-es/maxBy.d.ts delete mode 100644 types/lodash-es/maxBy/index.d.ts create mode 100644 types/lodash-es/mean.d.ts delete mode 100644 types/lodash-es/mean/index.d.ts create mode 100644 types/lodash-es/meanBy.d.ts delete mode 100644 types/lodash-es/meanBy/index.d.ts create mode 100644 types/lodash-es/memoize.d.ts delete mode 100644 types/lodash-es/memoize/index.d.ts create mode 100644 types/lodash-es/merge.d.ts delete mode 100644 types/lodash-es/merge/index.d.ts create mode 100644 types/lodash-es/mergeWith.d.ts delete mode 100644 types/lodash-es/mergeWith/index.d.ts create mode 100644 types/lodash-es/method.d.ts delete mode 100644 types/lodash-es/method/index.d.ts create mode 100644 types/lodash-es/methodOf.d.ts delete mode 100644 types/lodash-es/methodOf/index.d.ts create mode 100644 types/lodash-es/min.d.ts delete mode 100644 types/lodash-es/min/index.d.ts create mode 100644 types/lodash-es/minBy.d.ts delete mode 100644 types/lodash-es/minBy/index.d.ts create mode 100644 types/lodash-es/mixin.d.ts delete mode 100644 types/lodash-es/mixin/index.d.ts create mode 100644 types/lodash-es/negate.d.ts delete mode 100644 types/lodash-es/negate/index.d.ts create mode 100644 types/lodash-es/noConflict.d.ts delete mode 100644 types/lodash-es/noConflict/index.d.ts create mode 100644 types/lodash-es/noop.d.ts delete mode 100644 types/lodash-es/noop/index.d.ts create mode 100644 types/lodash-es/now.d.ts delete mode 100644 types/lodash-es/now/index.d.ts create mode 100644 types/lodash-es/nthArg.d.ts delete mode 100644 types/lodash-es/nthArg/index.d.ts create mode 100644 types/lodash-es/omit.d.ts delete mode 100644 types/lodash-es/omit/index.d.ts create mode 100644 types/lodash-es/omitBy.d.ts delete mode 100644 types/lodash-es/omitBy/index.d.ts create mode 100644 types/lodash-es/once.d.ts delete mode 100644 types/lodash-es/once/index.d.ts create mode 100644 types/lodash-es/orderBy.d.ts delete mode 100644 types/lodash-es/orderBy/index.d.ts create mode 100644 types/lodash-es/over.d.ts delete mode 100644 types/lodash-es/over/index.d.ts create mode 100644 types/lodash-es/overArgs.d.ts delete mode 100644 types/lodash-es/overArgs/index.d.ts create mode 100644 types/lodash-es/overEvery.d.ts delete mode 100644 types/lodash-es/overEvery/index.d.ts create mode 100644 types/lodash-es/overSome.d.ts delete mode 100644 types/lodash-es/overSome/index.d.ts create mode 100644 types/lodash-es/pad.d.ts delete mode 100644 types/lodash-es/pad/index.d.ts create mode 100644 types/lodash-es/padEnd.d.ts delete mode 100644 types/lodash-es/padEnd/index.d.ts create mode 100644 types/lodash-es/padStart.d.ts delete mode 100644 types/lodash-es/padStart/index.d.ts create mode 100644 types/lodash-es/parseInt.d.ts delete mode 100644 types/lodash-es/parseInt/index.d.ts create mode 100644 types/lodash-es/partial.d.ts delete mode 100644 types/lodash-es/partial/index.d.ts create mode 100644 types/lodash-es/partialRight.d.ts delete mode 100644 types/lodash-es/partialRight/index.d.ts create mode 100644 types/lodash-es/partition.d.ts delete mode 100644 types/lodash-es/partition/index.d.ts create mode 100644 types/lodash-es/pick.d.ts delete mode 100644 types/lodash-es/pick/index.d.ts create mode 100644 types/lodash-es/pickBy.d.ts delete mode 100644 types/lodash-es/pickBy/index.d.ts create mode 100644 types/lodash-es/property.d.ts delete mode 100644 types/lodash-es/property/index.d.ts create mode 100644 types/lodash-es/propertyOf.d.ts delete mode 100644 types/lodash-es/propertyOf/index.d.ts create mode 100644 types/lodash-es/pull.d.ts delete mode 100644 types/lodash-es/pull/index.d.ts create mode 100644 types/lodash-es/pullAll.d.ts delete mode 100644 types/lodash-es/pullAll/index.d.ts create mode 100644 types/lodash-es/pullAllBy.d.ts delete mode 100644 types/lodash-es/pullAllBy/index.d.ts create mode 100644 types/lodash-es/pullAt.d.ts delete mode 100644 types/lodash-es/pullAt/index.d.ts create mode 100644 types/lodash-es/random.d.ts delete mode 100644 types/lodash-es/random/index.d.ts create mode 100644 types/lodash-es/range.d.ts delete mode 100644 types/lodash-es/range/index.d.ts create mode 100644 types/lodash-es/rangeRight.d.ts delete mode 100644 types/lodash-es/rangeRight/index.d.ts create mode 100644 types/lodash-es/rearg.d.ts delete mode 100644 types/lodash-es/rearg/index.d.ts create mode 100644 types/lodash-es/reduce.d.ts delete mode 100644 types/lodash-es/reduce/index.d.ts create mode 100644 types/lodash-es/reduceRight.d.ts delete mode 100644 types/lodash-es/reduceRight/index.d.ts create mode 100644 types/lodash-es/reject.d.ts delete mode 100644 types/lodash-es/reject/index.d.ts create mode 100644 types/lodash-es/remove.d.ts delete mode 100644 types/lodash-es/remove/index.d.ts create mode 100644 types/lodash-es/repeat.d.ts delete mode 100644 types/lodash-es/repeat/index.d.ts create mode 100644 types/lodash-es/replace.d.ts delete mode 100644 types/lodash-es/replace/index.d.ts create mode 100644 types/lodash-es/rest.d.ts delete mode 100644 types/lodash-es/rest/index.d.ts create mode 100644 types/lodash-es/result.d.ts delete mode 100644 types/lodash-es/result/index.d.ts create mode 100644 types/lodash-es/reverse.d.ts delete mode 100644 types/lodash-es/reverse/index.d.ts create mode 100644 types/lodash-es/round.d.ts delete mode 100644 types/lodash-es/round/index.d.ts create mode 100644 types/lodash-es/runInContext.d.ts delete mode 100644 types/lodash-es/runInContext/index.d.ts create mode 100644 types/lodash-es/sample.d.ts delete mode 100644 types/lodash-es/sample/index.d.ts create mode 100644 types/lodash-es/sampleSize.d.ts delete mode 100644 types/lodash-es/sampleSize/index.d.ts create mode 100644 types/lodash-es/set.d.ts delete mode 100644 types/lodash-es/set/index.d.ts create mode 100644 types/lodash-es/setWith.d.ts delete mode 100644 types/lodash-es/setWith/index.d.ts create mode 100644 types/lodash-es/shuffle.d.ts delete mode 100644 types/lodash-es/shuffle/index.d.ts create mode 100644 types/lodash-es/size.d.ts delete mode 100644 types/lodash-es/size/index.d.ts create mode 100644 types/lodash-es/slice.d.ts delete mode 100644 types/lodash-es/slice/index.d.ts create mode 100644 types/lodash-es/snakeCase.d.ts delete mode 100644 types/lodash-es/snakeCase/index.d.ts create mode 100644 types/lodash-es/some.d.ts delete mode 100644 types/lodash-es/some/index.d.ts create mode 100644 types/lodash-es/sortBy.d.ts delete mode 100644 types/lodash-es/sortBy/index.d.ts create mode 100644 types/lodash-es/sortedIndex.d.ts delete mode 100644 types/lodash-es/sortedIndex/index.d.ts create mode 100644 types/lodash-es/sortedIndexBy.d.ts delete mode 100644 types/lodash-es/sortedIndexBy/index.d.ts create mode 100644 types/lodash-es/sortedIndexOf.d.ts delete mode 100644 types/lodash-es/sortedIndexOf/index.d.ts create mode 100644 types/lodash-es/sortedLastIndex.d.ts delete mode 100644 types/lodash-es/sortedLastIndex/index.d.ts create mode 100644 types/lodash-es/sortedLastIndexBy.d.ts delete mode 100644 types/lodash-es/sortedLastIndexBy/index.d.ts create mode 100644 types/lodash-es/sortedLastIndexOf.d.ts delete mode 100644 types/lodash-es/sortedLastIndexOf/index.d.ts create mode 100644 types/lodash-es/sortedUniq.d.ts delete mode 100644 types/lodash-es/sortedUniq/index.d.ts create mode 100644 types/lodash-es/sortedUniqBy.d.ts delete mode 100644 types/lodash-es/sortedUniqBy/index.d.ts create mode 100644 types/lodash-es/split.d.ts delete mode 100644 types/lodash-es/split/index.d.ts create mode 100644 types/lodash-es/spread.d.ts delete mode 100644 types/lodash-es/spread/index.d.ts create mode 100644 types/lodash-es/startCase.d.ts delete mode 100644 types/lodash-es/startCase/index.d.ts create mode 100644 types/lodash-es/startsWith.d.ts delete mode 100644 types/lodash-es/startsWith/index.d.ts create mode 100644 types/lodash-es/subtract.d.ts delete mode 100644 types/lodash-es/subtract/index.d.ts create mode 100644 types/lodash-es/sum.d.ts delete mode 100644 types/lodash-es/sum/index.d.ts create mode 100644 types/lodash-es/sumBy.d.ts delete mode 100644 types/lodash-es/sumBy/index.d.ts create mode 100644 types/lodash-es/tail.d.ts delete mode 100644 types/lodash-es/tail/index.d.ts create mode 100644 types/lodash-es/take.d.ts delete mode 100644 types/lodash-es/take/index.d.ts create mode 100644 types/lodash-es/takeRight.d.ts delete mode 100644 types/lodash-es/takeRight/index.d.ts create mode 100644 types/lodash-es/takeRightWhile.d.ts delete mode 100644 types/lodash-es/takeRightWhile/index.d.ts create mode 100644 types/lodash-es/takeWhile.d.ts delete mode 100644 types/lodash-es/takeWhile/index.d.ts create mode 100644 types/lodash-es/tap.d.ts delete mode 100644 types/lodash-es/tap/index.d.ts create mode 100644 types/lodash-es/template.d.ts delete mode 100644 types/lodash-es/template/index.d.ts create mode 100644 types/lodash-es/throttle.d.ts delete mode 100644 types/lodash-es/throttle/index.d.ts create mode 100644 types/lodash-es/thru.d.ts delete mode 100644 types/lodash-es/thru/index.d.ts create mode 100644 types/lodash-es/times.d.ts delete mode 100644 types/lodash-es/times/index.d.ts create mode 100644 types/lodash-es/toArray.d.ts delete mode 100644 types/lodash-es/toArray/index.d.ts create mode 100644 types/lodash-es/toInteger.d.ts delete mode 100644 types/lodash-es/toInteger/index.d.ts create mode 100644 types/lodash-es/toLength.d.ts delete mode 100644 types/lodash-es/toLength/index.d.ts create mode 100644 types/lodash-es/toLower.d.ts delete mode 100644 types/lodash-es/toLower/index.d.ts create mode 100644 types/lodash-es/toNumber.d.ts delete mode 100644 types/lodash-es/toNumber/index.d.ts create mode 100644 types/lodash-es/toPairs.d.ts delete mode 100644 types/lodash-es/toPairs/index.d.ts create mode 100644 types/lodash-es/toPairsIn.d.ts delete mode 100644 types/lodash-es/toPairsIn/index.d.ts create mode 100644 types/lodash-es/toPath.d.ts delete mode 100644 types/lodash-es/toPath/index.d.ts create mode 100644 types/lodash-es/toPlainObject.d.ts delete mode 100644 types/lodash-es/toPlainObject/index.d.ts create mode 100644 types/lodash-es/toSafeInteger.d.ts delete mode 100644 types/lodash-es/toSafeInteger/index.d.ts create mode 100644 types/lodash-es/toString.d.ts delete mode 100644 types/lodash-es/toString/index.d.ts create mode 100644 types/lodash-es/toUpper.d.ts delete mode 100644 types/lodash-es/toUpper/index.d.ts create mode 100644 types/lodash-es/transform.d.ts delete mode 100644 types/lodash-es/transform/index.d.ts create mode 100644 types/lodash-es/trim.d.ts delete mode 100644 types/lodash-es/trim/index.d.ts create mode 100644 types/lodash-es/trimEnd.d.ts delete mode 100644 types/lodash-es/trimEnd/index.d.ts create mode 100644 types/lodash-es/trimStart.d.ts delete mode 100644 types/lodash-es/trimStart/index.d.ts create mode 100644 types/lodash-es/truncate.d.ts delete mode 100644 types/lodash-es/truncate/index.d.ts create mode 100644 types/lodash-es/unary.d.ts delete mode 100644 types/lodash-es/unary/index.d.ts create mode 100644 types/lodash-es/unescape.d.ts delete mode 100644 types/lodash-es/unescape/index.d.ts create mode 100644 types/lodash-es/union.d.ts delete mode 100644 types/lodash-es/union/index.d.ts create mode 100644 types/lodash-es/unionBy.d.ts delete mode 100644 types/lodash-es/unionBy/index.d.ts create mode 100644 types/lodash-es/unionWith.d.ts delete mode 100644 types/lodash-es/unionWith/index.d.ts create mode 100644 types/lodash-es/uniq.d.ts delete mode 100644 types/lodash-es/uniq/index.d.ts create mode 100644 types/lodash-es/uniqBy.d.ts delete mode 100644 types/lodash-es/uniqBy/index.d.ts create mode 100644 types/lodash-es/uniqWith.d.ts delete mode 100644 types/lodash-es/uniqWith/index.d.ts create mode 100644 types/lodash-es/uniqueId.d.ts delete mode 100644 types/lodash-es/uniqueId/index.d.ts create mode 100644 types/lodash-es/unset.d.ts delete mode 100644 types/lodash-es/unset/index.d.ts create mode 100644 types/lodash-es/unzip.d.ts delete mode 100644 types/lodash-es/unzip/index.d.ts create mode 100644 types/lodash-es/unzipWith.d.ts delete mode 100644 types/lodash-es/unzipWith/index.d.ts create mode 100644 types/lodash-es/update.d.ts delete mode 100644 types/lodash-es/update/index.d.ts create mode 100644 types/lodash-es/upperCase.d.ts delete mode 100644 types/lodash-es/upperCase/index.d.ts create mode 100644 types/lodash-es/upperFirst.d.ts delete mode 100644 types/lodash-es/upperFirst/index.d.ts create mode 100644 types/lodash-es/values.d.ts delete mode 100644 types/lodash-es/values/index.d.ts create mode 100644 types/lodash-es/valuesIn.d.ts delete mode 100644 types/lodash-es/valuesIn/index.d.ts create mode 100644 types/lodash-es/without.d.ts delete mode 100644 types/lodash-es/without/index.d.ts create mode 100644 types/lodash-es/words.d.ts delete mode 100644 types/lodash-es/words/index.d.ts create mode 100644 types/lodash-es/wrap.d.ts delete mode 100644 types/lodash-es/wrap/index.d.ts create mode 100644 types/lodash-es/xor.d.ts delete mode 100644 types/lodash-es/xor/index.d.ts create mode 100644 types/lodash-es/xorBy.d.ts delete mode 100644 types/lodash-es/xorBy/index.d.ts create mode 100644 types/lodash-es/xorWith.d.ts delete mode 100644 types/lodash-es/xorWith/index.d.ts create mode 100644 types/lodash-es/zip.d.ts delete mode 100644 types/lodash-es/zip/index.d.ts create mode 100644 types/lodash-es/zipObject.d.ts delete mode 100644 types/lodash-es/zipObject/index.d.ts create mode 100644 types/lodash-es/zipWith.d.ts delete mode 100644 types/lodash-es/zipWith/index.d.ts create mode 100644 types/lodash/add.d.ts delete mode 100644 types/lodash/add/index.d.ts create mode 100644 types/lodash/after.d.ts delete mode 100644 types/lodash/after/index.d.ts create mode 100644 types/lodash/ary.d.ts delete mode 100644 types/lodash/ary/index.d.ts create mode 100644 types/lodash/assign.d.ts delete mode 100644 types/lodash/assign/index.d.ts create mode 100644 types/lodash/assignIn.d.ts delete mode 100644 types/lodash/assignIn/index.d.ts create mode 100644 types/lodash/assignInWith.d.ts delete mode 100644 types/lodash/assignInWith/index.d.ts create mode 100644 types/lodash/assignWith.d.ts delete mode 100644 types/lodash/assignWith/index.d.ts create mode 100644 types/lodash/at.d.ts delete mode 100644 types/lodash/at/index.d.ts create mode 100644 types/lodash/attempt.d.ts delete mode 100644 types/lodash/attempt/index.d.ts create mode 100644 types/lodash/before.d.ts delete mode 100644 types/lodash/before/index.d.ts create mode 100644 types/lodash/bind.d.ts delete mode 100644 types/lodash/bind/index.d.ts create mode 100644 types/lodash/bindAll.d.ts delete mode 100644 types/lodash/bindAll/index.d.ts create mode 100644 types/lodash/bindKey.d.ts delete mode 100644 types/lodash/bindKey/index.d.ts create mode 100644 types/lodash/camelCase.d.ts delete mode 100644 types/lodash/camelCase/index.d.ts create mode 100644 types/lodash/capitalize.d.ts delete mode 100644 types/lodash/capitalize/index.d.ts create mode 100644 types/lodash/castArray.d.ts delete mode 100644 types/lodash/castArray/index.d.ts create mode 100644 types/lodash/ceil.d.ts delete mode 100644 types/lodash/ceil/index.d.ts create mode 100644 types/lodash/chain.d.ts delete mode 100644 types/lodash/chain/index.d.ts create mode 100644 types/lodash/chunk.d.ts delete mode 100644 types/lodash/chunk/index.d.ts create mode 100644 types/lodash/clamp.d.ts delete mode 100644 types/lodash/clamp/index.d.ts create mode 100644 types/lodash/clone.d.ts delete mode 100644 types/lodash/clone/index.d.ts create mode 100644 types/lodash/cloneDeep.d.ts delete mode 100644 types/lodash/cloneDeep/index.d.ts create mode 100644 types/lodash/cloneDeepWith.d.ts delete mode 100644 types/lodash/cloneDeepWith/index.d.ts create mode 100644 types/lodash/cloneWith.d.ts delete mode 100644 types/lodash/cloneWith/index.d.ts create mode 100644 types/lodash/compact.d.ts delete mode 100644 types/lodash/compact/index.d.ts create mode 100644 types/lodash/concat.d.ts delete mode 100644 types/lodash/concat/index.d.ts create mode 100644 types/lodash/constant.d.ts delete mode 100644 types/lodash/constant/index.d.ts create mode 100644 types/lodash/countBy.d.ts delete mode 100644 types/lodash/countBy/index.d.ts create mode 100644 types/lodash/create.d.ts delete mode 100644 types/lodash/create/index.d.ts create mode 100644 types/lodash/curry.d.ts delete mode 100644 types/lodash/curry/index.d.ts create mode 100644 types/lodash/curryRight.d.ts delete mode 100644 types/lodash/curryRight/index.d.ts create mode 100644 types/lodash/debounce.d.ts delete mode 100644 types/lodash/debounce/index.d.ts create mode 100644 types/lodash/deburr.d.ts delete mode 100644 types/lodash/deburr/index.d.ts create mode 100644 types/lodash/defaults.d.ts delete mode 100644 types/lodash/defaults/index.d.ts create mode 100644 types/lodash/defaultsDeep.d.ts delete mode 100644 types/lodash/defaultsDeep/index.d.ts create mode 100644 types/lodash/defer.d.ts delete mode 100644 types/lodash/defer/index.d.ts create mode 100644 types/lodash/delay.d.ts delete mode 100644 types/lodash/delay/index.d.ts create mode 100644 types/lodash/difference.d.ts delete mode 100644 types/lodash/difference/index.d.ts create mode 100644 types/lodash/differenceBy.d.ts delete mode 100644 types/lodash/differenceBy/index.d.ts create mode 100644 types/lodash/differenceWith.d.ts delete mode 100644 types/lodash/differenceWith/index.d.ts delete mode 100644 types/lodash/divide/index.d.ts create mode 100644 types/lodash/drop.d.ts delete mode 100644 types/lodash/drop/index.d.ts create mode 100644 types/lodash/dropRight.d.ts delete mode 100644 types/lodash/dropRight/index.d.ts create mode 100644 types/lodash/dropRightWhile.d.ts delete mode 100644 types/lodash/dropRightWhile/index.d.ts create mode 100644 types/lodash/dropWhile.d.ts delete mode 100644 types/lodash/dropWhile/index.d.ts create mode 100644 types/lodash/each.d.ts delete mode 100644 types/lodash/each/index.d.ts create mode 100644 types/lodash/eachRight.d.ts delete mode 100644 types/lodash/eachRight/index.d.ts create mode 100644 types/lodash/endsWith.d.ts delete mode 100644 types/lodash/endsWith/index.d.ts create mode 100644 types/lodash/eq.d.ts delete mode 100644 types/lodash/eq/index.d.ts create mode 100644 types/lodash/escape.d.ts delete mode 100644 types/lodash/escape/index.d.ts create mode 100644 types/lodash/escapeRegExp.d.ts delete mode 100644 types/lodash/escapeRegExp/index.d.ts create mode 100644 types/lodash/every.d.ts delete mode 100644 types/lodash/every/index.d.ts create mode 100644 types/lodash/extend.d.ts delete mode 100644 types/lodash/extend/index.d.ts create mode 100644 types/lodash/extendWith.d.ts delete mode 100644 types/lodash/extendWith/index.d.ts delete mode 100644 types/lodash/fb/index.d.ts create mode 100644 types/lodash/fill.d.ts delete mode 100644 types/lodash/fill/index.d.ts create mode 100644 types/lodash/filter.d.ts delete mode 100644 types/lodash/filter/index.d.ts create mode 100644 types/lodash/find.d.ts delete mode 100644 types/lodash/find/index.d.ts create mode 100644 types/lodash/findIndex.d.ts delete mode 100644 types/lodash/findIndex/index.d.ts create mode 100644 types/lodash/findKey.d.ts delete mode 100644 types/lodash/findKey/index.d.ts create mode 100644 types/lodash/findLast.d.ts delete mode 100644 types/lodash/findLast/index.d.ts create mode 100644 types/lodash/findLastIndex.d.ts delete mode 100644 types/lodash/findLastIndex/index.d.ts create mode 100644 types/lodash/findLastKey.d.ts delete mode 100644 types/lodash/findLastKey/index.d.ts create mode 100644 types/lodash/first.d.ts delete mode 100644 types/lodash/first/index.d.ts create mode 100644 types/lodash/flatMap.d.ts delete mode 100644 types/lodash/flatMap/index.d.ts create mode 100644 types/lodash/flatten.d.ts delete mode 100644 types/lodash/flatten/index.d.ts create mode 100644 types/lodash/flattenDeep.d.ts delete mode 100644 types/lodash/flattenDeep/index.d.ts create mode 100644 types/lodash/flattenDepth.d.ts delete mode 100644 types/lodash/flattenDepth/index.d.ts create mode 100644 types/lodash/flip.d.ts delete mode 100644 types/lodash/flip/index.d.ts create mode 100644 types/lodash/floor.d.ts delete mode 100644 types/lodash/floor/index.d.ts create mode 100644 types/lodash/flow.d.ts delete mode 100644 types/lodash/flow/index.d.ts create mode 100644 types/lodash/flowRight.d.ts delete mode 100644 types/lodash/flowRight/index.d.ts create mode 100644 types/lodash/forEach.d.ts delete mode 100644 types/lodash/forEach/index.d.ts create mode 100644 types/lodash/forEachRight.d.ts delete mode 100644 types/lodash/forEachRight/index.d.ts create mode 100644 types/lodash/forIn.d.ts delete mode 100644 types/lodash/forIn/index.d.ts create mode 100644 types/lodash/forInRight.d.ts delete mode 100644 types/lodash/forInRight/index.d.ts create mode 100644 types/lodash/forOwn.d.ts delete mode 100644 types/lodash/forOwn/index.d.ts create mode 100644 types/lodash/forOwnRight.d.ts delete mode 100644 types/lodash/forOwnRight/index.d.ts create mode 100644 types/lodash/fromPairs.d.ts delete mode 100644 types/lodash/fromPairs/index.d.ts create mode 100644 types/lodash/functions.d.ts delete mode 100644 types/lodash/functions/index.d.ts create mode 100644 types/lodash/functionsIn.d.ts delete mode 100644 types/lodash/functionsIn/index.d.ts create mode 100644 types/lodash/get.d.ts delete mode 100644 types/lodash/get/index.d.ts create mode 100644 types/lodash/groupBy.d.ts delete mode 100644 types/lodash/groupBy/index.d.ts create mode 100644 types/lodash/gt.d.ts delete mode 100644 types/lodash/gt/index.d.ts create mode 100644 types/lodash/gte.d.ts delete mode 100644 types/lodash/gte/index.d.ts create mode 100644 types/lodash/has.d.ts delete mode 100644 types/lodash/has/index.d.ts create mode 100644 types/lodash/hasIn.d.ts delete mode 100644 types/lodash/hasIn/index.d.ts create mode 100644 types/lodash/head.d.ts delete mode 100644 types/lodash/head/index.d.ts create mode 100644 types/lodash/identity.d.ts delete mode 100644 types/lodash/identity/index.d.ts create mode 100644 types/lodash/inRange.d.ts delete mode 100644 types/lodash/inRange/index.d.ts create mode 100644 types/lodash/includes.d.ts delete mode 100644 types/lodash/includes/index.d.ts create mode 100644 types/lodash/indexOf.d.ts delete mode 100644 types/lodash/indexOf/index.d.ts create mode 100644 types/lodash/initial.d.ts delete mode 100644 types/lodash/initial/index.d.ts create mode 100644 types/lodash/intersection.d.ts delete mode 100644 types/lodash/intersection/index.d.ts create mode 100644 types/lodash/intersectionBy.d.ts delete mode 100644 types/lodash/intersectionBy/index.d.ts create mode 100644 types/lodash/intersectionWith.d.ts delete mode 100644 types/lodash/intersectionWith/index.d.ts create mode 100644 types/lodash/invert.d.ts delete mode 100644 types/lodash/invert/index.d.ts create mode 100644 types/lodash/invertBy.d.ts delete mode 100644 types/lodash/invertBy/index.d.ts create mode 100644 types/lodash/invoke.d.ts delete mode 100644 types/lodash/invoke/index.d.ts create mode 100644 types/lodash/invokeMap.d.ts delete mode 100644 types/lodash/invokeMap/index.d.ts create mode 100644 types/lodash/isArguments.d.ts delete mode 100644 types/lodash/isArguments/index.d.ts create mode 100644 types/lodash/isArray.d.ts delete mode 100644 types/lodash/isArray/index.d.ts create mode 100644 types/lodash/isArrayBuffer.d.ts delete mode 100644 types/lodash/isArrayBuffer/index.d.ts create mode 100644 types/lodash/isArrayLike.d.ts delete mode 100644 types/lodash/isArrayLike/index.d.ts create mode 100644 types/lodash/isArrayLikeObject.d.ts delete mode 100644 types/lodash/isArrayLikeObject/index.d.ts create mode 100644 types/lodash/isBoolean.d.ts delete mode 100644 types/lodash/isBoolean/index.d.ts create mode 100644 types/lodash/isBuffer.d.ts delete mode 100644 types/lodash/isBuffer/index.d.ts create mode 100644 types/lodash/isDate.d.ts delete mode 100644 types/lodash/isDate/index.d.ts create mode 100644 types/lodash/isElement.d.ts delete mode 100644 types/lodash/isElement/index.d.ts create mode 100644 types/lodash/isEmpty.d.ts delete mode 100644 types/lodash/isEmpty/index.d.ts create mode 100644 types/lodash/isEqual.d.ts delete mode 100644 types/lodash/isEqual/index.d.ts create mode 100644 types/lodash/isEqualWith.d.ts delete mode 100644 types/lodash/isEqualWith/index.d.ts create mode 100644 types/lodash/isError.d.ts delete mode 100644 types/lodash/isError/index.d.ts create mode 100644 types/lodash/isFinite.d.ts delete mode 100644 types/lodash/isFinite/index.d.ts create mode 100644 types/lodash/isFunction.d.ts delete mode 100644 types/lodash/isFunction/index.d.ts create mode 100644 types/lodash/isInteger.d.ts delete mode 100644 types/lodash/isInteger/index.d.ts create mode 100644 types/lodash/isLength.d.ts delete mode 100644 types/lodash/isLength/index.d.ts create mode 100644 types/lodash/isMap.d.ts delete mode 100644 types/lodash/isMap/index.d.ts create mode 100644 types/lodash/isMatch.d.ts delete mode 100644 types/lodash/isMatch/index.d.ts create mode 100644 types/lodash/isMatchWith.d.ts delete mode 100644 types/lodash/isMatchWith/index.d.ts create mode 100644 types/lodash/isNaN.d.ts delete mode 100644 types/lodash/isNaN/index.d.ts create mode 100644 types/lodash/isNative.d.ts delete mode 100644 types/lodash/isNative/index.d.ts create mode 100644 types/lodash/isNil.d.ts delete mode 100644 types/lodash/isNil/index.d.ts create mode 100644 types/lodash/isNull.d.ts delete mode 100644 types/lodash/isNull/index.d.ts create mode 100644 types/lodash/isNumber.d.ts delete mode 100644 types/lodash/isNumber/index.d.ts create mode 100644 types/lodash/isObject.d.ts delete mode 100644 types/lodash/isObject/index.d.ts create mode 100644 types/lodash/isObjectLike.d.ts delete mode 100644 types/lodash/isObjectLike/index.d.ts create mode 100644 types/lodash/isPlainObject.d.ts delete mode 100644 types/lodash/isPlainObject/index.d.ts create mode 100644 types/lodash/isRegExp.d.ts delete mode 100644 types/lodash/isRegExp/index.d.ts create mode 100644 types/lodash/isSafeInteger.d.ts delete mode 100644 types/lodash/isSafeInteger/index.d.ts create mode 100644 types/lodash/isSet.d.ts delete mode 100644 types/lodash/isSet/index.d.ts create mode 100644 types/lodash/isString.d.ts delete mode 100644 types/lodash/isString/index.d.ts create mode 100644 types/lodash/isSymbol.d.ts delete mode 100644 types/lodash/isSymbol/index.d.ts create mode 100644 types/lodash/isTypedArray.d.ts delete mode 100644 types/lodash/isTypedArray/index.d.ts create mode 100644 types/lodash/isUndefined.d.ts delete mode 100644 types/lodash/isUndefined/index.d.ts create mode 100644 types/lodash/isWeakMap.d.ts delete mode 100644 types/lodash/isWeakMap/index.d.ts create mode 100644 types/lodash/isWeakSet.d.ts delete mode 100644 types/lodash/isWeakSet/index.d.ts create mode 100644 types/lodash/iteratee.d.ts delete mode 100644 types/lodash/iteratee/index.d.ts create mode 100644 types/lodash/join.d.ts delete mode 100644 types/lodash/join/index.d.ts create mode 100644 types/lodash/kebabCase.d.ts delete mode 100644 types/lodash/kebabCase/index.d.ts create mode 100644 types/lodash/keyBy.d.ts delete mode 100644 types/lodash/keyBy/index.d.ts create mode 100644 types/lodash/keys.d.ts delete mode 100644 types/lodash/keys/index.d.ts create mode 100644 types/lodash/keysIn.d.ts delete mode 100644 types/lodash/keysIn/index.d.ts create mode 100644 types/lodash/last.d.ts delete mode 100644 types/lodash/last/index.d.ts create mode 100644 types/lodash/lastIndexOf.d.ts delete mode 100644 types/lodash/lastIndexOf/index.d.ts create mode 100644 types/lodash/lowerCase.d.ts delete mode 100644 types/lodash/lowerCase/index.d.ts create mode 100644 types/lodash/lowerFirst.d.ts delete mode 100644 types/lodash/lowerFirst/index.d.ts create mode 100644 types/lodash/lt.d.ts delete mode 100644 types/lodash/lt/index.d.ts create mode 100644 types/lodash/lte.d.ts delete mode 100644 types/lodash/lte/index.d.ts create mode 100644 types/lodash/map.d.ts delete mode 100644 types/lodash/map/index.d.ts create mode 100644 types/lodash/mapKeys.d.ts delete mode 100644 types/lodash/mapKeys/index.d.ts create mode 100644 types/lodash/mapValues.d.ts delete mode 100644 types/lodash/mapValues/index.d.ts create mode 100644 types/lodash/matches.d.ts delete mode 100644 types/lodash/matches/index.d.ts create mode 100644 types/lodash/matchesProperty.d.ts delete mode 100644 types/lodash/matchesProperty/index.d.ts create mode 100644 types/lodash/max.d.ts delete mode 100644 types/lodash/max/index.d.ts create mode 100644 types/lodash/maxBy.d.ts delete mode 100644 types/lodash/maxBy/index.d.ts create mode 100644 types/lodash/mean.d.ts delete mode 100644 types/lodash/mean/index.d.ts create mode 100644 types/lodash/meanBy.d.ts delete mode 100644 types/lodash/meanBy/index.d.ts create mode 100644 types/lodash/memoize.d.ts delete mode 100644 types/lodash/memoize/index.d.ts create mode 100644 types/lodash/merge.d.ts delete mode 100644 types/lodash/merge/index.d.ts create mode 100644 types/lodash/mergeWith.d.ts delete mode 100644 types/lodash/mergeWith/index.d.ts create mode 100644 types/lodash/method.d.ts delete mode 100644 types/lodash/method/index.d.ts create mode 100644 types/lodash/methodOf.d.ts delete mode 100644 types/lodash/methodOf/index.d.ts create mode 100644 types/lodash/min.d.ts delete mode 100644 types/lodash/min/index.d.ts create mode 100644 types/lodash/minBy.d.ts delete mode 100644 types/lodash/minBy/index.d.ts create mode 100644 types/lodash/mixin.d.ts delete mode 100644 types/lodash/mixin/index.d.ts create mode 100644 types/lodash/negate.d.ts delete mode 100644 types/lodash/negate/index.d.ts create mode 100644 types/lodash/noConflict.d.ts delete mode 100644 types/lodash/noConflict/index.d.ts create mode 100644 types/lodash/noop.d.ts delete mode 100644 types/lodash/noop/index.d.ts create mode 100644 types/lodash/now.d.ts delete mode 100644 types/lodash/now/index.d.ts delete mode 100644 types/lodash/nth/index.d.ts create mode 100644 types/lodash/nthArg.d.ts delete mode 100644 types/lodash/nthArg/index.d.ts create mode 100644 types/lodash/omit.d.ts delete mode 100644 types/lodash/omit/index.d.ts create mode 100644 types/lodash/omitBy.d.ts delete mode 100644 types/lodash/omitBy/index.d.ts create mode 100644 types/lodash/once.d.ts delete mode 100644 types/lodash/once/index.d.ts create mode 100644 types/lodash/orderBy.d.ts delete mode 100644 types/lodash/orderBy/index.d.ts create mode 100644 types/lodash/over.d.ts delete mode 100644 types/lodash/over/index.d.ts create mode 100644 types/lodash/overArgs.d.ts delete mode 100644 types/lodash/overArgs/index.d.ts create mode 100644 types/lodash/overEvery.d.ts delete mode 100644 types/lodash/overEvery/index.d.ts create mode 100644 types/lodash/overSome.d.ts delete mode 100644 types/lodash/overSome/index.d.ts create mode 100644 types/lodash/pad.d.ts delete mode 100644 types/lodash/pad/index.d.ts create mode 100644 types/lodash/padEnd.d.ts delete mode 100644 types/lodash/padEnd/index.d.ts create mode 100644 types/lodash/padStart.d.ts delete mode 100644 types/lodash/padStart/index.d.ts create mode 100644 types/lodash/parseInt.d.ts delete mode 100644 types/lodash/parseInt/index.d.ts create mode 100644 types/lodash/partial.d.ts delete mode 100644 types/lodash/partial/index.d.ts create mode 100644 types/lodash/partialRight.d.ts delete mode 100644 types/lodash/partialRight/index.d.ts create mode 100644 types/lodash/partition.d.ts delete mode 100644 types/lodash/partition/index.d.ts create mode 100644 types/lodash/pick.d.ts delete mode 100644 types/lodash/pick/index.d.ts create mode 100644 types/lodash/pickBy.d.ts delete mode 100644 types/lodash/pickBy/index.d.ts create mode 100644 types/lodash/property.d.ts delete mode 100644 types/lodash/property/index.d.ts create mode 100644 types/lodash/propertyOf.d.ts delete mode 100644 types/lodash/propertyOf/index.d.ts create mode 100644 types/lodash/pull.d.ts delete mode 100644 types/lodash/pull/index.d.ts create mode 100644 types/lodash/pullAll.d.ts delete mode 100644 types/lodash/pullAll/index.d.ts create mode 100644 types/lodash/pullAllBy.d.ts delete mode 100644 types/lodash/pullAllBy/index.d.ts create mode 100644 types/lodash/pullAt.d.ts delete mode 100644 types/lodash/pullAt/index.d.ts create mode 100644 types/lodash/random.d.ts delete mode 100644 types/lodash/random/index.d.ts create mode 100644 types/lodash/range.d.ts delete mode 100644 types/lodash/range/index.d.ts create mode 100644 types/lodash/rangeRight.d.ts delete mode 100644 types/lodash/rangeRight/index.d.ts create mode 100644 types/lodash/rearg.d.ts delete mode 100644 types/lodash/rearg/index.d.ts create mode 100644 types/lodash/reduce.d.ts delete mode 100644 types/lodash/reduce/index.d.ts create mode 100644 types/lodash/reduceRight.d.ts delete mode 100644 types/lodash/reduceRight/index.d.ts create mode 100644 types/lodash/reject.d.ts delete mode 100644 types/lodash/reject/index.d.ts create mode 100644 types/lodash/remove.d.ts delete mode 100644 types/lodash/remove/index.d.ts create mode 100644 types/lodash/repeat.d.ts delete mode 100644 types/lodash/repeat/index.d.ts create mode 100644 types/lodash/replace.d.ts delete mode 100644 types/lodash/replace/index.d.ts create mode 100644 types/lodash/rest.d.ts delete mode 100644 types/lodash/rest/index.d.ts create mode 100644 types/lodash/result.d.ts delete mode 100644 types/lodash/result/index.d.ts create mode 100644 types/lodash/reverse.d.ts delete mode 100644 types/lodash/reverse/index.d.ts create mode 100644 types/lodash/round.d.ts delete mode 100644 types/lodash/round/index.d.ts create mode 100644 types/lodash/runInContext.d.ts delete mode 100644 types/lodash/runInContext/index.d.ts create mode 100644 types/lodash/sample.d.ts delete mode 100644 types/lodash/sample/index.d.ts create mode 100644 types/lodash/sampleSize.d.ts delete mode 100644 types/lodash/sampleSize/index.d.ts create mode 100644 types/lodash/set.d.ts delete mode 100644 types/lodash/set/index.d.ts create mode 100644 types/lodash/setWith.d.ts delete mode 100644 types/lodash/setWith/index.d.ts create mode 100644 types/lodash/shuffle.d.ts delete mode 100644 types/lodash/shuffle/index.d.ts create mode 100644 types/lodash/size.d.ts delete mode 100644 types/lodash/size/index.d.ts create mode 100644 types/lodash/slice.d.ts delete mode 100644 types/lodash/slice/index.d.ts create mode 100644 types/lodash/snakeCase.d.ts delete mode 100644 types/lodash/snakeCase/index.d.ts create mode 100644 types/lodash/some.d.ts delete mode 100644 types/lodash/some/index.d.ts create mode 100644 types/lodash/sortBy.d.ts delete mode 100644 types/lodash/sortBy/index.d.ts create mode 100644 types/lodash/sortedIndex.d.ts delete mode 100644 types/lodash/sortedIndex/index.d.ts create mode 100644 types/lodash/sortedIndexBy.d.ts delete mode 100644 types/lodash/sortedIndexBy/index.d.ts create mode 100644 types/lodash/sortedIndexOf.d.ts delete mode 100644 types/lodash/sortedIndexOf/index.d.ts create mode 100644 types/lodash/sortedLastIndex.d.ts delete mode 100644 types/lodash/sortedLastIndex/index.d.ts create mode 100644 types/lodash/sortedLastIndexBy.d.ts delete mode 100644 types/lodash/sortedLastIndexBy/index.d.ts create mode 100644 types/lodash/sortedLastIndexOf.d.ts delete mode 100644 types/lodash/sortedLastIndexOf/index.d.ts create mode 100644 types/lodash/sortedUniq.d.ts delete mode 100644 types/lodash/sortedUniq/index.d.ts create mode 100644 types/lodash/sortedUniqBy.d.ts delete mode 100644 types/lodash/sortedUniqBy/index.d.ts create mode 100644 types/lodash/split.d.ts delete mode 100644 types/lodash/split/index.d.ts create mode 100644 types/lodash/spread.d.ts delete mode 100644 types/lodash/spread/index.d.ts create mode 100644 types/lodash/startCase.d.ts delete mode 100644 types/lodash/startCase/index.d.ts create mode 100644 types/lodash/startsWith.d.ts delete mode 100644 types/lodash/startsWith/index.d.ts create mode 100644 types/lodash/subtract.d.ts delete mode 100644 types/lodash/subtract/index.d.ts create mode 100644 types/lodash/sum.d.ts delete mode 100644 types/lodash/sum/index.d.ts create mode 100644 types/lodash/sumBy.d.ts delete mode 100644 types/lodash/sumBy/index.d.ts create mode 100644 types/lodash/tail.d.ts delete mode 100644 types/lodash/tail/index.d.ts create mode 100644 types/lodash/take.d.ts delete mode 100644 types/lodash/take/index.d.ts create mode 100644 types/lodash/takeRight.d.ts delete mode 100644 types/lodash/takeRight/index.d.ts create mode 100644 types/lodash/takeRightWhile.d.ts delete mode 100644 types/lodash/takeRightWhile/index.d.ts create mode 100644 types/lodash/takeWhile.d.ts delete mode 100644 types/lodash/takeWhile/index.d.ts create mode 100644 types/lodash/tap.d.ts delete mode 100644 types/lodash/tap/index.d.ts create mode 100644 types/lodash/template.d.ts delete mode 100644 types/lodash/template/index.d.ts create mode 100644 types/lodash/throttle.d.ts delete mode 100644 types/lodash/throttle/index.d.ts create mode 100644 types/lodash/thru.d.ts delete mode 100644 types/lodash/thru/index.d.ts create mode 100644 types/lodash/times.d.ts delete mode 100644 types/lodash/times/index.d.ts create mode 100644 types/lodash/toArray.d.ts delete mode 100644 types/lodash/toArray/index.d.ts delete mode 100644 types/lodash/toFinite/index.d.ts create mode 100644 types/lodash/toInteger.d.ts delete mode 100644 types/lodash/toInteger/index.d.ts create mode 100644 types/lodash/toLength.d.ts delete mode 100644 types/lodash/toLength/index.d.ts create mode 100644 types/lodash/toLower.d.ts delete mode 100644 types/lodash/toLower/index.d.ts create mode 100644 types/lodash/toNumber.d.ts delete mode 100644 types/lodash/toNumber/index.d.ts create mode 100644 types/lodash/toPairs.d.ts delete mode 100644 types/lodash/toPairs/index.d.ts create mode 100644 types/lodash/toPairsIn.d.ts delete mode 100644 types/lodash/toPairsIn/index.d.ts create mode 100644 types/lodash/toPath.d.ts delete mode 100644 types/lodash/toPath/index.d.ts create mode 100644 types/lodash/toPlainObject.d.ts delete mode 100644 types/lodash/toPlainObject/index.d.ts create mode 100644 types/lodash/toSafeInteger.d.ts delete mode 100644 types/lodash/toSafeInteger/index.d.ts create mode 100644 types/lodash/toString.d.ts delete mode 100644 types/lodash/toString/index.d.ts create mode 100644 types/lodash/toUpper.d.ts delete mode 100644 types/lodash/toUpper/index.d.ts create mode 100644 types/lodash/transform.d.ts delete mode 100644 types/lodash/transform/index.d.ts create mode 100644 types/lodash/trim.d.ts delete mode 100644 types/lodash/trim/index.d.ts create mode 100644 types/lodash/trimEnd.d.ts delete mode 100644 types/lodash/trimEnd/index.d.ts create mode 100644 types/lodash/trimStart.d.ts delete mode 100644 types/lodash/trimStart/index.d.ts create mode 100644 types/lodash/truncate.d.ts delete mode 100644 types/lodash/truncate/index.d.ts create mode 100644 types/lodash/unary.d.ts delete mode 100644 types/lodash/unary/index.d.ts create mode 100644 types/lodash/unescape.d.ts delete mode 100644 types/lodash/unescape/index.d.ts create mode 100644 types/lodash/union.d.ts delete mode 100644 types/lodash/union/index.d.ts create mode 100644 types/lodash/unionBy.d.ts delete mode 100644 types/lodash/unionBy/index.d.ts create mode 100644 types/lodash/unionWith.d.ts delete mode 100644 types/lodash/unionWith/index.d.ts create mode 100644 types/lodash/uniq.d.ts delete mode 100644 types/lodash/uniq/index.d.ts create mode 100644 types/lodash/uniqBy.d.ts delete mode 100644 types/lodash/uniqBy/index.d.ts create mode 100644 types/lodash/uniqWith.d.ts delete mode 100644 types/lodash/uniqWith/index.d.ts create mode 100644 types/lodash/uniqueId.d.ts delete mode 100644 types/lodash/uniqueId/index.d.ts create mode 100644 types/lodash/unset.d.ts delete mode 100644 types/lodash/unset/index.d.ts create mode 100644 types/lodash/unzip.d.ts delete mode 100644 types/lodash/unzip/index.d.ts create mode 100644 types/lodash/unzipWith.d.ts delete mode 100644 types/lodash/unzipWith/index.d.ts create mode 100644 types/lodash/update.d.ts delete mode 100644 types/lodash/update/index.d.ts create mode 100644 types/lodash/upperCase.d.ts delete mode 100644 types/lodash/upperCase/index.d.ts create mode 100644 types/lodash/upperFirst.d.ts delete mode 100644 types/lodash/upperFirst/index.d.ts create mode 100644 types/lodash/values.d.ts delete mode 100644 types/lodash/values/index.d.ts create mode 100644 types/lodash/valuesIn.d.ts delete mode 100644 types/lodash/valuesIn/index.d.ts create mode 100644 types/lodash/without.d.ts delete mode 100644 types/lodash/without/index.d.ts create mode 100644 types/lodash/words.d.ts delete mode 100644 types/lodash/words/index.d.ts create mode 100644 types/lodash/wrap.d.ts delete mode 100644 types/lodash/wrap/index.d.ts create mode 100644 types/lodash/xor.d.ts delete mode 100644 types/lodash/xor/index.d.ts create mode 100644 types/lodash/xorBy.d.ts delete mode 100644 types/lodash/xorBy/index.d.ts create mode 100644 types/lodash/xorWith.d.ts delete mode 100644 types/lodash/xorWith/index.d.ts create mode 100644 types/lodash/zip.d.ts delete mode 100644 types/lodash/zip/index.d.ts create mode 100644 types/lodash/zipObject.d.ts delete mode 100644 types/lodash/zipObject/index.d.ts delete mode 100644 types/lodash/zipObjectDeep/index.d.ts create mode 100644 types/lodash/zipWith.d.ts delete mode 100644 types/lodash/zipWith/index.d.ts diff --git a/types/lodash-es/add.d.ts b/types/lodash-es/add.d.ts new file mode 100644 index 0000000000..603401f315 --- /dev/null +++ b/types/lodash-es/add.d.ts @@ -0,0 +1,2 @@ +import { add } from "lodash"; +export default add; diff --git a/types/lodash-es/add/index.d.ts b/types/lodash-es/add/index.d.ts deleted file mode 100644 index a63439b906..0000000000 --- a/types/lodash-es/add/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const add: typeof _.add; -export default add; diff --git a/types/lodash-es/after.d.ts b/types/lodash-es/after.d.ts new file mode 100644 index 0000000000..5c8f8ff7a6 --- /dev/null +++ b/types/lodash-es/after.d.ts @@ -0,0 +1,2 @@ +import { after } from "lodash"; +export default after; diff --git a/types/lodash-es/after/index.d.ts b/types/lodash-es/after/index.d.ts deleted file mode 100644 index 39a19b4f11..0000000000 --- a/types/lodash-es/after/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const after: typeof _.after; -export default after; diff --git a/types/lodash-es/ary.d.ts b/types/lodash-es/ary.d.ts new file mode 100644 index 0000000000..43c8149968 --- /dev/null +++ b/types/lodash-es/ary.d.ts @@ -0,0 +1,2 @@ +import { ary } from "lodash"; +export default ary; diff --git a/types/lodash-es/ary/index.d.ts b/types/lodash-es/ary/index.d.ts deleted file mode 100644 index 683b4c2d16..0000000000 --- a/types/lodash-es/ary/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const ary: typeof _.ary; -export default ary; diff --git a/types/lodash-es/assign.d.ts b/types/lodash-es/assign.d.ts new file mode 100644 index 0000000000..41d3c1f6bd --- /dev/null +++ b/types/lodash-es/assign.d.ts @@ -0,0 +1,2 @@ +import { assign } from "lodash"; +export default assign; diff --git a/types/lodash-es/assign/index.d.ts b/types/lodash-es/assign/index.d.ts deleted file mode 100644 index e07e8b3712..0000000000 --- a/types/lodash-es/assign/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const assign: typeof _.assign; -export default assign; diff --git a/types/lodash-es/assignIn.d.ts b/types/lodash-es/assignIn.d.ts new file mode 100644 index 0000000000..b9157d1acb --- /dev/null +++ b/types/lodash-es/assignIn.d.ts @@ -0,0 +1,2 @@ +import { assignIn } from "lodash"; +export default assignIn; diff --git a/types/lodash-es/assignIn/index.d.ts b/types/lodash-es/assignIn/index.d.ts deleted file mode 100644 index ae37403f48..0000000000 --- a/types/lodash-es/assignIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const assignIn: typeof _.assignIn; -export default assignIn; diff --git a/types/lodash-es/assignInWith.d.ts b/types/lodash-es/assignInWith.d.ts new file mode 100644 index 0000000000..0d61f0e49a --- /dev/null +++ b/types/lodash-es/assignInWith.d.ts @@ -0,0 +1,2 @@ +import { assignInWith } from "lodash"; +export default assignInWith; diff --git a/types/lodash-es/assignInWith/index.d.ts b/types/lodash-es/assignInWith/index.d.ts deleted file mode 100644 index 1f99a630e1..0000000000 --- a/types/lodash-es/assignInWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const assignInWith: typeof _.assignInWith; -export default assignInWith; diff --git a/types/lodash-es/assignWith.d.ts b/types/lodash-es/assignWith.d.ts new file mode 100644 index 0000000000..cacaba06d4 --- /dev/null +++ b/types/lodash-es/assignWith.d.ts @@ -0,0 +1,2 @@ +import { assignWith } from "lodash"; +export default assignWith; diff --git a/types/lodash-es/assignWith/index.d.ts b/types/lodash-es/assignWith/index.d.ts deleted file mode 100644 index d7175fa8fd..0000000000 --- a/types/lodash-es/assignWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const assignWith: typeof _.assignWith; -export default assignWith; diff --git a/types/lodash-es/at.d.ts b/types/lodash-es/at.d.ts new file mode 100644 index 0000000000..c0181066fb --- /dev/null +++ b/types/lodash-es/at.d.ts @@ -0,0 +1,2 @@ +import { at } from "lodash"; +export default at; diff --git a/types/lodash-es/at/index.d.ts b/types/lodash-es/at/index.d.ts deleted file mode 100644 index 98ab16eb60..0000000000 --- a/types/lodash-es/at/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const at: typeof _.at; -export default at; diff --git a/types/lodash-es/attempt.d.ts b/types/lodash-es/attempt.d.ts new file mode 100644 index 0000000000..5a8de1ab0c --- /dev/null +++ b/types/lodash-es/attempt.d.ts @@ -0,0 +1,2 @@ +import { attempt } from "lodash"; +export default attempt; diff --git a/types/lodash-es/attempt/index.d.ts b/types/lodash-es/attempt/index.d.ts deleted file mode 100644 index c4a32846c3..0000000000 --- a/types/lodash-es/attempt/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const attempt: typeof _.attempt; -export default attempt; diff --git a/types/lodash-es/before.d.ts b/types/lodash-es/before.d.ts new file mode 100644 index 0000000000..5459d40064 --- /dev/null +++ b/types/lodash-es/before.d.ts @@ -0,0 +1,2 @@ +import { before } from "lodash"; +export default before; diff --git a/types/lodash-es/before/index.d.ts b/types/lodash-es/before/index.d.ts deleted file mode 100644 index 1051dbf013..0000000000 --- a/types/lodash-es/before/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const before: typeof _.before; -export default before; diff --git a/types/lodash-es/bind.d.ts b/types/lodash-es/bind.d.ts new file mode 100644 index 0000000000..ca5910e0d2 --- /dev/null +++ b/types/lodash-es/bind.d.ts @@ -0,0 +1,2 @@ +import { bind } from "lodash"; +export default bind; diff --git a/types/lodash-es/bind/index.d.ts b/types/lodash-es/bind/index.d.ts deleted file mode 100644 index b19c3c3f1f..0000000000 --- a/types/lodash-es/bind/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const bind: typeof _.bind; -export default bind; diff --git a/types/lodash-es/bindAll.d.ts b/types/lodash-es/bindAll.d.ts new file mode 100644 index 0000000000..e51ced057b --- /dev/null +++ b/types/lodash-es/bindAll.d.ts @@ -0,0 +1,2 @@ +import { bindAll } from "lodash"; +export default bindAll; diff --git a/types/lodash-es/bindAll/index.d.ts b/types/lodash-es/bindAll/index.d.ts deleted file mode 100644 index 4b7c95f654..0000000000 --- a/types/lodash-es/bindAll/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const bindAll: typeof _.bindAll; -export default bindAll; diff --git a/types/lodash-es/bindKey.d.ts b/types/lodash-es/bindKey.d.ts new file mode 100644 index 0000000000..5347894d8f --- /dev/null +++ b/types/lodash-es/bindKey.d.ts @@ -0,0 +1,2 @@ +import { bindKey } from "lodash"; +export default bindKey; diff --git a/types/lodash-es/bindKey/index.d.ts b/types/lodash-es/bindKey/index.d.ts deleted file mode 100644 index c302459d1b..0000000000 --- a/types/lodash-es/bindKey/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const bindKey: typeof _.bindKey; -export default bindKey; diff --git a/types/lodash-es/camelCase.d.ts b/types/lodash-es/camelCase.d.ts new file mode 100644 index 0000000000..2ce5e15478 --- /dev/null +++ b/types/lodash-es/camelCase.d.ts @@ -0,0 +1,2 @@ +import { camelCase } from "lodash"; +export default camelCase; diff --git a/types/lodash-es/camelCase/index.d.ts b/types/lodash-es/camelCase/index.d.ts deleted file mode 100644 index db927ef779..0000000000 --- a/types/lodash-es/camelCase/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const camelCase: typeof _.camelCase; -export default camelCase; diff --git a/types/lodash-es/capitalize.d.ts b/types/lodash-es/capitalize.d.ts new file mode 100644 index 0000000000..767d44adea --- /dev/null +++ b/types/lodash-es/capitalize.d.ts @@ -0,0 +1,2 @@ +import { capitalize } from "lodash"; +export default capitalize; diff --git a/types/lodash-es/capitalize/index.d.ts b/types/lodash-es/capitalize/index.d.ts deleted file mode 100644 index bebe71e9b2..0000000000 --- a/types/lodash-es/capitalize/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const capitalize: typeof _.capitalize; -export default capitalize; diff --git a/types/lodash-es/castArray.d.ts b/types/lodash-es/castArray.d.ts new file mode 100644 index 0000000000..fa5edef4f8 --- /dev/null +++ b/types/lodash-es/castArray.d.ts @@ -0,0 +1,2 @@ +import { castArray } from "lodash"; +export default castArray; diff --git a/types/lodash-es/castArray/index.d.ts b/types/lodash-es/castArray/index.d.ts deleted file mode 100644 index 8474b4b3fc..0000000000 --- a/types/lodash-es/castArray/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const castArray: typeof _.castArray; -export default castArray; diff --git a/types/lodash-es/ceil.d.ts b/types/lodash-es/ceil.d.ts new file mode 100644 index 0000000000..3539305248 --- /dev/null +++ b/types/lodash-es/ceil.d.ts @@ -0,0 +1,2 @@ +import { ceil } from "lodash"; +export default ceil; diff --git a/types/lodash-es/ceil/index.d.ts b/types/lodash-es/ceil/index.d.ts deleted file mode 100644 index eaaefd5a42..0000000000 --- a/types/lodash-es/ceil/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const ceil: typeof _.ceil; -export default ceil; diff --git a/types/lodash-es/chain.d.ts b/types/lodash-es/chain.d.ts new file mode 100644 index 0000000000..968e2c0a4e --- /dev/null +++ b/types/lodash-es/chain.d.ts @@ -0,0 +1,2 @@ +import { chain } from "lodash"; +export default chain; diff --git a/types/lodash-es/chain/index.d.ts b/types/lodash-es/chain/index.d.ts deleted file mode 100644 index 2bbc3fcb3d..0000000000 --- a/types/lodash-es/chain/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const chain: typeof _.chain; -export default chain; diff --git a/types/lodash-es/chunk.d.ts b/types/lodash-es/chunk.d.ts new file mode 100644 index 0000000000..41f2ddf067 --- /dev/null +++ b/types/lodash-es/chunk.d.ts @@ -0,0 +1,2 @@ +import { chunk } from "lodash"; +export default chunk; diff --git a/types/lodash-es/chunk/index.d.ts b/types/lodash-es/chunk/index.d.ts deleted file mode 100644 index 7ee13fad50..0000000000 --- a/types/lodash-es/chunk/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const chunk: typeof _.chunk; -export default chunk; diff --git a/types/lodash-es/clamp.d.ts b/types/lodash-es/clamp.d.ts new file mode 100644 index 0000000000..5802552e0c --- /dev/null +++ b/types/lodash-es/clamp.d.ts @@ -0,0 +1,2 @@ +import { clamp } from "lodash"; +export default clamp; diff --git a/types/lodash-es/clamp/index.d.ts b/types/lodash-es/clamp/index.d.ts deleted file mode 100644 index 8994eb52bc..0000000000 --- a/types/lodash-es/clamp/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const clamp: typeof _.clamp; -export default clamp; diff --git a/types/lodash-es/clone.d.ts b/types/lodash-es/clone.d.ts new file mode 100644 index 0000000000..9e43a7d278 --- /dev/null +++ b/types/lodash-es/clone.d.ts @@ -0,0 +1,2 @@ +import { clone } from "lodash"; +export default clone; diff --git a/types/lodash-es/clone/index.d.ts b/types/lodash-es/clone/index.d.ts deleted file mode 100644 index 8792f93fe5..0000000000 --- a/types/lodash-es/clone/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const clone: typeof _.clone; -export default clone; diff --git a/types/lodash-es/cloneDeep.d.ts b/types/lodash-es/cloneDeep.d.ts new file mode 100644 index 0000000000..f8af6e288e --- /dev/null +++ b/types/lodash-es/cloneDeep.d.ts @@ -0,0 +1,2 @@ +import { cloneDeep } from "lodash"; +export default cloneDeep; diff --git a/types/lodash-es/cloneDeep/index.d.ts b/types/lodash-es/cloneDeep/index.d.ts deleted file mode 100644 index bb86cf7c56..0000000000 --- a/types/lodash-es/cloneDeep/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const cloneDeep: typeof _.cloneDeep; -export default cloneDeep; diff --git a/types/lodash-es/cloneDeepWith.d.ts b/types/lodash-es/cloneDeepWith.d.ts new file mode 100644 index 0000000000..afd53ba4de --- /dev/null +++ b/types/lodash-es/cloneDeepWith.d.ts @@ -0,0 +1,2 @@ +import { cloneDeepWith } from "lodash"; +export default cloneDeepWith; diff --git a/types/lodash-es/cloneDeepWith/index.d.ts b/types/lodash-es/cloneDeepWith/index.d.ts deleted file mode 100644 index 0ad1b449b8..0000000000 --- a/types/lodash-es/cloneDeepWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const cloneDeepWith: typeof _.cloneDeepWith; -export default cloneDeepWith; diff --git a/types/lodash-es/cloneWith.d.ts b/types/lodash-es/cloneWith.d.ts new file mode 100644 index 0000000000..9f95241d87 --- /dev/null +++ b/types/lodash-es/cloneWith.d.ts @@ -0,0 +1,2 @@ +import { cloneWith } from "lodash"; +export default cloneWith; diff --git a/types/lodash-es/cloneWith/index.d.ts b/types/lodash-es/cloneWith/index.d.ts deleted file mode 100644 index ba865f9eeb..0000000000 --- a/types/lodash-es/cloneWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const cloneWith: typeof _.cloneWith; -export default cloneWith; diff --git a/types/lodash-es/compact.d.ts b/types/lodash-es/compact.d.ts new file mode 100644 index 0000000000..ca4c5797c4 --- /dev/null +++ b/types/lodash-es/compact.d.ts @@ -0,0 +1,2 @@ +import { compact } from "lodash"; +export default compact; diff --git a/types/lodash-es/compact/index.d.ts b/types/lodash-es/compact/index.d.ts deleted file mode 100644 index b11a162f5b..0000000000 --- a/types/lodash-es/compact/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const compact: typeof _.compact; -export default compact; diff --git a/types/lodash-es/concat.d.ts b/types/lodash-es/concat.d.ts new file mode 100644 index 0000000000..40d0f25b17 --- /dev/null +++ b/types/lodash-es/concat.d.ts @@ -0,0 +1,2 @@ +import { concat } from "lodash"; +export default concat; diff --git a/types/lodash-es/concat/index.d.ts b/types/lodash-es/concat/index.d.ts deleted file mode 100644 index 258c9648e8..0000000000 --- a/types/lodash-es/concat/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const concat: typeof _.concat; -export default concat; diff --git a/types/lodash-es/constant.d.ts b/types/lodash-es/constant.d.ts new file mode 100644 index 0000000000..643b486963 --- /dev/null +++ b/types/lodash-es/constant.d.ts @@ -0,0 +1,2 @@ +import { constant } from "lodash"; +export default constant; diff --git a/types/lodash-es/constant/index.d.ts b/types/lodash-es/constant/index.d.ts deleted file mode 100644 index ff3bbc5ead..0000000000 --- a/types/lodash-es/constant/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const constant: typeof _.constant; -export default constant; diff --git a/types/lodash-es/countBy.d.ts b/types/lodash-es/countBy.d.ts new file mode 100644 index 0000000000..5907e9f761 --- /dev/null +++ b/types/lodash-es/countBy.d.ts @@ -0,0 +1,2 @@ +import { countBy } from "lodash"; +export default countBy; diff --git a/types/lodash-es/countBy/index.d.ts b/types/lodash-es/countBy/index.d.ts deleted file mode 100644 index b02617bdce..0000000000 --- a/types/lodash-es/countBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const countBy: typeof _.countBy; -export default countBy; diff --git a/types/lodash-es/create.d.ts b/types/lodash-es/create.d.ts new file mode 100644 index 0000000000..308021f27c --- /dev/null +++ b/types/lodash-es/create.d.ts @@ -0,0 +1,2 @@ +import { create } from "lodash"; +export default create; diff --git a/types/lodash-es/create/index.d.ts b/types/lodash-es/create/index.d.ts deleted file mode 100644 index eacab36ac2..0000000000 --- a/types/lodash-es/create/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const create: typeof _.create; -export default create; diff --git a/types/lodash-es/curry.d.ts b/types/lodash-es/curry.d.ts new file mode 100644 index 0000000000..86ff6554f0 --- /dev/null +++ b/types/lodash-es/curry.d.ts @@ -0,0 +1,2 @@ +import { curry } from "lodash"; +export default curry; diff --git a/types/lodash-es/curry/index.d.ts b/types/lodash-es/curry/index.d.ts deleted file mode 100644 index c7a929f9fd..0000000000 --- a/types/lodash-es/curry/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const curry: typeof _.curry; -export default curry; diff --git a/types/lodash-es/curryRight.d.ts b/types/lodash-es/curryRight.d.ts new file mode 100644 index 0000000000..c6bcd5cd52 --- /dev/null +++ b/types/lodash-es/curryRight.d.ts @@ -0,0 +1,2 @@ +import { curryRight } from "lodash"; +export default curryRight; diff --git a/types/lodash-es/curryRight/index.d.ts b/types/lodash-es/curryRight/index.d.ts deleted file mode 100644 index 2a5bb1cfe2..0000000000 --- a/types/lodash-es/curryRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const curryRight: typeof _.curryRight; -export default curryRight; diff --git a/types/lodash-es/debounce.d.ts b/types/lodash-es/debounce.d.ts new file mode 100644 index 0000000000..9ab66cdec3 --- /dev/null +++ b/types/lodash-es/debounce.d.ts @@ -0,0 +1,2 @@ +import { debounce } from "lodash"; +export default debounce; diff --git a/types/lodash-es/debounce/index.d.ts b/types/lodash-es/debounce/index.d.ts deleted file mode 100644 index cdb629b926..0000000000 --- a/types/lodash-es/debounce/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const debounce: typeof _.debounce; -export default debounce; diff --git a/types/lodash-es/deburr.d.ts b/types/lodash-es/deburr.d.ts new file mode 100644 index 0000000000..a6707b12ca --- /dev/null +++ b/types/lodash-es/deburr.d.ts @@ -0,0 +1,2 @@ +import { deburr } from "lodash"; +export default deburr; diff --git a/types/lodash-es/deburr/index.d.ts b/types/lodash-es/deburr/index.d.ts deleted file mode 100644 index e0112e772e..0000000000 --- a/types/lodash-es/deburr/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const deburr: typeof _.deburr; -export default deburr; diff --git a/types/lodash-es/defaults.d.ts b/types/lodash-es/defaults.d.ts new file mode 100644 index 0000000000..33e5f06e42 --- /dev/null +++ b/types/lodash-es/defaults.d.ts @@ -0,0 +1,2 @@ +import { defaults } from "lodash"; +export default defaults; diff --git a/types/lodash-es/defaults/index.d.ts b/types/lodash-es/defaults/index.d.ts deleted file mode 100644 index 9a3a9135d2..0000000000 --- a/types/lodash-es/defaults/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const defaults: typeof _.defaults; -export default defaults; diff --git a/types/lodash-es/defaultsDeep.d.ts b/types/lodash-es/defaultsDeep.d.ts new file mode 100644 index 0000000000..668d059fa1 --- /dev/null +++ b/types/lodash-es/defaultsDeep.d.ts @@ -0,0 +1,2 @@ +import { defaultsDeep } from "lodash"; +export default defaultsDeep; diff --git a/types/lodash-es/defaultsDeep/index.d.ts b/types/lodash-es/defaultsDeep/index.d.ts deleted file mode 100644 index 01da70c706..0000000000 --- a/types/lodash-es/defaultsDeep/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const defaultsDeep: typeof _.defaultsDeep; -export default defaultsDeep; diff --git a/types/lodash-es/defer.d.ts b/types/lodash-es/defer.d.ts new file mode 100644 index 0000000000..c61a59ab45 --- /dev/null +++ b/types/lodash-es/defer.d.ts @@ -0,0 +1,2 @@ +import { defer } from "lodash"; +export default defer; diff --git a/types/lodash-es/defer/index.d.ts b/types/lodash-es/defer/index.d.ts deleted file mode 100644 index 098cdde130..0000000000 --- a/types/lodash-es/defer/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const defer: typeof _.defer; -export default defer; diff --git a/types/lodash-es/delay.d.ts b/types/lodash-es/delay.d.ts new file mode 100644 index 0000000000..d914be0ebd --- /dev/null +++ b/types/lodash-es/delay.d.ts @@ -0,0 +1,2 @@ +import { delay } from "lodash"; +export default delay; diff --git a/types/lodash-es/delay/index.d.ts b/types/lodash-es/delay/index.d.ts deleted file mode 100644 index ff4b25b339..0000000000 --- a/types/lodash-es/delay/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const delay: typeof _.delay; -export default delay; diff --git a/types/lodash-es/difference.d.ts b/types/lodash-es/difference.d.ts new file mode 100644 index 0000000000..69584ee232 --- /dev/null +++ b/types/lodash-es/difference.d.ts @@ -0,0 +1,2 @@ +import { difference } from "lodash"; +export default difference; diff --git a/types/lodash-es/difference/index.d.ts b/types/lodash-es/difference/index.d.ts deleted file mode 100644 index ab23246e99..0000000000 --- a/types/lodash-es/difference/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const difference: typeof _.difference; -export default difference; diff --git a/types/lodash-es/differenceBy.d.ts b/types/lodash-es/differenceBy.d.ts new file mode 100644 index 0000000000..dac60779a9 --- /dev/null +++ b/types/lodash-es/differenceBy.d.ts @@ -0,0 +1,2 @@ +import { differenceBy } from "lodash"; +export default differenceBy; diff --git a/types/lodash-es/differenceBy/index.d.ts b/types/lodash-es/differenceBy/index.d.ts deleted file mode 100644 index ecadabb5d6..0000000000 --- a/types/lodash-es/differenceBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const differenceBy: typeof _.differenceBy; -export default differenceBy; diff --git a/types/lodash-es/differenceWith.d.ts b/types/lodash-es/differenceWith.d.ts new file mode 100644 index 0000000000..949bc73dde --- /dev/null +++ b/types/lodash-es/differenceWith.d.ts @@ -0,0 +1,2 @@ +import { differenceWith } from "lodash"; +export default differenceWith; diff --git a/types/lodash-es/differenceWith/index.d.ts b/types/lodash-es/differenceWith/index.d.ts deleted file mode 100644 index 6b1d91760d..0000000000 --- a/types/lodash-es/differenceWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const differenceWith: typeof _.differenceWith; -export default differenceWith; diff --git a/types/lodash-es/drop.d.ts b/types/lodash-es/drop.d.ts new file mode 100644 index 0000000000..b70fd61be7 --- /dev/null +++ b/types/lodash-es/drop.d.ts @@ -0,0 +1,2 @@ +import { drop } from "lodash"; +export default drop; diff --git a/types/lodash-es/drop/index.d.ts b/types/lodash-es/drop/index.d.ts deleted file mode 100644 index 3acb7ffda5..0000000000 --- a/types/lodash-es/drop/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const drop: typeof _.drop; -export default drop; diff --git a/types/lodash-es/dropRight.d.ts b/types/lodash-es/dropRight.d.ts new file mode 100644 index 0000000000..ecb5a8f786 --- /dev/null +++ b/types/lodash-es/dropRight.d.ts @@ -0,0 +1,2 @@ +import { dropRight } from "lodash"; +export default dropRight; diff --git a/types/lodash-es/dropRight/index.d.ts b/types/lodash-es/dropRight/index.d.ts deleted file mode 100644 index 8cbf725bba..0000000000 --- a/types/lodash-es/dropRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const dropRight: typeof _.dropRight; -export default dropRight; diff --git a/types/lodash-es/dropRightWhile.d.ts b/types/lodash-es/dropRightWhile.d.ts new file mode 100644 index 0000000000..b9fa49e679 --- /dev/null +++ b/types/lodash-es/dropRightWhile.d.ts @@ -0,0 +1,2 @@ +import { dropRightWhile } from "lodash"; +export default dropRightWhile; diff --git a/types/lodash-es/dropRightWhile/index.d.ts b/types/lodash-es/dropRightWhile/index.d.ts deleted file mode 100644 index a9c18bdde1..0000000000 --- a/types/lodash-es/dropRightWhile/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const dropRightWhile: typeof _.dropRightWhile; -export default dropRightWhile; diff --git a/types/lodash-es/dropWhile.d.ts b/types/lodash-es/dropWhile.d.ts new file mode 100644 index 0000000000..acdf087eb2 --- /dev/null +++ b/types/lodash-es/dropWhile.d.ts @@ -0,0 +1,2 @@ +import { dropWhile } from "lodash"; +export default dropWhile; diff --git a/types/lodash-es/dropWhile/index.d.ts b/types/lodash-es/dropWhile/index.d.ts deleted file mode 100644 index 74ad0c260b..0000000000 --- a/types/lodash-es/dropWhile/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const dropWhile: typeof _.dropWhile; -export default dropWhile; diff --git a/types/lodash-es/each.d.ts b/types/lodash-es/each.d.ts new file mode 100644 index 0000000000..b24aeed1b8 --- /dev/null +++ b/types/lodash-es/each.d.ts @@ -0,0 +1,2 @@ +import { each } from "lodash"; +export default each; diff --git a/types/lodash-es/each/index.d.ts b/types/lodash-es/each/index.d.ts deleted file mode 100644 index ce8fe9ee6b..0000000000 --- a/types/lodash-es/each/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const each: typeof _.each; -export default each; diff --git a/types/lodash-es/eachRight.d.ts b/types/lodash-es/eachRight.d.ts new file mode 100644 index 0000000000..1916b2d6e1 --- /dev/null +++ b/types/lodash-es/eachRight.d.ts @@ -0,0 +1,2 @@ +import { eachRight } from "lodash"; +export default eachRight; diff --git a/types/lodash-es/eachRight/index.d.ts b/types/lodash-es/eachRight/index.d.ts deleted file mode 100644 index 12160067fb..0000000000 --- a/types/lodash-es/eachRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const eachRight: typeof _.eachRight; -export default eachRight; diff --git a/types/lodash-es/endsWith.d.ts b/types/lodash-es/endsWith.d.ts new file mode 100644 index 0000000000..e9ad4ad90d --- /dev/null +++ b/types/lodash-es/endsWith.d.ts @@ -0,0 +1,2 @@ +import { endsWith } from "lodash"; +export default endsWith; diff --git a/types/lodash-es/endsWith/index.d.ts b/types/lodash-es/endsWith/index.d.ts deleted file mode 100644 index d17582a9ca..0000000000 --- a/types/lodash-es/endsWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const endsWith: typeof _.endsWith; -export default endsWith; diff --git a/types/lodash-es/eq.d.ts b/types/lodash-es/eq.d.ts new file mode 100644 index 0000000000..0b1ebefcf7 --- /dev/null +++ b/types/lodash-es/eq.d.ts @@ -0,0 +1,2 @@ +import { eq } from "lodash"; +export default eq; diff --git a/types/lodash-es/eq/index.d.ts b/types/lodash-es/eq/index.d.ts deleted file mode 100644 index 96b4028265..0000000000 --- a/types/lodash-es/eq/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const eq: typeof _.eq; -export default eq; diff --git a/types/lodash-es/escape.d.ts b/types/lodash-es/escape.d.ts new file mode 100644 index 0000000000..785eda0f5d --- /dev/null +++ b/types/lodash-es/escape.d.ts @@ -0,0 +1,2 @@ +import { escape } from "lodash"; +export default escape; diff --git a/types/lodash-es/escape/index.d.ts b/types/lodash-es/escape/index.d.ts deleted file mode 100644 index 7dfe42a59d..0000000000 --- a/types/lodash-es/escape/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const escape: typeof _.escape; -export default escape; diff --git a/types/lodash-es/escapeRegExp.d.ts b/types/lodash-es/escapeRegExp.d.ts new file mode 100644 index 0000000000..1ade157d03 --- /dev/null +++ b/types/lodash-es/escapeRegExp.d.ts @@ -0,0 +1,2 @@ +import { escapeRegExp } from "lodash"; +export default escapeRegExp; diff --git a/types/lodash-es/escapeRegExp/index.d.ts b/types/lodash-es/escapeRegExp/index.d.ts deleted file mode 100644 index 03a6c3b212..0000000000 --- a/types/lodash-es/escapeRegExp/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const escapeRegExp: typeof _.escapeRegExp; -export default escapeRegExp; diff --git a/types/lodash-es/every.d.ts b/types/lodash-es/every.d.ts new file mode 100644 index 0000000000..5a8f0543a8 --- /dev/null +++ b/types/lodash-es/every.d.ts @@ -0,0 +1,2 @@ +import { every } from "lodash"; +export default every; diff --git a/types/lodash-es/every/index.d.ts b/types/lodash-es/every/index.d.ts deleted file mode 100644 index f101e06ef1..0000000000 --- a/types/lodash-es/every/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const every: typeof _.every; -export default every; diff --git a/types/lodash-es/extend.d.ts b/types/lodash-es/extend.d.ts new file mode 100644 index 0000000000..37f3b904d4 --- /dev/null +++ b/types/lodash-es/extend.d.ts @@ -0,0 +1,2 @@ +import { extend } from "lodash"; +export default extend; diff --git a/types/lodash-es/extend/index.d.ts b/types/lodash-es/extend/index.d.ts deleted file mode 100644 index 0fefaee444..0000000000 --- a/types/lodash-es/extend/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const extend: typeof _.extend; -export default extend; diff --git a/types/lodash-es/extendWith.d.ts b/types/lodash-es/extendWith.d.ts new file mode 100644 index 0000000000..50895ebe8c --- /dev/null +++ b/types/lodash-es/extendWith.d.ts @@ -0,0 +1,2 @@ +import { extendWith } from "lodash"; +export default extendWith; diff --git a/types/lodash-es/extendWith/index.d.ts b/types/lodash-es/extendWith/index.d.ts deleted file mode 100644 index 43f7f30a90..0000000000 --- a/types/lodash-es/extendWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const extendWith: typeof _.extendWith; -export default extendWith; diff --git a/types/lodash-es/fb/index.d.ts b/types/lodash-es/fb/index.d.ts deleted file mode 100644 index 9c0c66123e..0000000000 --- a/types/lodash-es/fb/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import * as _ from "lodash"; -export default _; diff --git a/types/lodash-es/fill.d.ts b/types/lodash-es/fill.d.ts new file mode 100644 index 0000000000..c0022407f5 --- /dev/null +++ b/types/lodash-es/fill.d.ts @@ -0,0 +1,2 @@ +import { fill } from "lodash"; +export default fill; diff --git a/types/lodash-es/fill/index.d.ts b/types/lodash-es/fill/index.d.ts deleted file mode 100644 index 6cc7fcdb08..0000000000 --- a/types/lodash-es/fill/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const fill: typeof _.fill; -export default fill; diff --git a/types/lodash-es/filter.d.ts b/types/lodash-es/filter.d.ts new file mode 100644 index 0000000000..1c532dae3c --- /dev/null +++ b/types/lodash-es/filter.d.ts @@ -0,0 +1,2 @@ +import { filter } from "lodash"; +export default filter; diff --git a/types/lodash-es/filter/index.d.ts b/types/lodash-es/filter/index.d.ts deleted file mode 100644 index 4ef8e09dca..0000000000 --- a/types/lodash-es/filter/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const filter: typeof _.filter; -export default filter; diff --git a/types/lodash-es/find.d.ts b/types/lodash-es/find.d.ts new file mode 100644 index 0000000000..1a3bf88c87 --- /dev/null +++ b/types/lodash-es/find.d.ts @@ -0,0 +1,2 @@ +import { find } from "lodash"; +export default find; diff --git a/types/lodash-es/find/index.d.ts b/types/lodash-es/find/index.d.ts deleted file mode 100644 index 6d7f0ccf51..0000000000 --- a/types/lodash-es/find/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const find: typeof _.find; -export default find; diff --git a/types/lodash-es/findIndex.d.ts b/types/lodash-es/findIndex.d.ts new file mode 100644 index 0000000000..c2a83402fd --- /dev/null +++ b/types/lodash-es/findIndex.d.ts @@ -0,0 +1,2 @@ +import { findIndex } from "lodash"; +export default findIndex; diff --git a/types/lodash-es/findIndex/index.d.ts b/types/lodash-es/findIndex/index.d.ts deleted file mode 100644 index 618ad93d7d..0000000000 --- a/types/lodash-es/findIndex/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const findIndex: typeof _.findIndex; -export default findIndex; diff --git a/types/lodash-es/findKey.d.ts b/types/lodash-es/findKey.d.ts new file mode 100644 index 0000000000..10056c3f20 --- /dev/null +++ b/types/lodash-es/findKey.d.ts @@ -0,0 +1,2 @@ +import { findKey } from "lodash"; +export default findKey; diff --git a/types/lodash-es/findKey/index.d.ts b/types/lodash-es/findKey/index.d.ts deleted file mode 100644 index 370d80614f..0000000000 --- a/types/lodash-es/findKey/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const findKey: typeof _.findKey; -export default findKey; diff --git a/types/lodash-es/findLast.d.ts b/types/lodash-es/findLast.d.ts new file mode 100644 index 0000000000..6817a89530 --- /dev/null +++ b/types/lodash-es/findLast.d.ts @@ -0,0 +1,2 @@ +import { findLast } from "lodash"; +export default findLast; diff --git a/types/lodash-es/findLast/index.d.ts b/types/lodash-es/findLast/index.d.ts deleted file mode 100644 index e9e08d93c2..0000000000 --- a/types/lodash-es/findLast/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const findLast: typeof _.findLast; -export default findLast; diff --git a/types/lodash-es/findLastIndex.d.ts b/types/lodash-es/findLastIndex.d.ts new file mode 100644 index 0000000000..9e15cc9982 --- /dev/null +++ b/types/lodash-es/findLastIndex.d.ts @@ -0,0 +1,2 @@ +import { findLastIndex } from "lodash"; +export default findLastIndex; diff --git a/types/lodash-es/findLastIndex/index.d.ts b/types/lodash-es/findLastIndex/index.d.ts deleted file mode 100644 index a1fbecd823..0000000000 --- a/types/lodash-es/findLastIndex/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const findLastIndex: typeof _.findLastIndex; -export default findLastIndex; diff --git a/types/lodash-es/findLastKey.d.ts b/types/lodash-es/findLastKey.d.ts new file mode 100644 index 0000000000..45f7a2a8c8 --- /dev/null +++ b/types/lodash-es/findLastKey.d.ts @@ -0,0 +1,2 @@ +import { findLastKey } from "lodash"; +export default findLastKey; diff --git a/types/lodash-es/findLastKey/index.d.ts b/types/lodash-es/findLastKey/index.d.ts deleted file mode 100644 index 0e6e62fc91..0000000000 --- a/types/lodash-es/findLastKey/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const findLastKey: typeof _.findLastKey; -export default findLastKey; diff --git a/types/lodash-es/first.d.ts b/types/lodash-es/first.d.ts new file mode 100644 index 0000000000..b5c099e158 --- /dev/null +++ b/types/lodash-es/first.d.ts @@ -0,0 +1,2 @@ +import { first } from "lodash"; +export default first; diff --git a/types/lodash-es/first/index.d.ts b/types/lodash-es/first/index.d.ts deleted file mode 100644 index 96e9c74f0a..0000000000 --- a/types/lodash-es/first/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const first: typeof _.first; -export default first; diff --git a/types/lodash-es/flatMap.d.ts b/types/lodash-es/flatMap.d.ts new file mode 100644 index 0000000000..94cb00e3a9 --- /dev/null +++ b/types/lodash-es/flatMap.d.ts @@ -0,0 +1,2 @@ +import { flatMap } from "lodash"; +export default flatMap; diff --git a/types/lodash-es/flatMap/index.d.ts b/types/lodash-es/flatMap/index.d.ts deleted file mode 100644 index 76f335a594..0000000000 --- a/types/lodash-es/flatMap/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flatMap: typeof _.flatMap; -export default flatMap; diff --git a/types/lodash-es/flatten.d.ts b/types/lodash-es/flatten.d.ts new file mode 100644 index 0000000000..047811aa11 --- /dev/null +++ b/types/lodash-es/flatten.d.ts @@ -0,0 +1,2 @@ +import { flatten } from "lodash"; +export default flatten; diff --git a/types/lodash-es/flatten/index.d.ts b/types/lodash-es/flatten/index.d.ts deleted file mode 100644 index ddb4912ba9..0000000000 --- a/types/lodash-es/flatten/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flatten: typeof _.flatten; -export default flatten; diff --git a/types/lodash-es/flattenDeep.d.ts b/types/lodash-es/flattenDeep.d.ts new file mode 100644 index 0000000000..c87e97b28e --- /dev/null +++ b/types/lodash-es/flattenDeep.d.ts @@ -0,0 +1,2 @@ +import { flattenDeep } from "lodash"; +export default flattenDeep; diff --git a/types/lodash-es/flattenDeep/index.d.ts b/types/lodash-es/flattenDeep/index.d.ts deleted file mode 100644 index 803f501f1e..0000000000 --- a/types/lodash-es/flattenDeep/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flattenDeep: typeof _.flattenDeep; -export default flattenDeep; diff --git a/types/lodash-es/flattenDepth.d.ts b/types/lodash-es/flattenDepth.d.ts new file mode 100644 index 0000000000..e31e4046db --- /dev/null +++ b/types/lodash-es/flattenDepth.d.ts @@ -0,0 +1,2 @@ +import { flattenDepth } from "lodash"; +export default flattenDepth; diff --git a/types/lodash-es/flattenDepth/index.d.ts b/types/lodash-es/flattenDepth/index.d.ts deleted file mode 100644 index 245279040f..0000000000 --- a/types/lodash-es/flattenDepth/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flattenDepth: typeof _.flattenDepth; -export default flattenDepth; diff --git a/types/lodash-es/flip.d.ts b/types/lodash-es/flip.d.ts new file mode 100644 index 0000000000..00167b595f --- /dev/null +++ b/types/lodash-es/flip.d.ts @@ -0,0 +1,2 @@ +import { flip } from "lodash"; +export default flip; diff --git a/types/lodash-es/flip/index.d.ts b/types/lodash-es/flip/index.d.ts deleted file mode 100644 index 6cc5ecce00..0000000000 --- a/types/lodash-es/flip/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flip: typeof _.flip; -export default flip; diff --git a/types/lodash-es/floor.d.ts b/types/lodash-es/floor.d.ts new file mode 100644 index 0000000000..e21810b5b5 --- /dev/null +++ b/types/lodash-es/floor.d.ts @@ -0,0 +1,2 @@ +import { floor } from "lodash"; +export default floor; diff --git a/types/lodash-es/floor/index.d.ts b/types/lodash-es/floor/index.d.ts deleted file mode 100644 index 50f7092478..0000000000 --- a/types/lodash-es/floor/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const floor: typeof _.floor; -export default floor; diff --git a/types/lodash-es/flow.d.ts b/types/lodash-es/flow.d.ts new file mode 100644 index 0000000000..884b3888fc --- /dev/null +++ b/types/lodash-es/flow.d.ts @@ -0,0 +1,2 @@ +import { flow } from "lodash"; +export default flow; diff --git a/types/lodash-es/flow/index.d.ts b/types/lodash-es/flow/index.d.ts deleted file mode 100644 index 908ed2e2c4..0000000000 --- a/types/lodash-es/flow/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flow: typeof _.flow; -export default flow; diff --git a/types/lodash-es/flowRight.d.ts b/types/lodash-es/flowRight.d.ts new file mode 100644 index 0000000000..779383fde6 --- /dev/null +++ b/types/lodash-es/flowRight.d.ts @@ -0,0 +1,2 @@ +import { flowRight } from "lodash"; +export default flowRight; diff --git a/types/lodash-es/flowRight/index.d.ts b/types/lodash-es/flowRight/index.d.ts deleted file mode 100644 index c5f4158c80..0000000000 --- a/types/lodash-es/flowRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const flowRight: typeof _.flowRight; -export default flowRight; diff --git a/types/lodash-es/forEach.d.ts b/types/lodash-es/forEach.d.ts new file mode 100644 index 0000000000..1181ec08b0 --- /dev/null +++ b/types/lodash-es/forEach.d.ts @@ -0,0 +1,2 @@ +import { forEach } from "lodash"; +export default forEach; diff --git a/types/lodash-es/forEach/index.d.ts b/types/lodash-es/forEach/index.d.ts deleted file mode 100644 index 991075c50c..0000000000 --- a/types/lodash-es/forEach/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const forEach: typeof _.forEach; -export default forEach; diff --git a/types/lodash-es/forEachRight.d.ts b/types/lodash-es/forEachRight.d.ts new file mode 100644 index 0000000000..d80768c2f0 --- /dev/null +++ b/types/lodash-es/forEachRight.d.ts @@ -0,0 +1,2 @@ +import { forEachRight } from "lodash"; +export default forEachRight; diff --git a/types/lodash-es/forEachRight/index.d.ts b/types/lodash-es/forEachRight/index.d.ts deleted file mode 100644 index 98e60667c2..0000000000 --- a/types/lodash-es/forEachRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const forEachRight: typeof _.forEachRight; -export default forEachRight; diff --git a/types/lodash-es/forIn.d.ts b/types/lodash-es/forIn.d.ts new file mode 100644 index 0000000000..97b8a18c70 --- /dev/null +++ b/types/lodash-es/forIn.d.ts @@ -0,0 +1,2 @@ +import { forIn } from "lodash"; +export default forIn; diff --git a/types/lodash-es/forIn/index.d.ts b/types/lodash-es/forIn/index.d.ts deleted file mode 100644 index b94adeb90b..0000000000 --- a/types/lodash-es/forIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const forIn: typeof _.forIn; -export default forIn; diff --git a/types/lodash-es/forInRight.d.ts b/types/lodash-es/forInRight.d.ts new file mode 100644 index 0000000000..b7e27c8aed --- /dev/null +++ b/types/lodash-es/forInRight.d.ts @@ -0,0 +1,2 @@ +import { forInRight } from "lodash"; +export default forInRight; diff --git a/types/lodash-es/forInRight/index.d.ts b/types/lodash-es/forInRight/index.d.ts deleted file mode 100644 index ae7257e4b6..0000000000 --- a/types/lodash-es/forInRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const forInRight: typeof _.forInRight; -export default forInRight; diff --git a/types/lodash-es/forOwn.d.ts b/types/lodash-es/forOwn.d.ts new file mode 100644 index 0000000000..3f2700efc2 --- /dev/null +++ b/types/lodash-es/forOwn.d.ts @@ -0,0 +1,2 @@ +import { forOwn } from "lodash"; +export default forOwn; diff --git a/types/lodash-es/forOwn/index.d.ts b/types/lodash-es/forOwn/index.d.ts deleted file mode 100644 index 9c206fd5a9..0000000000 --- a/types/lodash-es/forOwn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const forOwn: typeof _.forOwn; -export default forOwn; diff --git a/types/lodash-es/forOwnRight.d.ts b/types/lodash-es/forOwnRight.d.ts new file mode 100644 index 0000000000..3f44678744 --- /dev/null +++ b/types/lodash-es/forOwnRight.d.ts @@ -0,0 +1,2 @@ +import { forOwnRight } from "lodash"; +export default forOwnRight; diff --git a/types/lodash-es/forOwnRight/index.d.ts b/types/lodash-es/forOwnRight/index.d.ts deleted file mode 100644 index 5874b6c70e..0000000000 --- a/types/lodash-es/forOwnRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const forOwnRight: typeof _.forOwnRight; -export default forOwnRight; diff --git a/types/lodash-es/fromPairs.d.ts b/types/lodash-es/fromPairs.d.ts new file mode 100644 index 0000000000..53ddaee479 --- /dev/null +++ b/types/lodash-es/fromPairs.d.ts @@ -0,0 +1,2 @@ +import { fromPairs } from "lodash"; +export default fromPairs; diff --git a/types/lodash-es/fromPairs/index.d.ts b/types/lodash-es/fromPairs/index.d.ts deleted file mode 100644 index a6446bff6f..0000000000 --- a/types/lodash-es/fromPairs/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const fromPairs: typeof _.fromPairs; -export default fromPairs; diff --git a/types/lodash-es/functions.d.ts b/types/lodash-es/functions.d.ts new file mode 100644 index 0000000000..d3f60bc19d --- /dev/null +++ b/types/lodash-es/functions.d.ts @@ -0,0 +1,2 @@ +import { functions } from "lodash"; +export default functions; diff --git a/types/lodash-es/functions/index.d.ts b/types/lodash-es/functions/index.d.ts deleted file mode 100644 index 18f6e34ce3..0000000000 --- a/types/lodash-es/functions/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const functions: typeof _.functions; -export default functions; diff --git a/types/lodash-es/functionsIn.d.ts b/types/lodash-es/functionsIn.d.ts new file mode 100644 index 0000000000..aeab44b263 --- /dev/null +++ b/types/lodash-es/functionsIn.d.ts @@ -0,0 +1,2 @@ +import { functionsIn } from "lodash"; +export default functionsIn; diff --git a/types/lodash-es/functionsIn/index.d.ts b/types/lodash-es/functionsIn/index.d.ts deleted file mode 100644 index b702c836ae..0000000000 --- a/types/lodash-es/functionsIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const functionsIn: typeof _.functionsIn; -export default functionsIn; diff --git a/types/lodash-es/get.d.ts b/types/lodash-es/get.d.ts new file mode 100644 index 0000000000..b2660029b7 --- /dev/null +++ b/types/lodash-es/get.d.ts @@ -0,0 +1,2 @@ +import { get } from "lodash"; +export default get; diff --git a/types/lodash-es/get/index.d.ts b/types/lodash-es/get/index.d.ts deleted file mode 100644 index 6a20d96558..0000000000 --- a/types/lodash-es/get/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const get: typeof _.get; -export default get; diff --git a/types/lodash-es/groupBy.d.ts b/types/lodash-es/groupBy.d.ts new file mode 100644 index 0000000000..bcaaa43dec --- /dev/null +++ b/types/lodash-es/groupBy.d.ts @@ -0,0 +1,2 @@ +import { groupBy } from "lodash"; +export default groupBy; diff --git a/types/lodash-es/groupBy/index.d.ts b/types/lodash-es/groupBy/index.d.ts deleted file mode 100644 index df50c25eeb..0000000000 --- a/types/lodash-es/groupBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const groupBy: typeof _.groupBy; -export default groupBy; diff --git a/types/lodash-es/gt.d.ts b/types/lodash-es/gt.d.ts new file mode 100644 index 0000000000..eb67359663 --- /dev/null +++ b/types/lodash-es/gt.d.ts @@ -0,0 +1,2 @@ +import { gt } from "lodash"; +export default gt; diff --git a/types/lodash-es/gt/index.d.ts b/types/lodash-es/gt/index.d.ts deleted file mode 100644 index ae4e05da15..0000000000 --- a/types/lodash-es/gt/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const gt: typeof _.gt; -export default gt; diff --git a/types/lodash-es/gte.d.ts b/types/lodash-es/gte.d.ts new file mode 100644 index 0000000000..a8b848d315 --- /dev/null +++ b/types/lodash-es/gte.d.ts @@ -0,0 +1,2 @@ +import { gte } from "lodash"; +export default gte; diff --git a/types/lodash-es/gte/index.d.ts b/types/lodash-es/gte/index.d.ts deleted file mode 100644 index 49aeca418a..0000000000 --- a/types/lodash-es/gte/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const gte: typeof _.gte; -export default gte; diff --git a/types/lodash-es/has.d.ts b/types/lodash-es/has.d.ts new file mode 100644 index 0000000000..34c777040c --- /dev/null +++ b/types/lodash-es/has.d.ts @@ -0,0 +1,2 @@ +import { has } from "lodash"; +export default has; diff --git a/types/lodash-es/has/index.d.ts b/types/lodash-es/has/index.d.ts deleted file mode 100644 index d8ef1a756c..0000000000 --- a/types/lodash-es/has/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const has: typeof _.has; -export default has; diff --git a/types/lodash-es/hasIn.d.ts b/types/lodash-es/hasIn.d.ts new file mode 100644 index 0000000000..c2f241f2db --- /dev/null +++ b/types/lodash-es/hasIn.d.ts @@ -0,0 +1,2 @@ +import { hasIn } from "lodash"; +export default hasIn; diff --git a/types/lodash-es/hasIn/index.d.ts b/types/lodash-es/hasIn/index.d.ts deleted file mode 100644 index 5451c19bc9..0000000000 --- a/types/lodash-es/hasIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const hasIn: typeof _.hasIn; -export default hasIn; diff --git a/types/lodash-es/head.d.ts b/types/lodash-es/head.d.ts new file mode 100644 index 0000000000..b6de8480b7 --- /dev/null +++ b/types/lodash-es/head.d.ts @@ -0,0 +1,2 @@ +import { head } from "lodash"; +export default head; diff --git a/types/lodash-es/head/index.d.ts b/types/lodash-es/head/index.d.ts deleted file mode 100644 index af8323559a..0000000000 --- a/types/lodash-es/head/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const head: typeof _.head; -export default head; diff --git a/types/lodash-es/identity.d.ts b/types/lodash-es/identity.d.ts new file mode 100644 index 0000000000..9cfd1a3927 --- /dev/null +++ b/types/lodash-es/identity.d.ts @@ -0,0 +1,2 @@ +import { identity } from "lodash"; +export default identity; diff --git a/types/lodash-es/identity/index.d.ts b/types/lodash-es/identity/index.d.ts deleted file mode 100644 index 4933422107..0000000000 --- a/types/lodash-es/identity/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const identity: typeof _.identity; -export default identity; diff --git a/types/lodash-es/inRange.d.ts b/types/lodash-es/inRange.d.ts new file mode 100644 index 0000000000..37ff527b3a --- /dev/null +++ b/types/lodash-es/inRange.d.ts @@ -0,0 +1,2 @@ +import { inRange } from "lodash"; +export default inRange; diff --git a/types/lodash-es/inRange/index.d.ts b/types/lodash-es/inRange/index.d.ts deleted file mode 100644 index 4c3e56ddf9..0000000000 --- a/types/lodash-es/inRange/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const inRange: typeof _.inRange; -export default inRange; diff --git a/types/lodash-es/includes.d.ts b/types/lodash-es/includes.d.ts new file mode 100644 index 0000000000..304cc6f677 --- /dev/null +++ b/types/lodash-es/includes.d.ts @@ -0,0 +1,2 @@ +import { includes } from "lodash"; +export default includes; diff --git a/types/lodash-es/includes/index.d.ts b/types/lodash-es/includes/index.d.ts deleted file mode 100644 index 09c694b13a..0000000000 --- a/types/lodash-es/includes/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const includes: typeof _.includes; -export default includes; diff --git a/types/lodash-es/index.d.ts b/types/lodash-es/index.d.ts index 71b8f81027..08964fa17f 100644 --- a/types/lodash-es/index.d.ts +++ b/types/lodash-es/index.d.ts @@ -1,289 +1,295 @@ -// Type definitions for Lo-Dash-es 4.14 +// Type definitions for lodash-es 4.14 // Project: http://lodash.com/ // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 -export { default as add } from './add'; -export { default as after } from './after'; -export { default as ary } from './ary'; -export { default as assign } from './assign'; -export { default as assignIn } from './assignIn'; -export { default as assignInWith } from './assignInWith'; -export { default as assignWith } from './assignWith'; -export { default as at } from './at'; -export { default as attempt } from './attempt'; -export { default as before } from './before'; -export { default as bind } from './bind'; -export { default as bindAll } from './bindAll'; -export { default as bindKey } from './bindKey'; -export { default as camelCase } from './camelCase'; -export { default as capitalize } from './capitalize'; -export { default as castArray } from './castArray'; -export { default as ceil } from './ceil'; -export { default as chain } from './chain'; -export { default as chunk } from './chunk'; -export { default as clamp } from './clamp'; -export { default as clone } from './clone'; -export { default as cloneDeep } from './cloneDeep'; -export { default as cloneDeepWith } from './cloneDeepWith'; -export { default as cloneWith } from './cloneWith'; -export { default as compact } from './compact'; -export { default as concat } from './concat'; -export { default as constant } from './constant'; -export { default as countBy } from './countBy'; -export { default as create } from './create'; -export { default as curry } from './curry'; -export { default as curryRight } from './curryRight'; -export { default as debounce } from './debounce'; -export { default as deburr } from './deburr'; -export { default as defaults } from './defaults'; -export { default as defaultsDeep } from './defaultsDeep'; -export { default as defer } from './defer'; -export { default as delay } from './delay'; -export { default as difference } from './difference'; -export { default as differenceBy } from './differenceBy'; -export { default as differenceWith } from './differenceWith'; -export { default as drop } from './drop'; -export { default as dropRight } from './dropRight'; -export { default as dropRightWhile } from './dropRightWhile'; -export { default as dropWhile } from './dropWhile'; -export { default as each } from './each'; -export { default as eachRight } from './eachRight'; -export { default as endsWith } from './endsWith'; -export { default as eq } from './eq'; -export { default as escape } from './escape'; -export { default as escapeRegExp } from './escapeRegExp'; -export { default as every } from './every'; -export { default as extend } from './extend'; -export { default as extendWith } from './extendWith'; -export { default as fill } from './fill'; -export { default as filter } from './filter'; -export { default as find } from './find'; -export { default as findIndex } from './findIndex'; -export { default as findKey } from './findKey'; -export { default as findLast } from './findLast'; -export { default as findLastIndex } from './findLastIndex'; -export { default as findLastKey } from './findLastKey'; -export { default as first } from './first'; -export { default as flatMap } from './flatMap'; -export { default as flatten } from './flatten'; -export { default as flattenDeep } from './flattenDeep'; -export { default as flattenDepth } from './flattenDepth'; -export { default as flip } from './flip'; -export { default as floor } from './floor'; -export { default as flow } from './flow'; -export { default as flowRight } from './flowRight'; -export { default as forEach } from './forEach'; -export { default as forEachRight } from './forEachRight'; -export { default as forIn } from './forIn'; -export { default as forInRight } from './forInRight'; -export { default as forOwn } from './forOwn'; -export { default as forOwnRight } from './forOwnRight'; -export { default as fromPairs } from './fromPairs'; -export { default as functions } from './functions'; -export { default as functionsIn } from './functionsIn'; -export { default as get } from './get'; -export { default as groupBy } from './groupBy'; -export { default as gt } from './gt'; -export { default as gte } from './gte'; -export { default as has } from './has'; -export { default as hasIn } from './hasIn'; -export { default as head } from './head'; -export { default as identity } from './identity'; -export { default as inRange } from './inRange'; -export { default as includes } from './includes'; -export { default as indexOf } from './indexOf'; -export { default as initial } from './initial'; -export { default as intersection } from './intersection'; -export { default as intersectionBy } from './intersectionBy'; -export { default as intersectionWith } from './intersectionWith'; -export { default as invert } from './invert'; -export { default as invertBy } from './invertBy'; -export { default as invoke } from './invoke'; -export { default as invokeMap } from './invokeMap'; -export { default as isArguments } from './isArguments'; -export { default as isArray } from './isArray'; -export { default as isArrayBuffer } from './isArrayBuffer'; -export { default as isArrayLike } from './isArrayLike'; -export { default as isArrayLikeObject } from './isArrayLikeObject'; -export { default as isBoolean } from './isBoolean'; -export { default as isBuffer } from './isBuffer'; -export { default as isDate } from './isDate'; -export { default as isElement } from './isElement'; -export { default as isEmpty } from './isEmpty'; -export { default as isEqual } from './isEqual'; -export { default as isEqualWith } from './isEqualWith'; -export { default as isError } from './isError'; -export { default as isFinite } from './isFinite'; -export { default as isFunction } from './isFunction'; -export { default as isInteger } from './isInteger'; -export { default as isLength } from './isLength'; -export { default as isMap } from './isMap'; -export { default as isMatch } from './isMatch'; -export { default as isMatchWith } from './isMatchWith'; -export { default as isNaN } from './isNaN'; -export { default as isNative } from './isNative'; -export { default as isNil } from './isNil'; -export { default as isNull } from './isNull'; -export { default as isNumber } from './isNumber'; -export { default as isObject } from './isObject'; -export { default as isObjectLike } from './isObjectLike'; -export { default as isPlainObject } from './isPlainObject'; -export { default as isRegExp } from './isRegExp'; -export { default as isSafeInteger } from './isSafeInteger'; -export { default as isSet } from './isSet'; -export { default as isString } from './isString'; -export { default as isSymbol } from './isSymbol'; -export { default as isTypedArray } from './isTypedArray'; -export { default as isUndefined } from './isUndefined'; -export { default as isWeakMap } from './isWeakMap'; -export { default as isWeakSet } from './isWeakSet'; -export { default as iteratee } from './iteratee'; -export { default as join } from './join'; -export { default as kebabCase } from './kebabCase'; -export { default as keyBy } from './keyBy'; -export { default as keys } from './keys'; -export { default as keysIn } from './keysIn'; -export { default as last } from './last'; -export { default as lastIndexOf } from './lastIndexOf'; -export { default as lowerCase } from './lowerCase'; -export { default as lowerFirst } from './lowerFirst'; -export { default as lt } from './lt'; -export { default as lte } from './lte'; -export { default as map } from './map'; -export { default as mapKeys } from './mapKeys'; -export { default as mapValues } from './mapValues'; -export { default as matches } from './matches'; -export { default as matchesProperty } from './matchesProperty'; -export { default as max } from './max'; -export { default as maxBy } from './maxBy'; -export { default as mean } from './mean'; -export { default as meanBy } from './meanBy'; -export { default as memoize } from './memoize'; -export { default as merge } from './merge'; -export { default as mergeWith } from './mergeWith'; -export { default as method } from './method'; -export { default as methodOf } from './methodOf'; -export { default as min } from './min'; -export { default as minBy } from './minBy'; -export { default as mixin } from './mixin'; -export { default as negate } from './negate'; -export { default as noop } from './noop'; -export { default as now } from './now'; -export { default as nthArg } from './nthArg'; -export { default as omit } from './omit'; -export { default as omitBy } from './omitBy'; -export { default as once } from './once'; -export { default as orderBy } from './orderBy'; -export { default as over } from './over'; -export { default as overArgs } from './overArgs'; -export { default as overEvery } from './overEvery'; -export { default as overSome } from './overSome'; -export { default as pad } from './pad'; -export { default as padEnd } from './padEnd'; -export { default as padStart } from './padStart'; -export { default as parseInt } from './parseInt'; -export { default as partial } from './partial'; -export { default as partialRight } from './partialRight'; -export { default as partition } from './partition'; -export { default as pick } from './pick'; -export { default as pickBy } from './pickBy'; -export { default as property } from './property'; -export { default as propertyOf } from './propertyOf'; -export { default as pull } from './pull'; -export { default as pullAll } from './pullAll'; -export { default as pullAllBy } from './pullAllBy'; -export { default as pullAt } from './pullAt'; -export { default as random } from './random'; -export { default as range } from './range'; -export { default as rangeRight } from './rangeRight'; -export { default as rearg } from './rearg'; -export { default as reduce } from './reduce'; -export { default as reduceRight } from './reduceRight'; -export { default as reject } from './reject'; -export { default as remove } from './remove'; -export { default as repeat } from './repeat'; -export { default as replace } from './replace'; -export { default as rest } from './rest'; -export { default as result } from './result'; -export { default as reverse } from './reverse'; -export { default as round } from './round'; -export { default as sample } from './sample'; -export { default as sampleSize } from './sampleSize'; -export { default as set } from './set'; -export { default as setWith } from './setWith'; -export { default as shuffle } from './shuffle'; -export { default as size } from './size'; -export { default as slice } from './slice'; -export { default as snakeCase } from './snakeCase'; -export { default as some } from './some'; -export { default as sortBy } from './sortBy'; -export { default as sortedIndex } from './sortedIndex'; -export { default as sortedIndexBy } from './sortedIndexBy'; -export { default as sortedIndexOf } from './sortedIndexOf'; -export { default as sortedLastIndex } from './sortedLastIndex'; -export { default as sortedLastIndexBy } from './sortedLastIndexBy'; -export { default as sortedLastIndexOf } from './sortedLastIndexOf'; -export { default as sortedUniq } from './sortedUniq'; -export { default as sortedUniqBy } from './sortedUniqBy'; -export { default as split } from './split'; -export { default as spread } from './spread'; -export { default as startCase } from './startCase'; -export { default as startsWith } from './startsWith'; -export { default as subtract } from './subtract'; -export { default as sum } from './sum'; -export { default as sumBy } from './sumBy'; -export { default as tail } from './tail'; -export { default as take } from './take'; -export { default as takeRight } from './takeRight'; -export { default as takeRightWhile } from './takeRightWhile'; -export { default as takeWhile } from './takeWhile'; -export { default as tap } from './tap'; -export { default as template } from './template'; -export { default as throttle } from './throttle'; -export { default as thru } from './thru'; -export { default as times } from './times'; -export { default as toArray } from './toArray'; -export { default as toInteger } from './toInteger'; -export { default as toLength } from './toLength'; -export { default as toLower } from './toLower'; -export { default as toNumber } from './toNumber'; -export { default as toPairs } from './toPairs'; -export { default as toPairsIn } from './toPairsIn'; -export { default as toPath } from './toPath'; -export { default as toPlainObject } from './toPlainObject'; -export { default as toSafeInteger } from './toSafeInteger'; -export { default as toString } from './toString'; -export { default as toUpper } from './toUpper'; -export { default as transform } from './transform'; -export { default as trim } from './trim'; -export { default as trimEnd } from './trimEnd'; -export { default as trimStart } from './trimStart'; -export { default as truncate } from './truncate'; -export { default as unary } from './unary'; -export { default as unescape } from './unescape'; -export { default as union } from './union'; -export { default as unionBy } from './unionBy'; -export { default as unionWith } from './unionWith'; -export { default as uniq } from './uniq'; -export { default as uniqBy } from './uniqBy'; -export { default as uniqWith } from './uniqWith'; -export { default as uniqueId } from './uniqueId'; -export { default as unset } from './unset'; -export { default as unzip } from './unzip'; -export { default as unzipWith } from './unzipWith'; -export { default as update } from './update'; -export { default as upperCase } from './upperCase'; -export { default as upperFirst } from './upperFirst'; -export { default as values } from './values'; -export { default as valuesIn } from './valuesIn'; -export { default as without } from './without'; -export { default as words } from './words'; -export { default as wrap } from './wrap'; -export { default as xor } from './xor'; -export { default as xorBy } from './xorBy'; -export { default as xorWith } from './xorWith'; -export { default as zip } from './zip'; -export { default as zipObject } from './zipObject'; -export { default as zipWith } from './zipWith'; +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +export { + add, + after, + ary, + assign, + assignIn, + assignInWith, + assignWith, + at, + attempt, + before, + bind, + bindAll, + bindKey, + camelCase, + capitalize, + castArray, + ceil, + chain, + chunk, + clamp, + clone, + cloneDeep, + cloneDeepWith, + cloneWith, + compact, + concat, + constant, + countBy, + create, + curry, + curryRight, + debounce, + deburr, + defaults, + defaultsDeep, + defer, + delay, + difference, + differenceBy, + differenceWith, + drop, + dropRight, + dropRightWhile, + dropWhile, + each, + eachRight, + endsWith, + eq, + escape, + escapeRegExp, + every, + extend, + extendWith, + fill, + filter, + find, + findIndex, + findKey, + findLast, + findLastIndex, + findLastKey, + first, + flatMap, + flatten, + flattenDeep, + flattenDepth, + flip, + floor, + flow, + flowRight, + forEach, + forEachRight, + forIn, + forInRight, + forOwn, + forOwnRight, + fromPairs, + functions, + functionsIn, + get, + groupBy, + gt, + gte, + has, + hasIn, + head, + identity, + inRange, + includes, + indexOf, + initial, + intersection, + intersectionBy, + intersectionWith, + invert, + invertBy, + invoke, + invokeMap, + isArguments, + isArray, + isArrayBuffer, + isArrayLike, + isArrayLikeObject, + isBoolean, + isBuffer, + isDate, + isElement, + isEmpty, + isEqual, + isEqualWith, + isError, + isFinite, + isFunction, + isInteger, + isLength, + isMap, + isMatch, + isMatchWith, + isNaN, + isNative, + isNil, + isNull, + isNumber, + isObject, + isObjectLike, + isPlainObject, + isRegExp, + isSafeInteger, + isSet, + isString, + isSymbol, + isTypedArray, + isUndefined, + isWeakMap, + isWeakSet, + iteratee, + join, + kebabCase, + keyBy, + keys, + keysIn, + last, + lastIndexOf, + lowerCase, + lowerFirst, + lt, + lte, + map, + mapKeys, + mapValues, + matches, + matchesProperty, + max, + maxBy, + mean, + meanBy, + memoize, + merge, + mergeWith, + method, + methodOf, + min, + minBy, + mixin, + negate, + noConflict, + noop, + now, + nthArg, + omit, + omitBy, + once, + orderBy, + over, + overArgs, + overEvery, + overSome, + pad, + padEnd, + padStart, + parseInt, + partial, + partialRight, + partition, + pick, + pickBy, + property, + propertyOf, + pull, + pullAll, + pullAllBy, + pullAt, + random, + range, + rangeRight, + rearg, + reduce, + reduceRight, + reject, + remove, + repeat, + replace, + rest, + result, + reverse, + round, + runInContext, + sample, + sampleSize, + set, + setWith, + shuffle, + size, + slice, + snakeCase, + some, + sortBy, + sortedIndex, + sortedIndexBy, + sortedIndexOf, + sortedLastIndex, + sortedLastIndexBy, + sortedLastIndexOf, + sortedUniq, + sortedUniqBy, + split, + spread, + startCase, + startsWith, + subtract, + sum, + sumBy, + tail, + take, + takeRight, + takeRightWhile, + takeWhile, + tap, + template, + throttle, + thru, + times, + toArray, + toInteger, + toLength, + toLower, + toNumber, + toPairs, + toPairsIn, + toPath, + toPlainObject, + toSafeInteger, + toString, + toUpper, + transform, + trim, + trimEnd, + trimStart, + truncate, + unary, + unescape, + union, + unionBy, + unionWith, + uniq, + uniqBy, + uniqWith, + uniqueId, + unset, + unzip, + unzipWith, + update, + upperCase, + upperFirst, + values, + valuesIn, + without, + words, + wrap, + xor, + xorBy, + xorWith, + zip, + zipObject, + zipWith +} from "lodash"; diff --git a/types/lodash-es/indexOf.d.ts b/types/lodash-es/indexOf.d.ts new file mode 100644 index 0000000000..f142b9574e --- /dev/null +++ b/types/lodash-es/indexOf.d.ts @@ -0,0 +1,2 @@ +import { indexOf } from "lodash"; +export default indexOf; diff --git a/types/lodash-es/indexOf/index.d.ts b/types/lodash-es/indexOf/index.d.ts deleted file mode 100644 index e10f425449..0000000000 --- a/types/lodash-es/indexOf/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const indexOf: typeof _.indexOf; -export default indexOf; diff --git a/types/lodash-es/initial.d.ts b/types/lodash-es/initial.d.ts new file mode 100644 index 0000000000..4c3c495af7 --- /dev/null +++ b/types/lodash-es/initial.d.ts @@ -0,0 +1,2 @@ +import { initial } from "lodash"; +export default initial; diff --git a/types/lodash-es/initial/index.d.ts b/types/lodash-es/initial/index.d.ts deleted file mode 100644 index e853918f3d..0000000000 --- a/types/lodash-es/initial/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const initial: typeof _.initial; -export default initial; diff --git a/types/lodash-es/intersection.d.ts b/types/lodash-es/intersection.d.ts new file mode 100644 index 0000000000..19ec72bed6 --- /dev/null +++ b/types/lodash-es/intersection.d.ts @@ -0,0 +1,2 @@ +import { intersection } from "lodash"; +export default intersection; diff --git a/types/lodash-es/intersection/index.d.ts b/types/lodash-es/intersection/index.d.ts deleted file mode 100644 index 8c92aa0c98..0000000000 --- a/types/lodash-es/intersection/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const intersection: typeof _.intersection; -export default intersection; diff --git a/types/lodash-es/intersectionBy.d.ts b/types/lodash-es/intersectionBy.d.ts new file mode 100644 index 0000000000..c0365af089 --- /dev/null +++ b/types/lodash-es/intersectionBy.d.ts @@ -0,0 +1,2 @@ +import { intersectionBy } from "lodash"; +export default intersectionBy; diff --git a/types/lodash-es/intersectionBy/index.d.ts b/types/lodash-es/intersectionBy/index.d.ts deleted file mode 100644 index ec19a42859..0000000000 --- a/types/lodash-es/intersectionBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const intersectionBy: typeof _.intersectionBy; -export default intersectionBy; diff --git a/types/lodash-es/intersectionWith.d.ts b/types/lodash-es/intersectionWith.d.ts new file mode 100644 index 0000000000..a44945168d --- /dev/null +++ b/types/lodash-es/intersectionWith.d.ts @@ -0,0 +1,2 @@ +import { intersectionWith } from "lodash"; +export default intersectionWith; diff --git a/types/lodash-es/intersectionWith/index.d.ts b/types/lodash-es/intersectionWith/index.d.ts deleted file mode 100644 index 19bc6f5e3e..0000000000 --- a/types/lodash-es/intersectionWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const intersectionWith: typeof _.intersectionWith; -export default intersectionWith; diff --git a/types/lodash-es/invert.d.ts b/types/lodash-es/invert.d.ts new file mode 100644 index 0000000000..676bf311f2 --- /dev/null +++ b/types/lodash-es/invert.d.ts @@ -0,0 +1,2 @@ +import { invert } from "lodash"; +export default invert; diff --git a/types/lodash-es/invert/index.d.ts b/types/lodash-es/invert/index.d.ts deleted file mode 100644 index 8cdab06a08..0000000000 --- a/types/lodash-es/invert/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const invert: typeof _.invert; -export default invert; diff --git a/types/lodash-es/invertBy.d.ts b/types/lodash-es/invertBy.d.ts new file mode 100644 index 0000000000..0ce25bbf57 --- /dev/null +++ b/types/lodash-es/invertBy.d.ts @@ -0,0 +1,2 @@ +import { invertBy } from "lodash"; +export default invertBy; diff --git a/types/lodash-es/invertBy/index.d.ts b/types/lodash-es/invertBy/index.d.ts deleted file mode 100644 index c2e414940f..0000000000 --- a/types/lodash-es/invertBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const invertBy: typeof _.invertBy; -export default invertBy; diff --git a/types/lodash-es/invoke.d.ts b/types/lodash-es/invoke.d.ts new file mode 100644 index 0000000000..64560b36af --- /dev/null +++ b/types/lodash-es/invoke.d.ts @@ -0,0 +1,2 @@ +import { invoke } from "lodash"; +export default invoke; diff --git a/types/lodash-es/invoke/index.d.ts b/types/lodash-es/invoke/index.d.ts deleted file mode 100644 index acd47aee19..0000000000 --- a/types/lodash-es/invoke/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const invoke: typeof _.invoke; -export default invoke; diff --git a/types/lodash-es/invokeMap.d.ts b/types/lodash-es/invokeMap.d.ts new file mode 100644 index 0000000000..893684e162 --- /dev/null +++ b/types/lodash-es/invokeMap.d.ts @@ -0,0 +1,2 @@ +import { invokeMap } from "lodash"; +export default invokeMap; diff --git a/types/lodash-es/invokeMap/index.d.ts b/types/lodash-es/invokeMap/index.d.ts deleted file mode 100644 index 7f25853341..0000000000 --- a/types/lodash-es/invokeMap/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const invokeMap: typeof _.invokeMap; -export default invokeMap; diff --git a/types/lodash-es/isArguments.d.ts b/types/lodash-es/isArguments.d.ts new file mode 100644 index 0000000000..199b124434 --- /dev/null +++ b/types/lodash-es/isArguments.d.ts @@ -0,0 +1,2 @@ +import { isArguments } from "lodash"; +export default isArguments; diff --git a/types/lodash-es/isArguments/index.d.ts b/types/lodash-es/isArguments/index.d.ts deleted file mode 100644 index ea8d55a68a..0000000000 --- a/types/lodash-es/isArguments/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isArguments: typeof _.isArguments; -export default isArguments; diff --git a/types/lodash-es/isArray.d.ts b/types/lodash-es/isArray.d.ts new file mode 100644 index 0000000000..9f2315e286 --- /dev/null +++ b/types/lodash-es/isArray.d.ts @@ -0,0 +1,2 @@ +import { isArray } from "lodash"; +export default isArray; diff --git a/types/lodash-es/isArray/index.d.ts b/types/lodash-es/isArray/index.d.ts deleted file mode 100644 index e34b49878f..0000000000 --- a/types/lodash-es/isArray/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isArray: typeof _.isArray; -export default isArray; diff --git a/types/lodash-es/isArrayBuffer.d.ts b/types/lodash-es/isArrayBuffer.d.ts new file mode 100644 index 0000000000..de026ce253 --- /dev/null +++ b/types/lodash-es/isArrayBuffer.d.ts @@ -0,0 +1,2 @@ +import { isArrayBuffer } from "lodash"; +export default isArrayBuffer; diff --git a/types/lodash-es/isArrayBuffer/index.d.ts b/types/lodash-es/isArrayBuffer/index.d.ts deleted file mode 100644 index ccd71b7775..0000000000 --- a/types/lodash-es/isArrayBuffer/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isArrayBuffer: typeof _.isArrayBuffer; -export default isArrayBuffer; diff --git a/types/lodash-es/isArrayLike.d.ts b/types/lodash-es/isArrayLike.d.ts new file mode 100644 index 0000000000..6d81c9c260 --- /dev/null +++ b/types/lodash-es/isArrayLike.d.ts @@ -0,0 +1,2 @@ +import { isArrayLike } from "lodash"; +export default isArrayLike; diff --git a/types/lodash-es/isArrayLike/index.d.ts b/types/lodash-es/isArrayLike/index.d.ts deleted file mode 100644 index 3b42bbbc5c..0000000000 --- a/types/lodash-es/isArrayLike/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isArrayLike: typeof _.isArrayLike; -export default isArrayLike; diff --git a/types/lodash-es/isArrayLikeObject.d.ts b/types/lodash-es/isArrayLikeObject.d.ts new file mode 100644 index 0000000000..67b677a2fb --- /dev/null +++ b/types/lodash-es/isArrayLikeObject.d.ts @@ -0,0 +1,2 @@ +import { isArrayLikeObject } from "lodash"; +export default isArrayLikeObject; diff --git a/types/lodash-es/isArrayLikeObject/index.d.ts b/types/lodash-es/isArrayLikeObject/index.d.ts deleted file mode 100644 index ea85e10017..0000000000 --- a/types/lodash-es/isArrayLikeObject/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isArrayLikeObject: typeof _.isArrayLikeObject; -export default isArrayLikeObject; diff --git a/types/lodash-es/isBoolean.d.ts b/types/lodash-es/isBoolean.d.ts new file mode 100644 index 0000000000..7508da6eec --- /dev/null +++ b/types/lodash-es/isBoolean.d.ts @@ -0,0 +1,2 @@ +import { isBoolean } from "lodash"; +export default isBoolean; diff --git a/types/lodash-es/isBoolean/index.d.ts b/types/lodash-es/isBoolean/index.d.ts deleted file mode 100644 index 65664f062b..0000000000 --- a/types/lodash-es/isBoolean/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isBoolean: typeof _.isBoolean; -export default isBoolean; diff --git a/types/lodash-es/isBuffer.d.ts b/types/lodash-es/isBuffer.d.ts new file mode 100644 index 0000000000..eff925d15b --- /dev/null +++ b/types/lodash-es/isBuffer.d.ts @@ -0,0 +1,2 @@ +import { isBuffer } from "lodash"; +export default isBuffer; diff --git a/types/lodash-es/isBuffer/index.d.ts b/types/lodash-es/isBuffer/index.d.ts deleted file mode 100644 index c3c32dea99..0000000000 --- a/types/lodash-es/isBuffer/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isBuffer: typeof _.isBuffer; -export default isBuffer; diff --git a/types/lodash-es/isDate.d.ts b/types/lodash-es/isDate.d.ts new file mode 100644 index 0000000000..ba4b39f6e8 --- /dev/null +++ b/types/lodash-es/isDate.d.ts @@ -0,0 +1,2 @@ +import { isDate } from "lodash"; +export default isDate; diff --git a/types/lodash-es/isDate/index.d.ts b/types/lodash-es/isDate/index.d.ts deleted file mode 100644 index 4f920c8c3f..0000000000 --- a/types/lodash-es/isDate/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isDate: typeof _.isDate; -export default isDate; diff --git a/types/lodash-es/isElement.d.ts b/types/lodash-es/isElement.d.ts new file mode 100644 index 0000000000..9fe4f80775 --- /dev/null +++ b/types/lodash-es/isElement.d.ts @@ -0,0 +1,2 @@ +import { isElement } from "lodash"; +export default isElement; diff --git a/types/lodash-es/isElement/index.d.ts b/types/lodash-es/isElement/index.d.ts deleted file mode 100644 index ea66ae6347..0000000000 --- a/types/lodash-es/isElement/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isElement: typeof _.isElement; -export default isElement; diff --git a/types/lodash-es/isEmpty.d.ts b/types/lodash-es/isEmpty.d.ts new file mode 100644 index 0000000000..280aef3e8f --- /dev/null +++ b/types/lodash-es/isEmpty.d.ts @@ -0,0 +1,2 @@ +import { isEmpty } from "lodash"; +export default isEmpty; diff --git a/types/lodash-es/isEmpty/index.d.ts b/types/lodash-es/isEmpty/index.d.ts deleted file mode 100644 index b8b4b87447..0000000000 --- a/types/lodash-es/isEmpty/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isEmpty: typeof _.isEmpty; -export default isEmpty; diff --git a/types/lodash-es/isEqual.d.ts b/types/lodash-es/isEqual.d.ts new file mode 100644 index 0000000000..ef1e3ebd5d --- /dev/null +++ b/types/lodash-es/isEqual.d.ts @@ -0,0 +1,2 @@ +import { isEqual } from "lodash"; +export default isEqual; diff --git a/types/lodash-es/isEqual/index.d.ts b/types/lodash-es/isEqual/index.d.ts deleted file mode 100644 index 83e1f70e6f..0000000000 --- a/types/lodash-es/isEqual/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isEqual: typeof _.isEqual; -export default isEqual; diff --git a/types/lodash-es/isEqualWith.d.ts b/types/lodash-es/isEqualWith.d.ts new file mode 100644 index 0000000000..00af3852cb --- /dev/null +++ b/types/lodash-es/isEqualWith.d.ts @@ -0,0 +1,2 @@ +import { isEqualWith } from "lodash"; +export default isEqualWith; diff --git a/types/lodash-es/isEqualWith/index.d.ts b/types/lodash-es/isEqualWith/index.d.ts deleted file mode 100644 index 945a683116..0000000000 --- a/types/lodash-es/isEqualWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isEqualWith: typeof _.isEqualWith; -export default isEqualWith; diff --git a/types/lodash-es/isError.d.ts b/types/lodash-es/isError.d.ts new file mode 100644 index 0000000000..0d7690b16d --- /dev/null +++ b/types/lodash-es/isError.d.ts @@ -0,0 +1,2 @@ +import { isError } from "lodash"; +export default isError; diff --git a/types/lodash-es/isError/index.d.ts b/types/lodash-es/isError/index.d.ts deleted file mode 100644 index 46485d9e7c..0000000000 --- a/types/lodash-es/isError/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isError: typeof _.isError; -export default isError; diff --git a/types/lodash-es/isFinite.d.ts b/types/lodash-es/isFinite.d.ts new file mode 100644 index 0000000000..26a5c81dbc --- /dev/null +++ b/types/lodash-es/isFinite.d.ts @@ -0,0 +1,2 @@ +import { isFinite } from "lodash"; +export default isFinite; diff --git a/types/lodash-es/isFinite/index.d.ts b/types/lodash-es/isFinite/index.d.ts deleted file mode 100644 index 62507f7e1e..0000000000 --- a/types/lodash-es/isFinite/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isFinite: typeof _.isFinite; -export default isFinite; diff --git a/types/lodash-es/isFunction.d.ts b/types/lodash-es/isFunction.d.ts new file mode 100644 index 0000000000..7498f5c21a --- /dev/null +++ b/types/lodash-es/isFunction.d.ts @@ -0,0 +1,2 @@ +import { isFunction } from "lodash"; +export default isFunction; diff --git a/types/lodash-es/isFunction/index.d.ts b/types/lodash-es/isFunction/index.d.ts deleted file mode 100644 index 3b66cce932..0000000000 --- a/types/lodash-es/isFunction/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isFunction: typeof _.isFunction; -export default isFunction; diff --git a/types/lodash-es/isInteger.d.ts b/types/lodash-es/isInteger.d.ts new file mode 100644 index 0000000000..2341e05b90 --- /dev/null +++ b/types/lodash-es/isInteger.d.ts @@ -0,0 +1,2 @@ +import { isInteger } from "lodash"; +export default isInteger; diff --git a/types/lodash-es/isInteger/index.d.ts b/types/lodash-es/isInteger/index.d.ts deleted file mode 100644 index 857fed396f..0000000000 --- a/types/lodash-es/isInteger/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isInteger: typeof _.isInteger; -export default isInteger; diff --git a/types/lodash-es/isLength.d.ts b/types/lodash-es/isLength.d.ts new file mode 100644 index 0000000000..a7f8cd2510 --- /dev/null +++ b/types/lodash-es/isLength.d.ts @@ -0,0 +1,2 @@ +import { isLength } from "lodash"; +export default isLength; diff --git a/types/lodash-es/isLength/index.d.ts b/types/lodash-es/isLength/index.d.ts deleted file mode 100644 index 3a7debd966..0000000000 --- a/types/lodash-es/isLength/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isLength: typeof _.isLength; -export default isLength; diff --git a/types/lodash-es/isMap.d.ts b/types/lodash-es/isMap.d.ts new file mode 100644 index 0000000000..d9f58e0ae1 --- /dev/null +++ b/types/lodash-es/isMap.d.ts @@ -0,0 +1,2 @@ +import { isMap } from "lodash"; +export default isMap; diff --git a/types/lodash-es/isMap/index.d.ts b/types/lodash-es/isMap/index.d.ts deleted file mode 100644 index d17daa5740..0000000000 --- a/types/lodash-es/isMap/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isMap: typeof _.isMap; -export default isMap; diff --git a/types/lodash-es/isMatch.d.ts b/types/lodash-es/isMatch.d.ts new file mode 100644 index 0000000000..aef2cd87a0 --- /dev/null +++ b/types/lodash-es/isMatch.d.ts @@ -0,0 +1,2 @@ +import { isMatch } from "lodash"; +export default isMatch; diff --git a/types/lodash-es/isMatch/index.d.ts b/types/lodash-es/isMatch/index.d.ts deleted file mode 100644 index 90a940554d..0000000000 --- a/types/lodash-es/isMatch/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isMatch: typeof _.isMatch; -export default isMatch; diff --git a/types/lodash-es/isMatchWith.d.ts b/types/lodash-es/isMatchWith.d.ts new file mode 100644 index 0000000000..b893616335 --- /dev/null +++ b/types/lodash-es/isMatchWith.d.ts @@ -0,0 +1,2 @@ +import { isMatchWith } from "lodash"; +export default isMatchWith; diff --git a/types/lodash-es/isMatchWith/index.d.ts b/types/lodash-es/isMatchWith/index.d.ts deleted file mode 100644 index 317ce04315..0000000000 --- a/types/lodash-es/isMatchWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isMatchWith: typeof _.isMatchWith; -export default isMatchWith; diff --git a/types/lodash-es/isNaN.d.ts b/types/lodash-es/isNaN.d.ts new file mode 100644 index 0000000000..a0a3a73e94 --- /dev/null +++ b/types/lodash-es/isNaN.d.ts @@ -0,0 +1,2 @@ +import { isNaN } from "lodash"; +export default isNaN; diff --git a/types/lodash-es/isNaN/index.d.ts b/types/lodash-es/isNaN/index.d.ts deleted file mode 100644 index c1c5d06d51..0000000000 --- a/types/lodash-es/isNaN/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isNaN: typeof _.isNaN; -export default isNaN; diff --git a/types/lodash-es/isNative.d.ts b/types/lodash-es/isNative.d.ts new file mode 100644 index 0000000000..593fa9f705 --- /dev/null +++ b/types/lodash-es/isNative.d.ts @@ -0,0 +1,2 @@ +import { isNative } from "lodash"; +export default isNative; diff --git a/types/lodash-es/isNative/index.d.ts b/types/lodash-es/isNative/index.d.ts deleted file mode 100644 index 08ee2fc1fd..0000000000 --- a/types/lodash-es/isNative/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isNative: typeof _.isNative; -export default isNative; diff --git a/types/lodash-es/isNil.d.ts b/types/lodash-es/isNil.d.ts new file mode 100644 index 0000000000..1bc081cc18 --- /dev/null +++ b/types/lodash-es/isNil.d.ts @@ -0,0 +1,2 @@ +import { isNil } from "lodash"; +export default isNil; diff --git a/types/lodash-es/isNil/index.d.ts b/types/lodash-es/isNil/index.d.ts deleted file mode 100644 index 25bfaedac2..0000000000 --- a/types/lodash-es/isNil/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isNil: typeof _.isNil; -export default isNil; diff --git a/types/lodash-es/isNull.d.ts b/types/lodash-es/isNull.d.ts new file mode 100644 index 0000000000..b21e726c3b --- /dev/null +++ b/types/lodash-es/isNull.d.ts @@ -0,0 +1,2 @@ +import { isNull } from "lodash"; +export default isNull; diff --git a/types/lodash-es/isNull/index.d.ts b/types/lodash-es/isNull/index.d.ts deleted file mode 100644 index 7e9c46de33..0000000000 --- a/types/lodash-es/isNull/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isNull: typeof _.isNull; -export default isNull; diff --git a/types/lodash-es/isNumber.d.ts b/types/lodash-es/isNumber.d.ts new file mode 100644 index 0000000000..fb6c3c608e --- /dev/null +++ b/types/lodash-es/isNumber.d.ts @@ -0,0 +1,2 @@ +import { isNumber } from "lodash"; +export default isNumber; diff --git a/types/lodash-es/isNumber/index.d.ts b/types/lodash-es/isNumber/index.d.ts deleted file mode 100644 index 1079a60fef..0000000000 --- a/types/lodash-es/isNumber/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isNumber: typeof _.isNumber; -export default isNumber; diff --git a/types/lodash-es/isObject.d.ts b/types/lodash-es/isObject.d.ts new file mode 100644 index 0000000000..0f77ead3af --- /dev/null +++ b/types/lodash-es/isObject.d.ts @@ -0,0 +1,2 @@ +import { isObject } from "lodash"; +export default isObject; diff --git a/types/lodash-es/isObject/index.d.ts b/types/lodash-es/isObject/index.d.ts deleted file mode 100644 index ea6ace66a8..0000000000 --- a/types/lodash-es/isObject/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isObject: typeof _.isObject; -export default isObject; diff --git a/types/lodash-es/isObjectLike.d.ts b/types/lodash-es/isObjectLike.d.ts new file mode 100644 index 0000000000..4b14352ed2 --- /dev/null +++ b/types/lodash-es/isObjectLike.d.ts @@ -0,0 +1,2 @@ +import { isObjectLike } from "lodash"; +export default isObjectLike; diff --git a/types/lodash-es/isObjectLike/index.d.ts b/types/lodash-es/isObjectLike/index.d.ts deleted file mode 100644 index 3851d0959f..0000000000 --- a/types/lodash-es/isObjectLike/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isObjectLike: typeof _.isObjectLike; -export default isObjectLike; diff --git a/types/lodash-es/isPlainObject.d.ts b/types/lodash-es/isPlainObject.d.ts new file mode 100644 index 0000000000..c08e2c429e --- /dev/null +++ b/types/lodash-es/isPlainObject.d.ts @@ -0,0 +1,2 @@ +import { isPlainObject } from "lodash"; +export default isPlainObject; diff --git a/types/lodash-es/isPlainObject/index.d.ts b/types/lodash-es/isPlainObject/index.d.ts deleted file mode 100644 index 0c855f6c47..0000000000 --- a/types/lodash-es/isPlainObject/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isPlainObject: typeof _.isPlainObject; -export default isPlainObject; diff --git a/types/lodash-es/isRegExp.d.ts b/types/lodash-es/isRegExp.d.ts new file mode 100644 index 0000000000..8fa7319f15 --- /dev/null +++ b/types/lodash-es/isRegExp.d.ts @@ -0,0 +1,2 @@ +import { isRegExp } from "lodash"; +export default isRegExp; diff --git a/types/lodash-es/isRegExp/index.d.ts b/types/lodash-es/isRegExp/index.d.ts deleted file mode 100644 index 7408b0ed3b..0000000000 --- a/types/lodash-es/isRegExp/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isRegExp: typeof _.isRegExp; -export default isRegExp; diff --git a/types/lodash-es/isSafeInteger.d.ts b/types/lodash-es/isSafeInteger.d.ts new file mode 100644 index 0000000000..12dac48dee --- /dev/null +++ b/types/lodash-es/isSafeInteger.d.ts @@ -0,0 +1,2 @@ +import { isSafeInteger } from "lodash"; +export default isSafeInteger; diff --git a/types/lodash-es/isSafeInteger/index.d.ts b/types/lodash-es/isSafeInteger/index.d.ts deleted file mode 100644 index 4ed7f6416e..0000000000 --- a/types/lodash-es/isSafeInteger/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isSafeInteger: typeof _.isSafeInteger; -export default isSafeInteger; diff --git a/types/lodash-es/isSet.d.ts b/types/lodash-es/isSet.d.ts new file mode 100644 index 0000000000..a3d7712d65 --- /dev/null +++ b/types/lodash-es/isSet.d.ts @@ -0,0 +1,2 @@ +import { isSet } from "lodash"; +export default isSet; diff --git a/types/lodash-es/isSet/index.d.ts b/types/lodash-es/isSet/index.d.ts deleted file mode 100644 index 40e4fc4ba5..0000000000 --- a/types/lodash-es/isSet/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isSet: typeof _.isSet; -export default isSet; diff --git a/types/lodash-es/isString.d.ts b/types/lodash-es/isString.d.ts new file mode 100644 index 0000000000..c394649200 --- /dev/null +++ b/types/lodash-es/isString.d.ts @@ -0,0 +1,2 @@ +import { isString } from "lodash"; +export default isString; diff --git a/types/lodash-es/isString/index.d.ts b/types/lodash-es/isString/index.d.ts deleted file mode 100644 index d00c2c7f83..0000000000 --- a/types/lodash-es/isString/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isString: typeof _.isString; -export default isString; diff --git a/types/lodash-es/isSymbol.d.ts b/types/lodash-es/isSymbol.d.ts new file mode 100644 index 0000000000..b199920ce1 --- /dev/null +++ b/types/lodash-es/isSymbol.d.ts @@ -0,0 +1,2 @@ +import { isSymbol } from "lodash"; +export default isSymbol; diff --git a/types/lodash-es/isSymbol/index.d.ts b/types/lodash-es/isSymbol/index.d.ts deleted file mode 100644 index a3e43f8327..0000000000 --- a/types/lodash-es/isSymbol/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isSymbol: typeof _.isSymbol; -export default isSymbol; diff --git a/types/lodash-es/isTypedArray.d.ts b/types/lodash-es/isTypedArray.d.ts new file mode 100644 index 0000000000..d5d29f9d46 --- /dev/null +++ b/types/lodash-es/isTypedArray.d.ts @@ -0,0 +1,2 @@ +import { isTypedArray } from "lodash"; +export default isTypedArray; diff --git a/types/lodash-es/isTypedArray/index.d.ts b/types/lodash-es/isTypedArray/index.d.ts deleted file mode 100644 index 5b37a9ff0d..0000000000 --- a/types/lodash-es/isTypedArray/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isTypedArray: typeof _.isTypedArray; -export default isTypedArray; diff --git a/types/lodash-es/isUndefined.d.ts b/types/lodash-es/isUndefined.d.ts new file mode 100644 index 0000000000..f5e83c7753 --- /dev/null +++ b/types/lodash-es/isUndefined.d.ts @@ -0,0 +1,2 @@ +import { isUndefined } from "lodash"; +export default isUndefined; diff --git a/types/lodash-es/isUndefined/index.d.ts b/types/lodash-es/isUndefined/index.d.ts deleted file mode 100644 index a2ad3eab25..0000000000 --- a/types/lodash-es/isUndefined/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isUndefined: typeof _.isUndefined; -export default isUndefined; diff --git a/types/lodash-es/isWeakMap.d.ts b/types/lodash-es/isWeakMap.d.ts new file mode 100644 index 0000000000..c3ff7459ba --- /dev/null +++ b/types/lodash-es/isWeakMap.d.ts @@ -0,0 +1,2 @@ +import { isWeakMap } from "lodash"; +export default isWeakMap; diff --git a/types/lodash-es/isWeakMap/index.d.ts b/types/lodash-es/isWeakMap/index.d.ts deleted file mode 100644 index 5115411a83..0000000000 --- a/types/lodash-es/isWeakMap/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isWeakMap: typeof _.isWeakMap; -export default isWeakMap; diff --git a/types/lodash-es/isWeakSet.d.ts b/types/lodash-es/isWeakSet.d.ts new file mode 100644 index 0000000000..4a31235680 --- /dev/null +++ b/types/lodash-es/isWeakSet.d.ts @@ -0,0 +1,2 @@ +import { isWeakSet } from "lodash"; +export default isWeakSet; diff --git a/types/lodash-es/isWeakSet/index.d.ts b/types/lodash-es/isWeakSet/index.d.ts deleted file mode 100644 index fffa232347..0000000000 --- a/types/lodash-es/isWeakSet/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const isWeakSet: typeof _.isWeakSet; -export default isWeakSet; diff --git a/types/lodash-es/iteratee.d.ts b/types/lodash-es/iteratee.d.ts new file mode 100644 index 0000000000..ccb6beeef8 --- /dev/null +++ b/types/lodash-es/iteratee.d.ts @@ -0,0 +1,2 @@ +import { iteratee } from "lodash"; +export default iteratee; diff --git a/types/lodash-es/iteratee/index.d.ts b/types/lodash-es/iteratee/index.d.ts deleted file mode 100644 index bc3670a417..0000000000 --- a/types/lodash-es/iteratee/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const iteratee: typeof _.iteratee; -export default iteratee; diff --git a/types/lodash-es/join.d.ts b/types/lodash-es/join.d.ts new file mode 100644 index 0000000000..b481847f22 --- /dev/null +++ b/types/lodash-es/join.d.ts @@ -0,0 +1,2 @@ +import { join } from "lodash"; +export default join; diff --git a/types/lodash-es/join/index.d.ts b/types/lodash-es/join/index.d.ts deleted file mode 100644 index 5400a8a009..0000000000 --- a/types/lodash-es/join/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const join: typeof _.join; -export default join; diff --git a/types/lodash-es/kebabCase.d.ts b/types/lodash-es/kebabCase.d.ts new file mode 100644 index 0000000000..a78c7768c0 --- /dev/null +++ b/types/lodash-es/kebabCase.d.ts @@ -0,0 +1,2 @@ +import { kebabCase } from "lodash"; +export default kebabCase; diff --git a/types/lodash-es/kebabCase/index.d.ts b/types/lodash-es/kebabCase/index.d.ts deleted file mode 100644 index f49f33dbf5..0000000000 --- a/types/lodash-es/kebabCase/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const kebabCase: typeof _.kebabCase; -export default kebabCase; diff --git a/types/lodash-es/keyBy.d.ts b/types/lodash-es/keyBy.d.ts new file mode 100644 index 0000000000..036b2c61b8 --- /dev/null +++ b/types/lodash-es/keyBy.d.ts @@ -0,0 +1,2 @@ +import { keyBy } from "lodash"; +export default keyBy; diff --git a/types/lodash-es/keyBy/index.d.ts b/types/lodash-es/keyBy/index.d.ts deleted file mode 100644 index 676c034dcb..0000000000 --- a/types/lodash-es/keyBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const keyBy: typeof _.keyBy; -export default keyBy; diff --git a/types/lodash-es/keys.d.ts b/types/lodash-es/keys.d.ts new file mode 100644 index 0000000000..611e604792 --- /dev/null +++ b/types/lodash-es/keys.d.ts @@ -0,0 +1,2 @@ +import { keys } from "lodash"; +export default keys; diff --git a/types/lodash-es/keys/index.d.ts b/types/lodash-es/keys/index.d.ts deleted file mode 100644 index 3a947b7243..0000000000 --- a/types/lodash-es/keys/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const keys: typeof _.keys; -export default keys; diff --git a/types/lodash-es/keysIn.d.ts b/types/lodash-es/keysIn.d.ts new file mode 100644 index 0000000000..22eca43474 --- /dev/null +++ b/types/lodash-es/keysIn.d.ts @@ -0,0 +1,2 @@ +import { keysIn } from "lodash"; +export default keysIn; diff --git a/types/lodash-es/keysIn/index.d.ts b/types/lodash-es/keysIn/index.d.ts deleted file mode 100644 index 4fe392a6f7..0000000000 --- a/types/lodash-es/keysIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const keysIn: typeof _.keysIn; -export default keysIn; diff --git a/types/lodash-es/last.d.ts b/types/lodash-es/last.d.ts new file mode 100644 index 0000000000..65a647b0b3 --- /dev/null +++ b/types/lodash-es/last.d.ts @@ -0,0 +1,2 @@ +import { last } from "lodash"; +export default last; diff --git a/types/lodash-es/last/index.d.ts b/types/lodash-es/last/index.d.ts deleted file mode 100644 index db4784da60..0000000000 --- a/types/lodash-es/last/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const last: typeof _.last; -export default last; diff --git a/types/lodash-es/lastIndexOf.d.ts b/types/lodash-es/lastIndexOf.d.ts new file mode 100644 index 0000000000..312f45d8d9 --- /dev/null +++ b/types/lodash-es/lastIndexOf.d.ts @@ -0,0 +1,2 @@ +import { lastIndexOf } from "lodash"; +export default lastIndexOf; diff --git a/types/lodash-es/lastIndexOf/index.d.ts b/types/lodash-es/lastIndexOf/index.d.ts deleted file mode 100644 index 43a17a6a21..0000000000 --- a/types/lodash-es/lastIndexOf/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const lastIndexOf: typeof _.lastIndexOf; -export default lastIndexOf; diff --git a/types/lodash-es/lowerCase.d.ts b/types/lodash-es/lowerCase.d.ts new file mode 100644 index 0000000000..373d7938be --- /dev/null +++ b/types/lodash-es/lowerCase.d.ts @@ -0,0 +1,2 @@ +import { lowerCase } from "lodash"; +export default lowerCase; diff --git a/types/lodash-es/lowerCase/index.d.ts b/types/lodash-es/lowerCase/index.d.ts deleted file mode 100644 index 11f4bf8e90..0000000000 --- a/types/lodash-es/lowerCase/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const lowerCase: typeof _.lowerCase; -export default lowerCase; diff --git a/types/lodash-es/lowerFirst.d.ts b/types/lodash-es/lowerFirst.d.ts new file mode 100644 index 0000000000..3a1fadd021 --- /dev/null +++ b/types/lodash-es/lowerFirst.d.ts @@ -0,0 +1,2 @@ +import { lowerFirst } from "lodash"; +export default lowerFirst; diff --git a/types/lodash-es/lowerFirst/index.d.ts b/types/lodash-es/lowerFirst/index.d.ts deleted file mode 100644 index 3b6950f527..0000000000 --- a/types/lodash-es/lowerFirst/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const lowerFirst: typeof _.lowerFirst; -export default lowerFirst; diff --git a/types/lodash-es/lt.d.ts b/types/lodash-es/lt.d.ts new file mode 100644 index 0000000000..a4f832c434 --- /dev/null +++ b/types/lodash-es/lt.d.ts @@ -0,0 +1,2 @@ +import { lt } from "lodash"; +export default lt; diff --git a/types/lodash-es/lt/index.d.ts b/types/lodash-es/lt/index.d.ts deleted file mode 100644 index d16db45df9..0000000000 --- a/types/lodash-es/lt/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const lt: typeof _.lt; -export default lt; diff --git a/types/lodash-es/lte.d.ts b/types/lodash-es/lte.d.ts new file mode 100644 index 0000000000..dbb6f4cbac --- /dev/null +++ b/types/lodash-es/lte.d.ts @@ -0,0 +1,2 @@ +import { lte } from "lodash"; +export default lte; diff --git a/types/lodash-es/lte/index.d.ts b/types/lodash-es/lte/index.d.ts deleted file mode 100644 index 0f8c1b6eb8..0000000000 --- a/types/lodash-es/lte/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const lte: typeof _.lte; -export default lte; diff --git a/types/lodash-es/map.d.ts b/types/lodash-es/map.d.ts new file mode 100644 index 0000000000..9347afc809 --- /dev/null +++ b/types/lodash-es/map.d.ts @@ -0,0 +1,2 @@ +import { map } from "lodash"; +export default map; diff --git a/types/lodash-es/map/index.d.ts b/types/lodash-es/map/index.d.ts deleted file mode 100644 index 230189f901..0000000000 --- a/types/lodash-es/map/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const map: typeof _.map; -export default map; diff --git a/types/lodash-es/mapKeys.d.ts b/types/lodash-es/mapKeys.d.ts new file mode 100644 index 0000000000..85f035a843 --- /dev/null +++ b/types/lodash-es/mapKeys.d.ts @@ -0,0 +1,2 @@ +import { mapKeys } from "lodash"; +export default mapKeys; diff --git a/types/lodash-es/mapKeys/index.d.ts b/types/lodash-es/mapKeys/index.d.ts deleted file mode 100644 index 75c092904a..0000000000 --- a/types/lodash-es/mapKeys/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const mapKeys: typeof _.mapKeys; -export default mapKeys; diff --git a/types/lodash-es/mapValues.d.ts b/types/lodash-es/mapValues.d.ts new file mode 100644 index 0000000000..5487381be0 --- /dev/null +++ b/types/lodash-es/mapValues.d.ts @@ -0,0 +1,2 @@ +import { mapValues } from "lodash"; +export default mapValues; diff --git a/types/lodash-es/mapValues/index.d.ts b/types/lodash-es/mapValues/index.d.ts deleted file mode 100644 index e94fe54ea4..0000000000 --- a/types/lodash-es/mapValues/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const mapValues: typeof _.mapValues; -export default mapValues; diff --git a/types/lodash-es/matches.d.ts b/types/lodash-es/matches.d.ts new file mode 100644 index 0000000000..63360b4e75 --- /dev/null +++ b/types/lodash-es/matches.d.ts @@ -0,0 +1,2 @@ +import { matches } from "lodash"; +export default matches; diff --git a/types/lodash-es/matches/index.d.ts b/types/lodash-es/matches/index.d.ts deleted file mode 100644 index 3649b1f816..0000000000 --- a/types/lodash-es/matches/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const matches: typeof _.matches; -export default matches; diff --git a/types/lodash-es/matchesProperty.d.ts b/types/lodash-es/matchesProperty.d.ts new file mode 100644 index 0000000000..ba43e5391b --- /dev/null +++ b/types/lodash-es/matchesProperty.d.ts @@ -0,0 +1,2 @@ +import { matchesProperty } from "lodash"; +export default matchesProperty; diff --git a/types/lodash-es/matchesProperty/index.d.ts b/types/lodash-es/matchesProperty/index.d.ts deleted file mode 100644 index 05c4214254..0000000000 --- a/types/lodash-es/matchesProperty/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const matchesProperty: typeof _.matchesProperty; -export default matchesProperty; diff --git a/types/lodash-es/max.d.ts b/types/lodash-es/max.d.ts new file mode 100644 index 0000000000..0c57d672c4 --- /dev/null +++ b/types/lodash-es/max.d.ts @@ -0,0 +1,2 @@ +import { max } from "lodash"; +export default max; diff --git a/types/lodash-es/max/index.d.ts b/types/lodash-es/max/index.d.ts deleted file mode 100644 index 5c3ecefa58..0000000000 --- a/types/lodash-es/max/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const max: typeof _.max; -export default max; diff --git a/types/lodash-es/maxBy.d.ts b/types/lodash-es/maxBy.d.ts new file mode 100644 index 0000000000..2ecffec57a --- /dev/null +++ b/types/lodash-es/maxBy.d.ts @@ -0,0 +1,2 @@ +import { maxBy } from "lodash"; +export default maxBy; diff --git a/types/lodash-es/maxBy/index.d.ts b/types/lodash-es/maxBy/index.d.ts deleted file mode 100644 index 891a6adc51..0000000000 --- a/types/lodash-es/maxBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const maxBy: typeof _.maxBy; -export default maxBy; diff --git a/types/lodash-es/mean.d.ts b/types/lodash-es/mean.d.ts new file mode 100644 index 0000000000..2b0b57ff55 --- /dev/null +++ b/types/lodash-es/mean.d.ts @@ -0,0 +1,2 @@ +import { mean } from "lodash"; +export default mean; diff --git a/types/lodash-es/mean/index.d.ts b/types/lodash-es/mean/index.d.ts deleted file mode 100644 index 4748a5b68c..0000000000 --- a/types/lodash-es/mean/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const mean: typeof _.mean; -export default mean; diff --git a/types/lodash-es/meanBy.d.ts b/types/lodash-es/meanBy.d.ts new file mode 100644 index 0000000000..8da3f1a0cb --- /dev/null +++ b/types/lodash-es/meanBy.d.ts @@ -0,0 +1,2 @@ +import { meanBy } from "lodash"; +export default meanBy; diff --git a/types/lodash-es/meanBy/index.d.ts b/types/lodash-es/meanBy/index.d.ts deleted file mode 100644 index 98bb386726..0000000000 --- a/types/lodash-es/meanBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const meanBy: typeof _.meanBy; -export default meanBy; diff --git a/types/lodash-es/memoize.d.ts b/types/lodash-es/memoize.d.ts new file mode 100644 index 0000000000..e7d0469aa3 --- /dev/null +++ b/types/lodash-es/memoize.d.ts @@ -0,0 +1,2 @@ +import { memoize } from "lodash"; +export default memoize; diff --git a/types/lodash-es/memoize/index.d.ts b/types/lodash-es/memoize/index.d.ts deleted file mode 100644 index 6f04797611..0000000000 --- a/types/lodash-es/memoize/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const memoize: typeof _.memoize; -export default memoize; diff --git a/types/lodash-es/merge.d.ts b/types/lodash-es/merge.d.ts new file mode 100644 index 0000000000..bf86ddfbc8 --- /dev/null +++ b/types/lodash-es/merge.d.ts @@ -0,0 +1,2 @@ +import { merge } from "lodash"; +export default merge; diff --git a/types/lodash-es/merge/index.d.ts b/types/lodash-es/merge/index.d.ts deleted file mode 100644 index 857c5c3492..0000000000 --- a/types/lodash-es/merge/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const merge: typeof _.merge; -export default merge; diff --git a/types/lodash-es/mergeWith.d.ts b/types/lodash-es/mergeWith.d.ts new file mode 100644 index 0000000000..8678c3ff07 --- /dev/null +++ b/types/lodash-es/mergeWith.d.ts @@ -0,0 +1,2 @@ +import { mergeWith } from "lodash"; +export default mergeWith; diff --git a/types/lodash-es/mergeWith/index.d.ts b/types/lodash-es/mergeWith/index.d.ts deleted file mode 100644 index 6e80ad3a61..0000000000 --- a/types/lodash-es/mergeWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const mergeWith: typeof _.mergeWith; -export default mergeWith; diff --git a/types/lodash-es/method.d.ts b/types/lodash-es/method.d.ts new file mode 100644 index 0000000000..8ba0a46566 --- /dev/null +++ b/types/lodash-es/method.d.ts @@ -0,0 +1,2 @@ +import { method } from "lodash"; +export default method; diff --git a/types/lodash-es/method/index.d.ts b/types/lodash-es/method/index.d.ts deleted file mode 100644 index 258566af88..0000000000 --- a/types/lodash-es/method/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const method: typeof _.method; -export default method; diff --git a/types/lodash-es/methodOf.d.ts b/types/lodash-es/methodOf.d.ts new file mode 100644 index 0000000000..9ed600f5b4 --- /dev/null +++ b/types/lodash-es/methodOf.d.ts @@ -0,0 +1,2 @@ +import { methodOf } from "lodash"; +export default methodOf; diff --git a/types/lodash-es/methodOf/index.d.ts b/types/lodash-es/methodOf/index.d.ts deleted file mode 100644 index 3f106fa75a..0000000000 --- a/types/lodash-es/methodOf/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const methodOf: typeof _.methodOf; -export default methodOf; diff --git a/types/lodash-es/min.d.ts b/types/lodash-es/min.d.ts new file mode 100644 index 0000000000..c18c37a7ca --- /dev/null +++ b/types/lodash-es/min.d.ts @@ -0,0 +1,2 @@ +import { min } from "lodash"; +export default min; diff --git a/types/lodash-es/min/index.d.ts b/types/lodash-es/min/index.d.ts deleted file mode 100644 index bef0c59653..0000000000 --- a/types/lodash-es/min/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const min: typeof _.min; -export default min; diff --git a/types/lodash-es/minBy.d.ts b/types/lodash-es/minBy.d.ts new file mode 100644 index 0000000000..c808f86de0 --- /dev/null +++ b/types/lodash-es/minBy.d.ts @@ -0,0 +1,2 @@ +import { minBy } from "lodash"; +export default minBy; diff --git a/types/lodash-es/minBy/index.d.ts b/types/lodash-es/minBy/index.d.ts deleted file mode 100644 index 61524b8636..0000000000 --- a/types/lodash-es/minBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const minBy: typeof _.minBy; -export default minBy; diff --git a/types/lodash-es/mixin.d.ts b/types/lodash-es/mixin.d.ts new file mode 100644 index 0000000000..c819b72982 --- /dev/null +++ b/types/lodash-es/mixin.d.ts @@ -0,0 +1,2 @@ +import { mixin } from "lodash"; +export default mixin; diff --git a/types/lodash-es/mixin/index.d.ts b/types/lodash-es/mixin/index.d.ts deleted file mode 100644 index a4c1570442..0000000000 --- a/types/lodash-es/mixin/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const mixin: typeof _.mixin; -export default mixin; diff --git a/types/lodash-es/negate.d.ts b/types/lodash-es/negate.d.ts new file mode 100644 index 0000000000..c9d33db9de --- /dev/null +++ b/types/lodash-es/negate.d.ts @@ -0,0 +1,2 @@ +import { negate } from "lodash"; +export default negate; diff --git a/types/lodash-es/negate/index.d.ts b/types/lodash-es/negate/index.d.ts deleted file mode 100644 index 9062ca2344..0000000000 --- a/types/lodash-es/negate/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const negate: typeof _.negate; -export default negate; diff --git a/types/lodash-es/noConflict.d.ts b/types/lodash-es/noConflict.d.ts new file mode 100644 index 0000000000..75499c13e3 --- /dev/null +++ b/types/lodash-es/noConflict.d.ts @@ -0,0 +1,2 @@ +import { noConflict } from "lodash"; +export default noConflict; diff --git a/types/lodash-es/noConflict/index.d.ts b/types/lodash-es/noConflict/index.d.ts deleted file mode 100644 index f3dc804e22..0000000000 --- a/types/lodash-es/noConflict/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const noConflict: typeof _.noConflict; -export default noConflict; diff --git a/types/lodash-es/noop.d.ts b/types/lodash-es/noop.d.ts new file mode 100644 index 0000000000..c15cf63f46 --- /dev/null +++ b/types/lodash-es/noop.d.ts @@ -0,0 +1,2 @@ +import { noop } from "lodash"; +export default noop; diff --git a/types/lodash-es/noop/index.d.ts b/types/lodash-es/noop/index.d.ts deleted file mode 100644 index 54ddded976..0000000000 --- a/types/lodash-es/noop/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const noop: typeof _.noop; -export default noop; diff --git a/types/lodash-es/now.d.ts b/types/lodash-es/now.d.ts new file mode 100644 index 0000000000..88c3d604b8 --- /dev/null +++ b/types/lodash-es/now.d.ts @@ -0,0 +1,2 @@ +import { now } from "lodash"; +export default now; diff --git a/types/lodash-es/now/index.d.ts b/types/lodash-es/now/index.d.ts deleted file mode 100644 index 09b6facb97..0000000000 --- a/types/lodash-es/now/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const now: typeof _.now; -export default now; diff --git a/types/lodash-es/nthArg.d.ts b/types/lodash-es/nthArg.d.ts new file mode 100644 index 0000000000..e0a6d3bbd6 --- /dev/null +++ b/types/lodash-es/nthArg.d.ts @@ -0,0 +1,2 @@ +import { nthArg } from "lodash"; +export default nthArg; diff --git a/types/lodash-es/nthArg/index.d.ts b/types/lodash-es/nthArg/index.d.ts deleted file mode 100644 index a4ece20ba0..0000000000 --- a/types/lodash-es/nthArg/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const nthArg: typeof _.nthArg; -export default nthArg; diff --git a/types/lodash-es/omit.d.ts b/types/lodash-es/omit.d.ts new file mode 100644 index 0000000000..a7e672c1ce --- /dev/null +++ b/types/lodash-es/omit.d.ts @@ -0,0 +1,2 @@ +import { omit } from "lodash"; +export default omit; diff --git a/types/lodash-es/omit/index.d.ts b/types/lodash-es/omit/index.d.ts deleted file mode 100644 index ff29ac332a..0000000000 --- a/types/lodash-es/omit/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const omit: typeof _.omit; -export default omit; diff --git a/types/lodash-es/omitBy.d.ts b/types/lodash-es/omitBy.d.ts new file mode 100644 index 0000000000..0471c1078b --- /dev/null +++ b/types/lodash-es/omitBy.d.ts @@ -0,0 +1,2 @@ +import { omitBy } from "lodash"; +export default omitBy; diff --git a/types/lodash-es/omitBy/index.d.ts b/types/lodash-es/omitBy/index.d.ts deleted file mode 100644 index 629fd47b0c..0000000000 --- a/types/lodash-es/omitBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const omitBy: typeof _.omitBy; -export default omitBy; diff --git a/types/lodash-es/once.d.ts b/types/lodash-es/once.d.ts new file mode 100644 index 0000000000..ff45f19c3d --- /dev/null +++ b/types/lodash-es/once.d.ts @@ -0,0 +1,2 @@ +import { once } from "lodash"; +export default once; diff --git a/types/lodash-es/once/index.d.ts b/types/lodash-es/once/index.d.ts deleted file mode 100644 index f6176c1577..0000000000 --- a/types/lodash-es/once/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const once: typeof _.once; -export default once; diff --git a/types/lodash-es/orderBy.d.ts b/types/lodash-es/orderBy.d.ts new file mode 100644 index 0000000000..cd82041ac1 --- /dev/null +++ b/types/lodash-es/orderBy.d.ts @@ -0,0 +1,2 @@ +import { orderBy } from "lodash"; +export default orderBy; diff --git a/types/lodash-es/orderBy/index.d.ts b/types/lodash-es/orderBy/index.d.ts deleted file mode 100644 index 90928d3740..0000000000 --- a/types/lodash-es/orderBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const orderBy: typeof _.orderBy; -export default orderBy; diff --git a/types/lodash-es/over.d.ts b/types/lodash-es/over.d.ts new file mode 100644 index 0000000000..ba049d90f4 --- /dev/null +++ b/types/lodash-es/over.d.ts @@ -0,0 +1,2 @@ +import { over } from "lodash"; +export default over; diff --git a/types/lodash-es/over/index.d.ts b/types/lodash-es/over/index.d.ts deleted file mode 100644 index 97e8c56335..0000000000 --- a/types/lodash-es/over/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const over: typeof _.over; -export default over; diff --git a/types/lodash-es/overArgs.d.ts b/types/lodash-es/overArgs.d.ts new file mode 100644 index 0000000000..f7435949f3 --- /dev/null +++ b/types/lodash-es/overArgs.d.ts @@ -0,0 +1,2 @@ +import { overArgs } from "lodash"; +export default overArgs; diff --git a/types/lodash-es/overArgs/index.d.ts b/types/lodash-es/overArgs/index.d.ts deleted file mode 100644 index c6bf86aaee..0000000000 --- a/types/lodash-es/overArgs/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const overArgs: typeof _.overArgs; -export default overArgs; diff --git a/types/lodash-es/overEvery.d.ts b/types/lodash-es/overEvery.d.ts new file mode 100644 index 0000000000..6ab0754b95 --- /dev/null +++ b/types/lodash-es/overEvery.d.ts @@ -0,0 +1,2 @@ +import { overEvery } from "lodash"; +export default overEvery; diff --git a/types/lodash-es/overEvery/index.d.ts b/types/lodash-es/overEvery/index.d.ts deleted file mode 100644 index 4d8bf3ac98..0000000000 --- a/types/lodash-es/overEvery/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const overEvery: typeof _.overEvery; -export default overEvery; diff --git a/types/lodash-es/overSome.d.ts b/types/lodash-es/overSome.d.ts new file mode 100644 index 0000000000..753fecc78e --- /dev/null +++ b/types/lodash-es/overSome.d.ts @@ -0,0 +1,2 @@ +import { overSome } from "lodash"; +export default overSome; diff --git a/types/lodash-es/overSome/index.d.ts b/types/lodash-es/overSome/index.d.ts deleted file mode 100644 index 6dcd9365a8..0000000000 --- a/types/lodash-es/overSome/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const overSome: typeof _.overSome; -export default overSome; diff --git a/types/lodash-es/pad.d.ts b/types/lodash-es/pad.d.ts new file mode 100644 index 0000000000..238b2ae47b --- /dev/null +++ b/types/lodash-es/pad.d.ts @@ -0,0 +1,2 @@ +import { pad } from "lodash"; +export default pad; diff --git a/types/lodash-es/pad/index.d.ts b/types/lodash-es/pad/index.d.ts deleted file mode 100644 index cf433d4663..0000000000 --- a/types/lodash-es/pad/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pad: typeof _.pad; -export default pad; diff --git a/types/lodash-es/padEnd.d.ts b/types/lodash-es/padEnd.d.ts new file mode 100644 index 0000000000..b4cd742ca1 --- /dev/null +++ b/types/lodash-es/padEnd.d.ts @@ -0,0 +1,2 @@ +import { padEnd } from "lodash"; +export default padEnd; diff --git a/types/lodash-es/padEnd/index.d.ts b/types/lodash-es/padEnd/index.d.ts deleted file mode 100644 index 701b09551d..0000000000 --- a/types/lodash-es/padEnd/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const padEnd: typeof _.padEnd; -export default padEnd; diff --git a/types/lodash-es/padStart.d.ts b/types/lodash-es/padStart.d.ts new file mode 100644 index 0000000000..a48683a75a --- /dev/null +++ b/types/lodash-es/padStart.d.ts @@ -0,0 +1,2 @@ +import { padStart } from "lodash"; +export default padStart; diff --git a/types/lodash-es/padStart/index.d.ts b/types/lodash-es/padStart/index.d.ts deleted file mode 100644 index be4d29907a..0000000000 --- a/types/lodash-es/padStart/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const padStart: typeof _.padStart; -export default padStart; diff --git a/types/lodash-es/parseInt.d.ts b/types/lodash-es/parseInt.d.ts new file mode 100644 index 0000000000..809acd7283 --- /dev/null +++ b/types/lodash-es/parseInt.d.ts @@ -0,0 +1,2 @@ +import { parseInt } from "lodash"; +export default parseInt; diff --git a/types/lodash-es/parseInt/index.d.ts b/types/lodash-es/parseInt/index.d.ts deleted file mode 100644 index ea95ce55f4..0000000000 --- a/types/lodash-es/parseInt/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const parseInt: typeof _.parseInt; -export default parseInt; diff --git a/types/lodash-es/partial.d.ts b/types/lodash-es/partial.d.ts new file mode 100644 index 0000000000..ae0ac0f26d --- /dev/null +++ b/types/lodash-es/partial.d.ts @@ -0,0 +1,2 @@ +import { partial } from "lodash"; +export default partial; diff --git a/types/lodash-es/partial/index.d.ts b/types/lodash-es/partial/index.d.ts deleted file mode 100644 index b87c82b07a..0000000000 --- a/types/lodash-es/partial/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const partial: typeof _.partial; -export default partial; diff --git a/types/lodash-es/partialRight.d.ts b/types/lodash-es/partialRight.d.ts new file mode 100644 index 0000000000..2e98a5f38f --- /dev/null +++ b/types/lodash-es/partialRight.d.ts @@ -0,0 +1,2 @@ +import { partialRight } from "lodash"; +export default partialRight; diff --git a/types/lodash-es/partialRight/index.d.ts b/types/lodash-es/partialRight/index.d.ts deleted file mode 100644 index 893f6541a6..0000000000 --- a/types/lodash-es/partialRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const partialRight: typeof _.partialRight; -export default partialRight; diff --git a/types/lodash-es/partition.d.ts b/types/lodash-es/partition.d.ts new file mode 100644 index 0000000000..1dfc4b76ec --- /dev/null +++ b/types/lodash-es/partition.d.ts @@ -0,0 +1,2 @@ +import { partition } from "lodash"; +export default partition; diff --git a/types/lodash-es/partition/index.d.ts b/types/lodash-es/partition/index.d.ts deleted file mode 100644 index 54c7aedd2f..0000000000 --- a/types/lodash-es/partition/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const partition: typeof _.partition; -export default partition; diff --git a/types/lodash-es/pick.d.ts b/types/lodash-es/pick.d.ts new file mode 100644 index 0000000000..1ec25f08f6 --- /dev/null +++ b/types/lodash-es/pick.d.ts @@ -0,0 +1,2 @@ +import { pick } from "lodash"; +export default pick; diff --git a/types/lodash-es/pick/index.d.ts b/types/lodash-es/pick/index.d.ts deleted file mode 100644 index 7ed39cfd45..0000000000 --- a/types/lodash-es/pick/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pick: typeof _.pick; -export default pick; diff --git a/types/lodash-es/pickBy.d.ts b/types/lodash-es/pickBy.d.ts new file mode 100644 index 0000000000..faf008c3f5 --- /dev/null +++ b/types/lodash-es/pickBy.d.ts @@ -0,0 +1,2 @@ +import { pickBy } from "lodash"; +export default pickBy; diff --git a/types/lodash-es/pickBy/index.d.ts b/types/lodash-es/pickBy/index.d.ts deleted file mode 100644 index c37adcc1e5..0000000000 --- a/types/lodash-es/pickBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pickBy: typeof _.pickBy; -export default pickBy; diff --git a/types/lodash-es/property.d.ts b/types/lodash-es/property.d.ts new file mode 100644 index 0000000000..05317aefcc --- /dev/null +++ b/types/lodash-es/property.d.ts @@ -0,0 +1,2 @@ +import { property } from "lodash"; +export default property; diff --git a/types/lodash-es/property/index.d.ts b/types/lodash-es/property/index.d.ts deleted file mode 100644 index fbb31e52b9..0000000000 --- a/types/lodash-es/property/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const property: typeof _.property; -export default property; diff --git a/types/lodash-es/propertyOf.d.ts b/types/lodash-es/propertyOf.d.ts new file mode 100644 index 0000000000..ff3eb5ef0e --- /dev/null +++ b/types/lodash-es/propertyOf.d.ts @@ -0,0 +1,2 @@ +import { propertyOf } from "lodash"; +export default propertyOf; diff --git a/types/lodash-es/propertyOf/index.d.ts b/types/lodash-es/propertyOf/index.d.ts deleted file mode 100644 index 27da14daad..0000000000 --- a/types/lodash-es/propertyOf/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const propertyOf: typeof _.propertyOf; -export default propertyOf; diff --git a/types/lodash-es/pull.d.ts b/types/lodash-es/pull.d.ts new file mode 100644 index 0000000000..006dd71e47 --- /dev/null +++ b/types/lodash-es/pull.d.ts @@ -0,0 +1,2 @@ +import { pull } from "lodash"; +export default pull; diff --git a/types/lodash-es/pull/index.d.ts b/types/lodash-es/pull/index.d.ts deleted file mode 100644 index 6c959cf61e..0000000000 --- a/types/lodash-es/pull/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pull: typeof _.pull; -export default pull; diff --git a/types/lodash-es/pullAll.d.ts b/types/lodash-es/pullAll.d.ts new file mode 100644 index 0000000000..af0260011a --- /dev/null +++ b/types/lodash-es/pullAll.d.ts @@ -0,0 +1,2 @@ +import { pullAll } from "lodash"; +export default pullAll; diff --git a/types/lodash-es/pullAll/index.d.ts b/types/lodash-es/pullAll/index.d.ts deleted file mode 100644 index c37b1d0f94..0000000000 --- a/types/lodash-es/pullAll/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pullAll: typeof _.pullAll; -export default pullAll; diff --git a/types/lodash-es/pullAllBy.d.ts b/types/lodash-es/pullAllBy.d.ts new file mode 100644 index 0000000000..53102da1a1 --- /dev/null +++ b/types/lodash-es/pullAllBy.d.ts @@ -0,0 +1,2 @@ +import { pullAllBy } from "lodash"; +export default pullAllBy; diff --git a/types/lodash-es/pullAllBy/index.d.ts b/types/lodash-es/pullAllBy/index.d.ts deleted file mode 100644 index c8fe2e16bf..0000000000 --- a/types/lodash-es/pullAllBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pullAllBy: typeof _.pullAllBy; -export default pullAllBy; diff --git a/types/lodash-es/pullAt.d.ts b/types/lodash-es/pullAt.d.ts new file mode 100644 index 0000000000..a9cb2857b1 --- /dev/null +++ b/types/lodash-es/pullAt.d.ts @@ -0,0 +1,2 @@ +import { pullAt } from "lodash"; +export default pullAt; diff --git a/types/lodash-es/pullAt/index.d.ts b/types/lodash-es/pullAt/index.d.ts deleted file mode 100644 index 15c3e2a377..0000000000 --- a/types/lodash-es/pullAt/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const pullAt: typeof _.pullAt; -export default pullAt; diff --git a/types/lodash-es/random.d.ts b/types/lodash-es/random.d.ts new file mode 100644 index 0000000000..7d915ab054 --- /dev/null +++ b/types/lodash-es/random.d.ts @@ -0,0 +1,2 @@ +import { random } from "lodash"; +export default random; diff --git a/types/lodash-es/random/index.d.ts b/types/lodash-es/random/index.d.ts deleted file mode 100644 index 426f56ddef..0000000000 --- a/types/lodash-es/random/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const random: typeof _.random; -export default random; diff --git a/types/lodash-es/range.d.ts b/types/lodash-es/range.d.ts new file mode 100644 index 0000000000..dd3a77451d --- /dev/null +++ b/types/lodash-es/range.d.ts @@ -0,0 +1,2 @@ +import { range } from "lodash"; +export default range; diff --git a/types/lodash-es/range/index.d.ts b/types/lodash-es/range/index.d.ts deleted file mode 100644 index cb18402b59..0000000000 --- a/types/lodash-es/range/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const range: typeof _.range; -export default range; diff --git a/types/lodash-es/rangeRight.d.ts b/types/lodash-es/rangeRight.d.ts new file mode 100644 index 0000000000..787eb7bb9d --- /dev/null +++ b/types/lodash-es/rangeRight.d.ts @@ -0,0 +1,2 @@ +import { rangeRight } from "lodash"; +export default rangeRight; diff --git a/types/lodash-es/rangeRight/index.d.ts b/types/lodash-es/rangeRight/index.d.ts deleted file mode 100644 index e515dba52b..0000000000 --- a/types/lodash-es/rangeRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const rangeRight: typeof _.rangeRight; -export default rangeRight; diff --git a/types/lodash-es/rearg.d.ts b/types/lodash-es/rearg.d.ts new file mode 100644 index 0000000000..1f3cf9d645 --- /dev/null +++ b/types/lodash-es/rearg.d.ts @@ -0,0 +1,2 @@ +import { rearg } from "lodash"; +export default rearg; diff --git a/types/lodash-es/rearg/index.d.ts b/types/lodash-es/rearg/index.d.ts deleted file mode 100644 index e446584d67..0000000000 --- a/types/lodash-es/rearg/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const rearg: typeof _.rearg; -export default rearg; diff --git a/types/lodash-es/reduce.d.ts b/types/lodash-es/reduce.d.ts new file mode 100644 index 0000000000..bd50924d1d --- /dev/null +++ b/types/lodash-es/reduce.d.ts @@ -0,0 +1,2 @@ +import { reduce } from "lodash"; +export default reduce; diff --git a/types/lodash-es/reduce/index.d.ts b/types/lodash-es/reduce/index.d.ts deleted file mode 100644 index 4144ae4daa..0000000000 --- a/types/lodash-es/reduce/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const reduce: typeof _.reduce; -export default reduce; diff --git a/types/lodash-es/reduceRight.d.ts b/types/lodash-es/reduceRight.d.ts new file mode 100644 index 0000000000..2bd2dc34dc --- /dev/null +++ b/types/lodash-es/reduceRight.d.ts @@ -0,0 +1,2 @@ +import { reduceRight } from "lodash"; +export default reduceRight; diff --git a/types/lodash-es/reduceRight/index.d.ts b/types/lodash-es/reduceRight/index.d.ts deleted file mode 100644 index 50953f7228..0000000000 --- a/types/lodash-es/reduceRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const reduceRight: typeof _.reduceRight; -export default reduceRight; diff --git a/types/lodash-es/reject.d.ts b/types/lodash-es/reject.d.ts new file mode 100644 index 0000000000..3e1908e8f1 --- /dev/null +++ b/types/lodash-es/reject.d.ts @@ -0,0 +1,2 @@ +import { reject } from "lodash"; +export default reject; diff --git a/types/lodash-es/reject/index.d.ts b/types/lodash-es/reject/index.d.ts deleted file mode 100644 index 73812df5fe..0000000000 --- a/types/lodash-es/reject/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const reject: typeof _.reject; -export default reject; diff --git a/types/lodash-es/remove.d.ts b/types/lodash-es/remove.d.ts new file mode 100644 index 0000000000..3841ebfb8e --- /dev/null +++ b/types/lodash-es/remove.d.ts @@ -0,0 +1,2 @@ +import { remove } from "lodash"; +export default remove; diff --git a/types/lodash-es/remove/index.d.ts b/types/lodash-es/remove/index.d.ts deleted file mode 100644 index 41a78b2389..0000000000 --- a/types/lodash-es/remove/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const remove: typeof _.remove; -export default remove; diff --git a/types/lodash-es/repeat.d.ts b/types/lodash-es/repeat.d.ts new file mode 100644 index 0000000000..65968ceaf3 --- /dev/null +++ b/types/lodash-es/repeat.d.ts @@ -0,0 +1,2 @@ +import { repeat } from "lodash"; +export default repeat; diff --git a/types/lodash-es/repeat/index.d.ts b/types/lodash-es/repeat/index.d.ts deleted file mode 100644 index 64d2507d01..0000000000 --- a/types/lodash-es/repeat/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const repeat: typeof _.repeat; -export default repeat; diff --git a/types/lodash-es/replace.d.ts b/types/lodash-es/replace.d.ts new file mode 100644 index 0000000000..aaef973be7 --- /dev/null +++ b/types/lodash-es/replace.d.ts @@ -0,0 +1,2 @@ +import { replace } from "lodash"; +export default replace; diff --git a/types/lodash-es/replace/index.d.ts b/types/lodash-es/replace/index.d.ts deleted file mode 100644 index cc35b2043b..0000000000 --- a/types/lodash-es/replace/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const replace: typeof _.replace; -export default replace; diff --git a/types/lodash-es/rest.d.ts b/types/lodash-es/rest.d.ts new file mode 100644 index 0000000000..c9adf45439 --- /dev/null +++ b/types/lodash-es/rest.d.ts @@ -0,0 +1,2 @@ +import { rest } from "lodash"; +export default rest; diff --git a/types/lodash-es/rest/index.d.ts b/types/lodash-es/rest/index.d.ts deleted file mode 100644 index 4ff5ec1716..0000000000 --- a/types/lodash-es/rest/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const rest: typeof _.rest; -export default rest; diff --git a/types/lodash-es/result.d.ts b/types/lodash-es/result.d.ts new file mode 100644 index 0000000000..0eb2acf0a3 --- /dev/null +++ b/types/lodash-es/result.d.ts @@ -0,0 +1,2 @@ +import { result } from "lodash"; +export default result; diff --git a/types/lodash-es/result/index.d.ts b/types/lodash-es/result/index.d.ts deleted file mode 100644 index 36c1b43514..0000000000 --- a/types/lodash-es/result/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const result: typeof _.result; -export default result; diff --git a/types/lodash-es/reverse.d.ts b/types/lodash-es/reverse.d.ts new file mode 100644 index 0000000000..8c5d4df35f --- /dev/null +++ b/types/lodash-es/reverse.d.ts @@ -0,0 +1,2 @@ +import { reverse } from "lodash"; +export default reverse; diff --git a/types/lodash-es/reverse/index.d.ts b/types/lodash-es/reverse/index.d.ts deleted file mode 100644 index baeaadeece..0000000000 --- a/types/lodash-es/reverse/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const reverse: typeof _.reverse; -export default reverse; diff --git a/types/lodash-es/round.d.ts b/types/lodash-es/round.d.ts new file mode 100644 index 0000000000..8b3bca37f2 --- /dev/null +++ b/types/lodash-es/round.d.ts @@ -0,0 +1,2 @@ +import { round } from "lodash"; +export default round; diff --git a/types/lodash-es/round/index.d.ts b/types/lodash-es/round/index.d.ts deleted file mode 100644 index 3e689aea24..0000000000 --- a/types/lodash-es/round/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const round: typeof _.round; -export default round; diff --git a/types/lodash-es/runInContext.d.ts b/types/lodash-es/runInContext.d.ts new file mode 100644 index 0000000000..dcfba9ffed --- /dev/null +++ b/types/lodash-es/runInContext.d.ts @@ -0,0 +1,2 @@ +import { runInContext } from "lodash"; +export default runInContext; diff --git a/types/lodash-es/runInContext/index.d.ts b/types/lodash-es/runInContext/index.d.ts deleted file mode 100644 index 9062c43c9e..0000000000 --- a/types/lodash-es/runInContext/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const runInContext: typeof _.runInContext; -export default runInContext; diff --git a/types/lodash-es/sample.d.ts b/types/lodash-es/sample.d.ts new file mode 100644 index 0000000000..fda27e3c29 --- /dev/null +++ b/types/lodash-es/sample.d.ts @@ -0,0 +1,2 @@ +import { sample } from "lodash"; +export default sample; diff --git a/types/lodash-es/sample/index.d.ts b/types/lodash-es/sample/index.d.ts deleted file mode 100644 index 8b5ac9d960..0000000000 --- a/types/lodash-es/sample/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sample: typeof _.sample; -export default sample; diff --git a/types/lodash-es/sampleSize.d.ts b/types/lodash-es/sampleSize.d.ts new file mode 100644 index 0000000000..f0aae1fc08 --- /dev/null +++ b/types/lodash-es/sampleSize.d.ts @@ -0,0 +1,2 @@ +import { sampleSize } from "lodash"; +export default sampleSize; diff --git a/types/lodash-es/sampleSize/index.d.ts b/types/lodash-es/sampleSize/index.d.ts deleted file mode 100644 index fd6714d967..0000000000 --- a/types/lodash-es/sampleSize/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sampleSize: typeof _.sampleSize; -export default sampleSize; diff --git a/types/lodash-es/set.d.ts b/types/lodash-es/set.d.ts new file mode 100644 index 0000000000..1c17606e1d --- /dev/null +++ b/types/lodash-es/set.d.ts @@ -0,0 +1,2 @@ +import { set } from "lodash"; +export default set; diff --git a/types/lodash-es/set/index.d.ts b/types/lodash-es/set/index.d.ts deleted file mode 100644 index 4472c88874..0000000000 --- a/types/lodash-es/set/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const set: typeof _.set; -export default set; diff --git a/types/lodash-es/setWith.d.ts b/types/lodash-es/setWith.d.ts new file mode 100644 index 0000000000..e55d413e18 --- /dev/null +++ b/types/lodash-es/setWith.d.ts @@ -0,0 +1,2 @@ +import { setWith } from "lodash"; +export default setWith; diff --git a/types/lodash-es/setWith/index.d.ts b/types/lodash-es/setWith/index.d.ts deleted file mode 100644 index bc9bfa2f23..0000000000 --- a/types/lodash-es/setWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const setWith: typeof _.setWith; -export default setWith; diff --git a/types/lodash-es/shuffle.d.ts b/types/lodash-es/shuffle.d.ts new file mode 100644 index 0000000000..d732b62d8f --- /dev/null +++ b/types/lodash-es/shuffle.d.ts @@ -0,0 +1,2 @@ +import { shuffle } from "lodash"; +export default shuffle; diff --git a/types/lodash-es/shuffle/index.d.ts b/types/lodash-es/shuffle/index.d.ts deleted file mode 100644 index c1f10cb79f..0000000000 --- a/types/lodash-es/shuffle/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const shuffle: typeof _.shuffle; -export default shuffle; diff --git a/types/lodash-es/size.d.ts b/types/lodash-es/size.d.ts new file mode 100644 index 0000000000..9d6cf4efc0 --- /dev/null +++ b/types/lodash-es/size.d.ts @@ -0,0 +1,2 @@ +import { size } from "lodash"; +export default size; diff --git a/types/lodash-es/size/index.d.ts b/types/lodash-es/size/index.d.ts deleted file mode 100644 index 0e47c325ea..0000000000 --- a/types/lodash-es/size/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const size: typeof _.size; -export default size; diff --git a/types/lodash-es/slice.d.ts b/types/lodash-es/slice.d.ts new file mode 100644 index 0000000000..8edaaca83e --- /dev/null +++ b/types/lodash-es/slice.d.ts @@ -0,0 +1,2 @@ +import { slice } from "lodash"; +export default slice; diff --git a/types/lodash-es/slice/index.d.ts b/types/lodash-es/slice/index.d.ts deleted file mode 100644 index 9d8aaffc83..0000000000 --- a/types/lodash-es/slice/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const slice: typeof _.slice; -export default slice; diff --git a/types/lodash-es/snakeCase.d.ts b/types/lodash-es/snakeCase.d.ts new file mode 100644 index 0000000000..465ed00cf5 --- /dev/null +++ b/types/lodash-es/snakeCase.d.ts @@ -0,0 +1,2 @@ +import { snakeCase } from "lodash"; +export default snakeCase; diff --git a/types/lodash-es/snakeCase/index.d.ts b/types/lodash-es/snakeCase/index.d.ts deleted file mode 100644 index 4ed1129d8c..0000000000 --- a/types/lodash-es/snakeCase/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const snakeCase: typeof _.snakeCase; -export default snakeCase; diff --git a/types/lodash-es/some.d.ts b/types/lodash-es/some.d.ts new file mode 100644 index 0000000000..e3940c0d10 --- /dev/null +++ b/types/lodash-es/some.d.ts @@ -0,0 +1,2 @@ +import { some } from "lodash"; +export default some; diff --git a/types/lodash-es/some/index.d.ts b/types/lodash-es/some/index.d.ts deleted file mode 100644 index 27dbceeddb..0000000000 --- a/types/lodash-es/some/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const some: typeof _.some; -export default some; diff --git a/types/lodash-es/sortBy.d.ts b/types/lodash-es/sortBy.d.ts new file mode 100644 index 0000000000..1c5e7abbb3 --- /dev/null +++ b/types/lodash-es/sortBy.d.ts @@ -0,0 +1,2 @@ +import { sortBy } from "lodash"; +export default sortBy; diff --git a/types/lodash-es/sortBy/index.d.ts b/types/lodash-es/sortBy/index.d.ts deleted file mode 100644 index 3974667db9..0000000000 --- a/types/lodash-es/sortBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortBy: typeof _.sortBy; -export default sortBy; diff --git a/types/lodash-es/sortedIndex.d.ts b/types/lodash-es/sortedIndex.d.ts new file mode 100644 index 0000000000..24a9656b54 --- /dev/null +++ b/types/lodash-es/sortedIndex.d.ts @@ -0,0 +1,2 @@ +import { sortedIndex } from "lodash"; +export default sortedIndex; diff --git a/types/lodash-es/sortedIndex/index.d.ts b/types/lodash-es/sortedIndex/index.d.ts deleted file mode 100644 index 47413f639e..0000000000 --- a/types/lodash-es/sortedIndex/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedIndex: typeof _.sortedIndex; -export default sortedIndex; diff --git a/types/lodash-es/sortedIndexBy.d.ts b/types/lodash-es/sortedIndexBy.d.ts new file mode 100644 index 0000000000..a809cb6856 --- /dev/null +++ b/types/lodash-es/sortedIndexBy.d.ts @@ -0,0 +1,2 @@ +import { sortedIndexBy } from "lodash"; +export default sortedIndexBy; diff --git a/types/lodash-es/sortedIndexBy/index.d.ts b/types/lodash-es/sortedIndexBy/index.d.ts deleted file mode 100644 index 319ed34d5a..0000000000 --- a/types/lodash-es/sortedIndexBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedIndexBy: typeof _.sortedIndexBy; -export default sortedIndexBy; diff --git a/types/lodash-es/sortedIndexOf.d.ts b/types/lodash-es/sortedIndexOf.d.ts new file mode 100644 index 0000000000..6272e985d4 --- /dev/null +++ b/types/lodash-es/sortedIndexOf.d.ts @@ -0,0 +1,2 @@ +import { sortedIndexOf } from "lodash"; +export default sortedIndexOf; diff --git a/types/lodash-es/sortedIndexOf/index.d.ts b/types/lodash-es/sortedIndexOf/index.d.ts deleted file mode 100644 index 24fba2ed53..0000000000 --- a/types/lodash-es/sortedIndexOf/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedIndexOf: typeof _.sortedIndexOf; -export default sortedIndexOf; diff --git a/types/lodash-es/sortedLastIndex.d.ts b/types/lodash-es/sortedLastIndex.d.ts new file mode 100644 index 0000000000..8a7749e60a --- /dev/null +++ b/types/lodash-es/sortedLastIndex.d.ts @@ -0,0 +1,2 @@ +import { sortedLastIndex } from "lodash"; +export default sortedLastIndex; diff --git a/types/lodash-es/sortedLastIndex/index.d.ts b/types/lodash-es/sortedLastIndex/index.d.ts deleted file mode 100644 index 43f98b2a7e..0000000000 --- a/types/lodash-es/sortedLastIndex/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedLastIndex: typeof _.sortedLastIndex; -export default sortedLastIndex; diff --git a/types/lodash-es/sortedLastIndexBy.d.ts b/types/lodash-es/sortedLastIndexBy.d.ts new file mode 100644 index 0000000000..e269f651e9 --- /dev/null +++ b/types/lodash-es/sortedLastIndexBy.d.ts @@ -0,0 +1,2 @@ +import { sortedLastIndexBy } from "lodash"; +export default sortedLastIndexBy; diff --git a/types/lodash-es/sortedLastIndexBy/index.d.ts b/types/lodash-es/sortedLastIndexBy/index.d.ts deleted file mode 100644 index 9475209c54..0000000000 --- a/types/lodash-es/sortedLastIndexBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedLastIndexBy: typeof _.sortedLastIndexBy; -export default sortedLastIndexBy; diff --git a/types/lodash-es/sortedLastIndexOf.d.ts b/types/lodash-es/sortedLastIndexOf.d.ts new file mode 100644 index 0000000000..861e8257bd --- /dev/null +++ b/types/lodash-es/sortedLastIndexOf.d.ts @@ -0,0 +1,2 @@ +import { sortedLastIndexOf } from "lodash"; +export default sortedLastIndexOf; diff --git a/types/lodash-es/sortedLastIndexOf/index.d.ts b/types/lodash-es/sortedLastIndexOf/index.d.ts deleted file mode 100644 index 0616f1681c..0000000000 --- a/types/lodash-es/sortedLastIndexOf/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedLastIndexOf: typeof _.sortedLastIndexOf; -export default sortedLastIndexOf; diff --git a/types/lodash-es/sortedUniq.d.ts b/types/lodash-es/sortedUniq.d.ts new file mode 100644 index 0000000000..c6a8ac70c1 --- /dev/null +++ b/types/lodash-es/sortedUniq.d.ts @@ -0,0 +1,2 @@ +import { sortedUniq } from "lodash"; +export default sortedUniq; diff --git a/types/lodash-es/sortedUniq/index.d.ts b/types/lodash-es/sortedUniq/index.d.ts deleted file mode 100644 index d07b2cce2d..0000000000 --- a/types/lodash-es/sortedUniq/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedUniq: typeof _.sortedUniq; -export default sortedUniq; diff --git a/types/lodash-es/sortedUniqBy.d.ts b/types/lodash-es/sortedUniqBy.d.ts new file mode 100644 index 0000000000..edc3c96565 --- /dev/null +++ b/types/lodash-es/sortedUniqBy.d.ts @@ -0,0 +1,2 @@ +import { sortedUniqBy } from "lodash"; +export default sortedUniqBy; diff --git a/types/lodash-es/sortedUniqBy/index.d.ts b/types/lodash-es/sortedUniqBy/index.d.ts deleted file mode 100644 index c8f6dd5af6..0000000000 --- a/types/lodash-es/sortedUniqBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sortedUniqBy: typeof _.sortedUniqBy; -export default sortedUniqBy; diff --git a/types/lodash-es/split.d.ts b/types/lodash-es/split.d.ts new file mode 100644 index 0000000000..c220d738ad --- /dev/null +++ b/types/lodash-es/split.d.ts @@ -0,0 +1,2 @@ +import { split } from "lodash"; +export default split; diff --git a/types/lodash-es/split/index.d.ts b/types/lodash-es/split/index.d.ts deleted file mode 100644 index 324d02d47c..0000000000 --- a/types/lodash-es/split/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const split: typeof _.split; -export default split; diff --git a/types/lodash-es/spread.d.ts b/types/lodash-es/spread.d.ts new file mode 100644 index 0000000000..7f291abfff --- /dev/null +++ b/types/lodash-es/spread.d.ts @@ -0,0 +1,2 @@ +import { spread } from "lodash"; +export default spread; diff --git a/types/lodash-es/spread/index.d.ts b/types/lodash-es/spread/index.d.ts deleted file mode 100644 index 461cca54f8..0000000000 --- a/types/lodash-es/spread/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const spread: typeof _.spread; -export default spread; diff --git a/types/lodash-es/startCase.d.ts b/types/lodash-es/startCase.d.ts new file mode 100644 index 0000000000..f67c989f9f --- /dev/null +++ b/types/lodash-es/startCase.d.ts @@ -0,0 +1,2 @@ +import { startCase } from "lodash"; +export default startCase; diff --git a/types/lodash-es/startCase/index.d.ts b/types/lodash-es/startCase/index.d.ts deleted file mode 100644 index 47adda4778..0000000000 --- a/types/lodash-es/startCase/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const startCase: typeof _.startCase; -export default startCase; diff --git a/types/lodash-es/startsWith.d.ts b/types/lodash-es/startsWith.d.ts new file mode 100644 index 0000000000..4dd9f87a44 --- /dev/null +++ b/types/lodash-es/startsWith.d.ts @@ -0,0 +1,2 @@ +import { startsWith } from "lodash"; +export default startsWith; diff --git a/types/lodash-es/startsWith/index.d.ts b/types/lodash-es/startsWith/index.d.ts deleted file mode 100644 index 6911075113..0000000000 --- a/types/lodash-es/startsWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const startsWith: typeof _.startsWith; -export default startsWith; diff --git a/types/lodash-es/subtract.d.ts b/types/lodash-es/subtract.d.ts new file mode 100644 index 0000000000..974fac2f1a --- /dev/null +++ b/types/lodash-es/subtract.d.ts @@ -0,0 +1,2 @@ +import { subtract } from "lodash"; +export default subtract; diff --git a/types/lodash-es/subtract/index.d.ts b/types/lodash-es/subtract/index.d.ts deleted file mode 100644 index 0f95bf51bd..0000000000 --- a/types/lodash-es/subtract/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const subtract: typeof _.subtract; -export default subtract; diff --git a/types/lodash-es/sum.d.ts b/types/lodash-es/sum.d.ts new file mode 100644 index 0000000000..4de1fabca2 --- /dev/null +++ b/types/lodash-es/sum.d.ts @@ -0,0 +1,2 @@ +import { sum } from "lodash"; +export default sum; diff --git a/types/lodash-es/sum/index.d.ts b/types/lodash-es/sum/index.d.ts deleted file mode 100644 index 4c56b8d65e..0000000000 --- a/types/lodash-es/sum/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sum: typeof _.sum; -export default sum; diff --git a/types/lodash-es/sumBy.d.ts b/types/lodash-es/sumBy.d.ts new file mode 100644 index 0000000000..0a717f89db --- /dev/null +++ b/types/lodash-es/sumBy.d.ts @@ -0,0 +1,2 @@ +import { sumBy } from "lodash"; +export default sumBy; diff --git a/types/lodash-es/sumBy/index.d.ts b/types/lodash-es/sumBy/index.d.ts deleted file mode 100644 index f0eed13717..0000000000 --- a/types/lodash-es/sumBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const sumBy: typeof _.sumBy; -export default sumBy; diff --git a/types/lodash-es/tail.d.ts b/types/lodash-es/tail.d.ts new file mode 100644 index 0000000000..19a98d3db1 --- /dev/null +++ b/types/lodash-es/tail.d.ts @@ -0,0 +1,2 @@ +import { tail } from "lodash"; +export default tail; diff --git a/types/lodash-es/tail/index.d.ts b/types/lodash-es/tail/index.d.ts deleted file mode 100644 index 0ac36fc944..0000000000 --- a/types/lodash-es/tail/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const tail: typeof _.tail; -export default tail; diff --git a/types/lodash-es/take.d.ts b/types/lodash-es/take.d.ts new file mode 100644 index 0000000000..6c0f6a2b72 --- /dev/null +++ b/types/lodash-es/take.d.ts @@ -0,0 +1,2 @@ +import { take } from "lodash"; +export default take; diff --git a/types/lodash-es/take/index.d.ts b/types/lodash-es/take/index.d.ts deleted file mode 100644 index 93178fa05f..0000000000 --- a/types/lodash-es/take/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const take: typeof _.take; -export default take; diff --git a/types/lodash-es/takeRight.d.ts b/types/lodash-es/takeRight.d.ts new file mode 100644 index 0000000000..410a5743fb --- /dev/null +++ b/types/lodash-es/takeRight.d.ts @@ -0,0 +1,2 @@ +import { takeRight } from "lodash"; +export default takeRight; diff --git a/types/lodash-es/takeRight/index.d.ts b/types/lodash-es/takeRight/index.d.ts deleted file mode 100644 index 198c35a364..0000000000 --- a/types/lodash-es/takeRight/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const takeRight: typeof _.takeRight; -export default takeRight; diff --git a/types/lodash-es/takeRightWhile.d.ts b/types/lodash-es/takeRightWhile.d.ts new file mode 100644 index 0000000000..81f328c4f6 --- /dev/null +++ b/types/lodash-es/takeRightWhile.d.ts @@ -0,0 +1,2 @@ +import { takeRightWhile } from "lodash"; +export default takeRightWhile; diff --git a/types/lodash-es/takeRightWhile/index.d.ts b/types/lodash-es/takeRightWhile/index.d.ts deleted file mode 100644 index d530ad33d6..0000000000 --- a/types/lodash-es/takeRightWhile/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const takeRightWhile: typeof _.takeRightWhile; -export default takeRightWhile; diff --git a/types/lodash-es/takeWhile.d.ts b/types/lodash-es/takeWhile.d.ts new file mode 100644 index 0000000000..427a11c6b3 --- /dev/null +++ b/types/lodash-es/takeWhile.d.ts @@ -0,0 +1,2 @@ +import { takeWhile } from "lodash"; +export default takeWhile; diff --git a/types/lodash-es/takeWhile/index.d.ts b/types/lodash-es/takeWhile/index.d.ts deleted file mode 100644 index 526f3743b1..0000000000 --- a/types/lodash-es/takeWhile/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const takeWhile: typeof _.takeWhile; -export default takeWhile; diff --git a/types/lodash-es/tap.d.ts b/types/lodash-es/tap.d.ts new file mode 100644 index 0000000000..f6e1710b43 --- /dev/null +++ b/types/lodash-es/tap.d.ts @@ -0,0 +1,2 @@ +import { tap } from "lodash"; +export default tap; diff --git a/types/lodash-es/tap/index.d.ts b/types/lodash-es/tap/index.d.ts deleted file mode 100644 index 33c2b8b111..0000000000 --- a/types/lodash-es/tap/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const tap: typeof _.tap; -export default tap; diff --git a/types/lodash-es/template.d.ts b/types/lodash-es/template.d.ts new file mode 100644 index 0000000000..c1d60d38c7 --- /dev/null +++ b/types/lodash-es/template.d.ts @@ -0,0 +1,2 @@ +import { template } from "lodash"; +export default template; diff --git a/types/lodash-es/template/index.d.ts b/types/lodash-es/template/index.d.ts deleted file mode 100644 index d034b9fa77..0000000000 --- a/types/lodash-es/template/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const template: typeof _.template; -export default template; diff --git a/types/lodash-es/throttle.d.ts b/types/lodash-es/throttle.d.ts new file mode 100644 index 0000000000..7eae03e4e8 --- /dev/null +++ b/types/lodash-es/throttle.d.ts @@ -0,0 +1,2 @@ +import { throttle } from "lodash"; +export default throttle; diff --git a/types/lodash-es/throttle/index.d.ts b/types/lodash-es/throttle/index.d.ts deleted file mode 100644 index 513c7b5d5d..0000000000 --- a/types/lodash-es/throttle/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const throttle: typeof _.throttle; -export default throttle; diff --git a/types/lodash-es/thru.d.ts b/types/lodash-es/thru.d.ts new file mode 100644 index 0000000000..4140290e7e --- /dev/null +++ b/types/lodash-es/thru.d.ts @@ -0,0 +1,2 @@ +import { thru } from "lodash"; +export default thru; diff --git a/types/lodash-es/thru/index.d.ts b/types/lodash-es/thru/index.d.ts deleted file mode 100644 index 1726f23228..0000000000 --- a/types/lodash-es/thru/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const thru: typeof _.thru; -export default thru; diff --git a/types/lodash-es/times.d.ts b/types/lodash-es/times.d.ts new file mode 100644 index 0000000000..e4b6cd7a46 --- /dev/null +++ b/types/lodash-es/times.d.ts @@ -0,0 +1,2 @@ +import { times } from "lodash"; +export default times; diff --git a/types/lodash-es/times/index.d.ts b/types/lodash-es/times/index.d.ts deleted file mode 100644 index a917d3c4b1..0000000000 --- a/types/lodash-es/times/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const times: typeof _.times; -export default times; diff --git a/types/lodash-es/toArray.d.ts b/types/lodash-es/toArray.d.ts new file mode 100644 index 0000000000..2f1a5e1359 --- /dev/null +++ b/types/lodash-es/toArray.d.ts @@ -0,0 +1,2 @@ +import { toArray } from "lodash"; +export default toArray; diff --git a/types/lodash-es/toArray/index.d.ts b/types/lodash-es/toArray/index.d.ts deleted file mode 100644 index 3c0a17b73b..0000000000 --- a/types/lodash-es/toArray/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toArray: typeof _.toArray; -export default toArray; diff --git a/types/lodash-es/toInteger.d.ts b/types/lodash-es/toInteger.d.ts new file mode 100644 index 0000000000..f59092df17 --- /dev/null +++ b/types/lodash-es/toInteger.d.ts @@ -0,0 +1,2 @@ +import { toInteger } from "lodash"; +export default toInteger; diff --git a/types/lodash-es/toInteger/index.d.ts b/types/lodash-es/toInteger/index.d.ts deleted file mode 100644 index 2cc3269564..0000000000 --- a/types/lodash-es/toInteger/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toInteger: typeof _.toInteger; -export default toInteger; diff --git a/types/lodash-es/toLength.d.ts b/types/lodash-es/toLength.d.ts new file mode 100644 index 0000000000..81b02f0015 --- /dev/null +++ b/types/lodash-es/toLength.d.ts @@ -0,0 +1,2 @@ +import { toLength } from "lodash"; +export default toLength; diff --git a/types/lodash-es/toLength/index.d.ts b/types/lodash-es/toLength/index.d.ts deleted file mode 100644 index 5a58a74444..0000000000 --- a/types/lodash-es/toLength/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toLength: typeof _.toLength; -export default toLength; diff --git a/types/lodash-es/toLower.d.ts b/types/lodash-es/toLower.d.ts new file mode 100644 index 0000000000..615f350f9f --- /dev/null +++ b/types/lodash-es/toLower.d.ts @@ -0,0 +1,2 @@ +import { toLower } from "lodash"; +export default toLower; diff --git a/types/lodash-es/toLower/index.d.ts b/types/lodash-es/toLower/index.d.ts deleted file mode 100644 index 822e0a5398..0000000000 --- a/types/lodash-es/toLower/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toLower: typeof _.toLower; -export default toLower; diff --git a/types/lodash-es/toNumber.d.ts b/types/lodash-es/toNumber.d.ts new file mode 100644 index 0000000000..40ebb4197d --- /dev/null +++ b/types/lodash-es/toNumber.d.ts @@ -0,0 +1,2 @@ +import { toNumber } from "lodash"; +export default toNumber; diff --git a/types/lodash-es/toNumber/index.d.ts b/types/lodash-es/toNumber/index.d.ts deleted file mode 100644 index 773b27b6ac..0000000000 --- a/types/lodash-es/toNumber/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toNumber: typeof _.toNumber; -export default toNumber; diff --git a/types/lodash-es/toPairs.d.ts b/types/lodash-es/toPairs.d.ts new file mode 100644 index 0000000000..73264e0472 --- /dev/null +++ b/types/lodash-es/toPairs.d.ts @@ -0,0 +1,2 @@ +import { toPairs } from "lodash"; +export default toPairs; diff --git a/types/lodash-es/toPairs/index.d.ts b/types/lodash-es/toPairs/index.d.ts deleted file mode 100644 index c8dd85752c..0000000000 --- a/types/lodash-es/toPairs/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toPairs: typeof _.toPairs; -export default toPairs; diff --git a/types/lodash-es/toPairsIn.d.ts b/types/lodash-es/toPairsIn.d.ts new file mode 100644 index 0000000000..177790d785 --- /dev/null +++ b/types/lodash-es/toPairsIn.d.ts @@ -0,0 +1,2 @@ +import { toPairsIn } from "lodash"; +export default toPairsIn; diff --git a/types/lodash-es/toPairsIn/index.d.ts b/types/lodash-es/toPairsIn/index.d.ts deleted file mode 100644 index f25ebc6231..0000000000 --- a/types/lodash-es/toPairsIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toPairsIn: typeof _.toPairsIn; -export default toPairsIn; diff --git a/types/lodash-es/toPath.d.ts b/types/lodash-es/toPath.d.ts new file mode 100644 index 0000000000..f35db4eff1 --- /dev/null +++ b/types/lodash-es/toPath.d.ts @@ -0,0 +1,2 @@ +import { toPath } from "lodash"; +export default toPath; diff --git a/types/lodash-es/toPath/index.d.ts b/types/lodash-es/toPath/index.d.ts deleted file mode 100644 index 14c24785e0..0000000000 --- a/types/lodash-es/toPath/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toPath: typeof _.toPath; -export default toPath; diff --git a/types/lodash-es/toPlainObject.d.ts b/types/lodash-es/toPlainObject.d.ts new file mode 100644 index 0000000000..3020ca7f64 --- /dev/null +++ b/types/lodash-es/toPlainObject.d.ts @@ -0,0 +1,2 @@ +import { toPlainObject } from "lodash"; +export default toPlainObject; diff --git a/types/lodash-es/toPlainObject/index.d.ts b/types/lodash-es/toPlainObject/index.d.ts deleted file mode 100644 index daf78df646..0000000000 --- a/types/lodash-es/toPlainObject/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toPlainObject: typeof _.toPlainObject; -export default toPlainObject; diff --git a/types/lodash-es/toSafeInteger.d.ts b/types/lodash-es/toSafeInteger.d.ts new file mode 100644 index 0000000000..f83a411cfe --- /dev/null +++ b/types/lodash-es/toSafeInteger.d.ts @@ -0,0 +1,2 @@ +import { toSafeInteger } from "lodash"; +export default toSafeInteger; diff --git a/types/lodash-es/toSafeInteger/index.d.ts b/types/lodash-es/toSafeInteger/index.d.ts deleted file mode 100644 index 8a745612c7..0000000000 --- a/types/lodash-es/toSafeInteger/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toSafeInteger: typeof _.toSafeInteger; -export default toSafeInteger; diff --git a/types/lodash-es/toString.d.ts b/types/lodash-es/toString.d.ts new file mode 100644 index 0000000000..5c5f188492 --- /dev/null +++ b/types/lodash-es/toString.d.ts @@ -0,0 +1,2 @@ +import { toString } from "lodash"; +export default toString; diff --git a/types/lodash-es/toString/index.d.ts b/types/lodash-es/toString/index.d.ts deleted file mode 100644 index 4368b5151e..0000000000 --- a/types/lodash-es/toString/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toString: typeof _.toString; -export default toString; diff --git a/types/lodash-es/toUpper.d.ts b/types/lodash-es/toUpper.d.ts new file mode 100644 index 0000000000..599915bef2 --- /dev/null +++ b/types/lodash-es/toUpper.d.ts @@ -0,0 +1,2 @@ +import { toUpper } from "lodash"; +export default toUpper; diff --git a/types/lodash-es/toUpper/index.d.ts b/types/lodash-es/toUpper/index.d.ts deleted file mode 100644 index 1af2cf82ad..0000000000 --- a/types/lodash-es/toUpper/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const toUpper: typeof _.toUpper; -export default toUpper; diff --git a/types/lodash-es/transform.d.ts b/types/lodash-es/transform.d.ts new file mode 100644 index 0000000000..3731896155 --- /dev/null +++ b/types/lodash-es/transform.d.ts @@ -0,0 +1,2 @@ +import { transform } from "lodash"; +export default transform; diff --git a/types/lodash-es/transform/index.d.ts b/types/lodash-es/transform/index.d.ts deleted file mode 100644 index 3cf81aaa34..0000000000 --- a/types/lodash-es/transform/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const transform: typeof _.transform; -export default transform; diff --git a/types/lodash-es/trim.d.ts b/types/lodash-es/trim.d.ts new file mode 100644 index 0000000000..6d882e679c --- /dev/null +++ b/types/lodash-es/trim.d.ts @@ -0,0 +1,2 @@ +import { trim } from "lodash"; +export default trim; diff --git a/types/lodash-es/trim/index.d.ts b/types/lodash-es/trim/index.d.ts deleted file mode 100644 index f4339c8ef4..0000000000 --- a/types/lodash-es/trim/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const trim: typeof _.trim; -export default trim; diff --git a/types/lodash-es/trimEnd.d.ts b/types/lodash-es/trimEnd.d.ts new file mode 100644 index 0000000000..b8950b07ee --- /dev/null +++ b/types/lodash-es/trimEnd.d.ts @@ -0,0 +1,2 @@ +import { trimEnd } from "lodash"; +export default trimEnd; diff --git a/types/lodash-es/trimEnd/index.d.ts b/types/lodash-es/trimEnd/index.d.ts deleted file mode 100644 index dd2e972c0e..0000000000 --- a/types/lodash-es/trimEnd/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const trimEnd: typeof _.trimEnd; -export default trimEnd; diff --git a/types/lodash-es/trimStart.d.ts b/types/lodash-es/trimStart.d.ts new file mode 100644 index 0000000000..f7ac80a5a5 --- /dev/null +++ b/types/lodash-es/trimStart.d.ts @@ -0,0 +1,2 @@ +import { trimStart } from "lodash"; +export default trimStart; diff --git a/types/lodash-es/trimStart/index.d.ts b/types/lodash-es/trimStart/index.d.ts deleted file mode 100644 index 8a097d0e41..0000000000 --- a/types/lodash-es/trimStart/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const trimStart: typeof _.trimStart; -export default trimStart; diff --git a/types/lodash-es/truncate.d.ts b/types/lodash-es/truncate.d.ts new file mode 100644 index 0000000000..47527db2c5 --- /dev/null +++ b/types/lodash-es/truncate.d.ts @@ -0,0 +1,2 @@ +import { truncate } from "lodash"; +export default truncate; diff --git a/types/lodash-es/truncate/index.d.ts b/types/lodash-es/truncate/index.d.ts deleted file mode 100644 index b460b03a77..0000000000 --- a/types/lodash-es/truncate/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const truncate: typeof _.truncate; -export default truncate; diff --git a/types/lodash-es/tsconfig.json b/types/lodash-es/tsconfig.json index 9d2eae2c71..4cb568cb78 100644 --- a/types/lodash-es/tsconfig.json +++ b/types/lodash-es/tsconfig.json @@ -1,294 +1,4 @@ { - "files": [ - "index.d.ts", - "lodash-es-tests.ts", - "add/index.d.ts", - "after/index.d.ts", - "ary/index.d.ts", - "assign/index.d.ts", - "assignIn/index.d.ts", - "assignInWith/index.d.ts", - "assignWith/index.d.ts", - "at/index.d.ts", - "attempt/index.d.ts", - "before/index.d.ts", - "bind/index.d.ts", - "bindAll/index.d.ts", - "bindKey/index.d.ts", - "camelCase/index.d.ts", - "capitalize/index.d.ts", - "castArray/index.d.ts", - "ceil/index.d.ts", - "chain/index.d.ts", - "chunk/index.d.ts", - "clamp/index.d.ts", - "clone/index.d.ts", - "cloneDeep/index.d.ts", - "cloneDeepWith/index.d.ts", - "cloneWith/index.d.ts", - "compact/index.d.ts", - "concat/index.d.ts", - "constant/index.d.ts", - "countBy/index.d.ts", - "create/index.d.ts", - "curry/index.d.ts", - "curryRight/index.d.ts", - "debounce/index.d.ts", - "deburr/index.d.ts", - "defaults/index.d.ts", - "defaultsDeep/index.d.ts", - "defer/index.d.ts", - "delay/index.d.ts", - "difference/index.d.ts", - "differenceBy/index.d.ts", - "differenceWith/index.d.ts", - "drop/index.d.ts", - "dropRight/index.d.ts", - "dropRightWhile/index.d.ts", - "dropWhile/index.d.ts", - "each/index.d.ts", - "eachRight/index.d.ts", - "endsWith/index.d.ts", - "eq/index.d.ts", - "escape/index.d.ts", - "escapeRegExp/index.d.ts", - "every/index.d.ts", - "extend/index.d.ts", - "extendWith/index.d.ts", - "fb/index.d.ts", - "fill/index.d.ts", - "filter/index.d.ts", - "find/index.d.ts", - "findIndex/index.d.ts", - "findKey/index.d.ts", - "findLast/index.d.ts", - "findLastIndex/index.d.ts", - "findLastKey/index.d.ts", - "first/index.d.ts", - "flatMap/index.d.ts", - "flatten/index.d.ts", - "flattenDeep/index.d.ts", - "flattenDepth/index.d.ts", - "flip/index.d.ts", - "floor/index.d.ts", - "flow/index.d.ts", - "flowRight/index.d.ts", - "forEach/index.d.ts", - "forEachRight/index.d.ts", - "forIn/index.d.ts", - "forInRight/index.d.ts", - "forOwn/index.d.ts", - "forOwnRight/index.d.ts", - "fromPairs/index.d.ts", - "functions/index.d.ts", - "functionsIn/index.d.ts", - "get/index.d.ts", - "groupBy/index.d.ts", - "gt/index.d.ts", - "gte/index.d.ts", - "has/index.d.ts", - "hasIn/index.d.ts", - "head/index.d.ts", - "identity/index.d.ts", - "includes/index.d.ts", - "indexOf/index.d.ts", - "initial/index.d.ts", - "inRange/index.d.ts", - "intersection/index.d.ts", - "intersectionBy/index.d.ts", - "intersectionWith/index.d.ts", - "invert/index.d.ts", - "invertBy/index.d.ts", - "invoke/index.d.ts", - "invokeMap/index.d.ts", - "isArguments/index.d.ts", - "isArray/index.d.ts", - "isArrayBuffer/index.d.ts", - "isArrayLike/index.d.ts", - "isArrayLikeObject/index.d.ts", - "isBoolean/index.d.ts", - "isBuffer/index.d.ts", - "isDate/index.d.ts", - "isElement/index.d.ts", - "isEmpty/index.d.ts", - "isEqual/index.d.ts", - "isEqualWith/index.d.ts", - "isError/index.d.ts", - "isFinite/index.d.ts", - "isFunction/index.d.ts", - "isInteger/index.d.ts", - "isLength/index.d.ts", - "isMap/index.d.ts", - "isMatch/index.d.ts", - "isMatchWith/index.d.ts", - "isNaN/index.d.ts", - "isNative/index.d.ts", - "isNil/index.d.ts", - "isNull/index.d.ts", - "isNumber/index.d.ts", - "isObject/index.d.ts", - "isObjectLike/index.d.ts", - "isPlainObject/index.d.ts", - "isRegExp/index.d.ts", - "isSafeInteger/index.d.ts", - "isSet/index.d.ts", - "isString/index.d.ts", - "isSymbol/index.d.ts", - "isTypedArray/index.d.ts", - "isUndefined/index.d.ts", - "isWeakMap/index.d.ts", - "isWeakSet/index.d.ts", - "iteratee/index.d.ts", - "join/index.d.ts", - "kebabCase/index.d.ts", - "keyBy/index.d.ts", - "keys/index.d.ts", - "keysIn/index.d.ts", - "last/index.d.ts", - "lastIndexOf/index.d.ts", - "lowerCase/index.d.ts", - "lowerFirst/index.d.ts", - "lt/index.d.ts", - "lte/index.d.ts", - "map/index.d.ts", - "mapKeys/index.d.ts", - "mapValues/index.d.ts", - "matches/index.d.ts", - "matchesProperty/index.d.ts", - "max/index.d.ts", - "maxBy/index.d.ts", - "mean/index.d.ts", - "meanBy/index.d.ts", - "memoize/index.d.ts", - "merge/index.d.ts", - "mergeWith/index.d.ts", - "method/index.d.ts", - "methodOf/index.d.ts", - "min/index.d.ts", - "minBy/index.d.ts", - "mixin/index.d.ts", - "negate/index.d.ts", - "noConflict/index.d.ts", - "noop/index.d.ts", - "now/index.d.ts", - "nthArg/index.d.ts", - "omit/index.d.ts", - "omitBy/index.d.ts", - "once/index.d.ts", - "orderBy/index.d.ts", - "over/index.d.ts", - "overArgs/index.d.ts", - "overEvery/index.d.ts", - "overSome/index.d.ts", - "pad/index.d.ts", - "padEnd/index.d.ts", - "padStart/index.d.ts", - "parseInt/index.d.ts", - "partial/index.d.ts", - "partialRight/index.d.ts", - "partition/index.d.ts", - "pick/index.d.ts", - "pickBy/index.d.ts", - "property/index.d.ts", - "propertyOf/index.d.ts", - "pull/index.d.ts", - "pullAll/index.d.ts", - "pullAllBy/index.d.ts", - "pullAt/index.d.ts", - "random/index.d.ts", - "range/index.d.ts", - "rangeRight/index.d.ts", - "rearg/index.d.ts", - "reduce/index.d.ts", - "reduceRight/index.d.ts", - "reject/index.d.ts", - "remove/index.d.ts", - "repeat/index.d.ts", - "replace/index.d.ts", - "rest/index.d.ts", - "result/index.d.ts", - "reverse/index.d.ts", - "round/index.d.ts", - "runInContext/index.d.ts", - "sample/index.d.ts", - "sampleSize/index.d.ts", - "set/index.d.ts", - "setWith/index.d.ts", - "shuffle/index.d.ts", - "size/index.d.ts", - "slice/index.d.ts", - "snakeCase/index.d.ts", - "some/index.d.ts", - "sortBy/index.d.ts", - "sortedIndex/index.d.ts", - "sortedIndexBy/index.d.ts", - "sortedIndexOf/index.d.ts", - "sortedLastIndex/index.d.ts", - "sortedLastIndexBy/index.d.ts", - "sortedLastIndexOf/index.d.ts", - "sortedUniq/index.d.ts", - "sortedUniqBy/index.d.ts", - "split/index.d.ts", - "spread/index.d.ts", - "startCase/index.d.ts", - "startsWith/index.d.ts", - "subtract/index.d.ts", - "sum/index.d.ts", - "sumBy/index.d.ts", - "tail/index.d.ts", - "take/index.d.ts", - "takeRight/index.d.ts", - "takeRightWhile/index.d.ts", - "takeWhile/index.d.ts", - "tap/index.d.ts", - "template/index.d.ts", - "throttle/index.d.ts", - "thru/index.d.ts", - "times/index.d.ts", - "toArray/index.d.ts", - "toInteger/index.d.ts", - "toLength/index.d.ts", - "toLower/index.d.ts", - "toNumber/index.d.ts", - "toPairs/index.d.ts", - "toPairsIn/index.d.ts", - "toPath/index.d.ts", - "toPlainObject/index.d.ts", - "toSafeInteger/index.d.ts", - "toString/index.d.ts", - "toUpper/index.d.ts", - "transform/index.d.ts", - "trim/index.d.ts", - "trimEnd/index.d.ts", - "trimStart/index.d.ts", - "truncate/index.d.ts", - "unary/index.d.ts", - "unescape/index.d.ts", - "union/index.d.ts", - "unionBy/index.d.ts", - "unionWith/index.d.ts", - "uniq/index.d.ts", - "uniqBy/index.d.ts", - "uniqueId/index.d.ts", - "uniqWith/index.d.ts", - "unset/index.d.ts", - "unzip/index.d.ts", - "unzipWith/index.d.ts", - "update/index.d.ts", - "upperCase/index.d.ts", - "upperFirst/index.d.ts", - "values/index.d.ts", - "valuesIn/index.d.ts", - "without/index.d.ts", - "words/index.d.ts", - "wrap/index.d.ts", - "xor/index.d.ts", - "xorBy/index.d.ts", - "xorWith/index.d.ts", - "zip/index.d.ts", - "zipObject/index.d.ts", - "zipWith/index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -296,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -304,5 +14,294 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts", + "lodash-es-tests.ts", + "add.d.ts", + "after.d.ts", + "ary.d.ts", + "assign.d.ts", + "assignIn.d.ts", + "assignInWith.d.ts", + "assignWith.d.ts", + "at.d.ts", + "attempt.d.ts", + "before.d.ts", + "bind.d.ts", + "bindAll.d.ts", + "bindKey.d.ts", + "camelCase.d.ts", + "capitalize.d.ts", + "castArray.d.ts", + "ceil.d.ts", + "chain.d.ts", + "chunk.d.ts", + "clamp.d.ts", + "clone.d.ts", + "cloneDeep.d.ts", + "cloneDeepWith.d.ts", + "cloneWith.d.ts", + "compact.d.ts", + "concat.d.ts", + "constant.d.ts", + "countBy.d.ts", + "create.d.ts", + "curry.d.ts", + "curryRight.d.ts", + "debounce.d.ts", + "deburr.d.ts", + "defaults.d.ts", + "defaultsDeep.d.ts", + "defer.d.ts", + "delay.d.ts", + "difference.d.ts", + "differenceBy.d.ts", + "differenceWith.d.ts", + "drop.d.ts", + "dropRight.d.ts", + "dropRightWhile.d.ts", + "dropWhile.d.ts", + "each.d.ts", + "eachRight.d.ts", + "endsWith.d.ts", + "eq.d.ts", + "escape.d.ts", + "escapeRegExp.d.ts", + "every.d.ts", + "extend.d.ts", + "extendWith.d.ts", + "fill.d.ts", + "filter.d.ts", + "find.d.ts", + "findIndex.d.ts", + "findKey.d.ts", + "findLast.d.ts", + "findLastIndex.d.ts", + "findLastKey.d.ts", + "first.d.ts", + "flatMap.d.ts", + "flatten.d.ts", + "flattenDeep.d.ts", + "flattenDepth.d.ts", + "flip.d.ts", + "floor.d.ts", + "flow.d.ts", + "flowRight.d.ts", + "forEach.d.ts", + "forEachRight.d.ts", + "forIn.d.ts", + "forInRight.d.ts", + "forOwn.d.ts", + "forOwnRight.d.ts", + "fromPairs.d.ts", + "functions.d.ts", + "functionsIn.d.ts", + "get.d.ts", + "groupBy.d.ts", + "gt.d.ts", + "gte.d.ts", + "has.d.ts", + "hasIn.d.ts", + "head.d.ts", + "identity.d.ts", + "inRange.d.ts", + "includes.d.ts", + "indexOf.d.ts", + "initial.d.ts", + "intersection.d.ts", + "intersectionBy.d.ts", + "intersectionWith.d.ts", + "invert.d.ts", + "invertBy.d.ts", + "invoke.d.ts", + "invokeMap.d.ts", + "isArguments.d.ts", + "isArray.d.ts", + "isArrayBuffer.d.ts", + "isArrayLike.d.ts", + "isArrayLikeObject.d.ts", + "isBoolean.d.ts", + "isBuffer.d.ts", + "isDate.d.ts", + "isElement.d.ts", + "isEmpty.d.ts", + "isEqual.d.ts", + "isEqualWith.d.ts", + "isError.d.ts", + "isFinite.d.ts", + "isFunction.d.ts", + "isInteger.d.ts", + "isLength.d.ts", + "isMap.d.ts", + "isMatch.d.ts", + "isMatchWith.d.ts", + "isNaN.d.ts", + "isNative.d.ts", + "isNil.d.ts", + "isNull.d.ts", + "isNumber.d.ts", + "isObject.d.ts", + "isObjectLike.d.ts", + "isPlainObject.d.ts", + "isRegExp.d.ts", + "isSafeInteger.d.ts", + "isSet.d.ts", + "isString.d.ts", + "isSymbol.d.ts", + "isTypedArray.d.ts", + "isUndefined.d.ts", + "isWeakMap.d.ts", + "isWeakSet.d.ts", + "iteratee.d.ts", + "join.d.ts", + "kebabCase.d.ts", + "keyBy.d.ts", + "keys.d.ts", + "keysIn.d.ts", + "last.d.ts", + "lastIndexOf.d.ts", + "lowerCase.d.ts", + "lowerFirst.d.ts", + "lt.d.ts", + "lte.d.ts", + "map.d.ts", + "mapKeys.d.ts", + "mapValues.d.ts", + "matches.d.ts", + "matchesProperty.d.ts", + "max.d.ts", + "maxBy.d.ts", + "mean.d.ts", + "meanBy.d.ts", + "memoize.d.ts", + "merge.d.ts", + "mergeWith.d.ts", + "method.d.ts", + "methodOf.d.ts", + "min.d.ts", + "minBy.d.ts", + "mixin.d.ts", + "negate.d.ts", + "noConflict.d.ts", + "noop.d.ts", + "now.d.ts", + "nthArg.d.ts", + "omit.d.ts", + "omitBy.d.ts", + "once.d.ts", + "orderBy.d.ts", + "over.d.ts", + "overArgs.d.ts", + "overEvery.d.ts", + "overSome.d.ts", + "pad.d.ts", + "padEnd.d.ts", + "padStart.d.ts", + "parseInt.d.ts", + "partial.d.ts", + "partialRight.d.ts", + "partition.d.ts", + "pick.d.ts", + "pickBy.d.ts", + "property.d.ts", + "propertyOf.d.ts", + "pull.d.ts", + "pullAll.d.ts", + "pullAllBy.d.ts", + "pullAt.d.ts", + "random.d.ts", + "range.d.ts", + "rangeRight.d.ts", + "rearg.d.ts", + "reduce.d.ts", + "reduceRight.d.ts", + "reject.d.ts", + "remove.d.ts", + "repeat.d.ts", + "replace.d.ts", + "rest.d.ts", + "result.d.ts", + "reverse.d.ts", + "round.d.ts", + "runInContext.d.ts", + "sample.d.ts", + "sampleSize.d.ts", + "set.d.ts", + "setWith.d.ts", + "shuffle.d.ts", + "size.d.ts", + "slice.d.ts", + "snakeCase.d.ts", + "some.d.ts", + "sortBy.d.ts", + "sortedIndex.d.ts", + "sortedIndexBy.d.ts", + "sortedIndexOf.d.ts", + "sortedLastIndex.d.ts", + "sortedLastIndexBy.d.ts", + "sortedLastIndexOf.d.ts", + "sortedUniq.d.ts", + "sortedUniqBy.d.ts", + "split.d.ts", + "spread.d.ts", + "startCase.d.ts", + "startsWith.d.ts", + "subtract.d.ts", + "sum.d.ts", + "sumBy.d.ts", + "tail.d.ts", + "take.d.ts", + "takeRight.d.ts", + "takeRightWhile.d.ts", + "takeWhile.d.ts", + "tap.d.ts", + "template.d.ts", + "throttle.d.ts", + "thru.d.ts", + "times.d.ts", + "toArray.d.ts", + "toInteger.d.ts", + "toLength.d.ts", + "toLower.d.ts", + "toNumber.d.ts", + "toPairs.d.ts", + "toPairsIn.d.ts", + "toPath.d.ts", + "toPlainObject.d.ts", + "toSafeInteger.d.ts", + "toString.d.ts", + "toUpper.d.ts", + "transform.d.ts", + "trim.d.ts", + "trimEnd.d.ts", + "trimStart.d.ts", + "truncate.d.ts", + "unary.d.ts", + "unescape.d.ts", + "union.d.ts", + "unionBy.d.ts", + "unionWith.d.ts", + "uniq.d.ts", + "uniqBy.d.ts", + "uniqWith.d.ts", + "uniqueId.d.ts", + "unset.d.ts", + "unzip.d.ts", + "unzipWith.d.ts", + "update.d.ts", + "upperCase.d.ts", + "upperFirst.d.ts", + "values.d.ts", + "valuesIn.d.ts", + "without.d.ts", + "words.d.ts", + "wrap.d.ts", + "xor.d.ts", + "xorBy.d.ts", + "xorWith.d.ts", + "zip.d.ts", + "zipObject.d.ts", + "zipWith.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash-es/unary.d.ts b/types/lodash-es/unary.d.ts new file mode 100644 index 0000000000..c4bcb1017f --- /dev/null +++ b/types/lodash-es/unary.d.ts @@ -0,0 +1,2 @@ +import { unary } from "lodash"; +export default unary; diff --git a/types/lodash-es/unary/index.d.ts b/types/lodash-es/unary/index.d.ts deleted file mode 100644 index d8c0e57fb1..0000000000 --- a/types/lodash-es/unary/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unary: typeof _.unary; -export default unary; diff --git a/types/lodash-es/unescape.d.ts b/types/lodash-es/unescape.d.ts new file mode 100644 index 0000000000..4bc158c85b --- /dev/null +++ b/types/lodash-es/unescape.d.ts @@ -0,0 +1,2 @@ +import { unescape } from "lodash"; +export default unescape; diff --git a/types/lodash-es/unescape/index.d.ts b/types/lodash-es/unescape/index.d.ts deleted file mode 100644 index 3506888535..0000000000 --- a/types/lodash-es/unescape/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unescape: typeof _.unescape; -export default unescape; diff --git a/types/lodash-es/union.d.ts b/types/lodash-es/union.d.ts new file mode 100644 index 0000000000..3a9872f95c --- /dev/null +++ b/types/lodash-es/union.d.ts @@ -0,0 +1,2 @@ +import { union } from "lodash"; +export default union; diff --git a/types/lodash-es/union/index.d.ts b/types/lodash-es/union/index.d.ts deleted file mode 100644 index b08034f25c..0000000000 --- a/types/lodash-es/union/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const union: typeof _.union; -export default union; diff --git a/types/lodash-es/unionBy.d.ts b/types/lodash-es/unionBy.d.ts new file mode 100644 index 0000000000..3c1180e005 --- /dev/null +++ b/types/lodash-es/unionBy.d.ts @@ -0,0 +1,2 @@ +import { unionBy } from "lodash"; +export default unionBy; diff --git a/types/lodash-es/unionBy/index.d.ts b/types/lodash-es/unionBy/index.d.ts deleted file mode 100644 index edadc46ba2..0000000000 --- a/types/lodash-es/unionBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unionBy: typeof _.unionBy; -export default unionBy; diff --git a/types/lodash-es/unionWith.d.ts b/types/lodash-es/unionWith.d.ts new file mode 100644 index 0000000000..63262a3e30 --- /dev/null +++ b/types/lodash-es/unionWith.d.ts @@ -0,0 +1,2 @@ +import { unionWith } from "lodash"; +export default unionWith; diff --git a/types/lodash-es/unionWith/index.d.ts b/types/lodash-es/unionWith/index.d.ts deleted file mode 100644 index d54e10d78c..0000000000 --- a/types/lodash-es/unionWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unionWith: typeof _.unionWith; -export default unionWith; diff --git a/types/lodash-es/uniq.d.ts b/types/lodash-es/uniq.d.ts new file mode 100644 index 0000000000..57c4f20b29 --- /dev/null +++ b/types/lodash-es/uniq.d.ts @@ -0,0 +1,2 @@ +import { uniq } from "lodash"; +export default uniq; diff --git a/types/lodash-es/uniq/index.d.ts b/types/lodash-es/uniq/index.d.ts deleted file mode 100644 index 4762079e3c..0000000000 --- a/types/lodash-es/uniq/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const uniq: typeof _.uniq; -export default uniq; diff --git a/types/lodash-es/uniqBy.d.ts b/types/lodash-es/uniqBy.d.ts new file mode 100644 index 0000000000..f435d4a2ad --- /dev/null +++ b/types/lodash-es/uniqBy.d.ts @@ -0,0 +1,2 @@ +import { uniqBy } from "lodash"; +export default uniqBy; diff --git a/types/lodash-es/uniqBy/index.d.ts b/types/lodash-es/uniqBy/index.d.ts deleted file mode 100644 index 375c79ff00..0000000000 --- a/types/lodash-es/uniqBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const uniqBy: typeof _.uniqBy; -export default uniqBy; diff --git a/types/lodash-es/uniqWith.d.ts b/types/lodash-es/uniqWith.d.ts new file mode 100644 index 0000000000..6f4944838c --- /dev/null +++ b/types/lodash-es/uniqWith.d.ts @@ -0,0 +1,2 @@ +import { uniqWith } from "lodash"; +export default uniqWith; diff --git a/types/lodash-es/uniqWith/index.d.ts b/types/lodash-es/uniqWith/index.d.ts deleted file mode 100644 index 206dbd676f..0000000000 --- a/types/lodash-es/uniqWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const uniqWith: typeof _.uniqWith; -export default uniqWith; diff --git a/types/lodash-es/uniqueId.d.ts b/types/lodash-es/uniqueId.d.ts new file mode 100644 index 0000000000..5e15e07385 --- /dev/null +++ b/types/lodash-es/uniqueId.d.ts @@ -0,0 +1,2 @@ +import { uniqueId } from "lodash"; +export default uniqueId; diff --git a/types/lodash-es/uniqueId/index.d.ts b/types/lodash-es/uniqueId/index.d.ts deleted file mode 100644 index 19fc567963..0000000000 --- a/types/lodash-es/uniqueId/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const uniqueId: typeof _.uniqueId; -export default uniqueId; diff --git a/types/lodash-es/unset.d.ts b/types/lodash-es/unset.d.ts new file mode 100644 index 0000000000..55fc73dda7 --- /dev/null +++ b/types/lodash-es/unset.d.ts @@ -0,0 +1,2 @@ +import { unset } from "lodash"; +export default unset; diff --git a/types/lodash-es/unset/index.d.ts b/types/lodash-es/unset/index.d.ts deleted file mode 100644 index 3ca4539505..0000000000 --- a/types/lodash-es/unset/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unset: typeof _.unset; -export default unset; diff --git a/types/lodash-es/unzip.d.ts b/types/lodash-es/unzip.d.ts new file mode 100644 index 0000000000..4b46c56501 --- /dev/null +++ b/types/lodash-es/unzip.d.ts @@ -0,0 +1,2 @@ +import { unzip } from "lodash"; +export default unzip; diff --git a/types/lodash-es/unzip/index.d.ts b/types/lodash-es/unzip/index.d.ts deleted file mode 100644 index a7eead8dd4..0000000000 --- a/types/lodash-es/unzip/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unzip: typeof _.unzip; -export default unzip; diff --git a/types/lodash-es/unzipWith.d.ts b/types/lodash-es/unzipWith.d.ts new file mode 100644 index 0000000000..ab892562ae --- /dev/null +++ b/types/lodash-es/unzipWith.d.ts @@ -0,0 +1,2 @@ +import { unzipWith } from "lodash"; +export default unzipWith; diff --git a/types/lodash-es/unzipWith/index.d.ts b/types/lodash-es/unzipWith/index.d.ts deleted file mode 100644 index bd54fec609..0000000000 --- a/types/lodash-es/unzipWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const unzipWith: typeof _.unzipWith; -export default unzipWith; diff --git a/types/lodash-es/update.d.ts b/types/lodash-es/update.d.ts new file mode 100644 index 0000000000..d3c2faedb4 --- /dev/null +++ b/types/lodash-es/update.d.ts @@ -0,0 +1,2 @@ +import { update } from "lodash"; +export default update; diff --git a/types/lodash-es/update/index.d.ts b/types/lodash-es/update/index.d.ts deleted file mode 100644 index 980239450a..0000000000 --- a/types/lodash-es/update/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const update: typeof _.update; -export default update; diff --git a/types/lodash-es/upperCase.d.ts b/types/lodash-es/upperCase.d.ts new file mode 100644 index 0000000000..ea985585dc --- /dev/null +++ b/types/lodash-es/upperCase.d.ts @@ -0,0 +1,2 @@ +import { upperCase } from "lodash"; +export default upperCase; diff --git a/types/lodash-es/upperCase/index.d.ts b/types/lodash-es/upperCase/index.d.ts deleted file mode 100644 index ac41216f80..0000000000 --- a/types/lodash-es/upperCase/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const upperCase: typeof _.upperCase; -export default upperCase; diff --git a/types/lodash-es/upperFirst.d.ts b/types/lodash-es/upperFirst.d.ts new file mode 100644 index 0000000000..c741ca652c --- /dev/null +++ b/types/lodash-es/upperFirst.d.ts @@ -0,0 +1,2 @@ +import { upperFirst } from "lodash"; +export default upperFirst; diff --git a/types/lodash-es/upperFirst/index.d.ts b/types/lodash-es/upperFirst/index.d.ts deleted file mode 100644 index aebaffb3d6..0000000000 --- a/types/lodash-es/upperFirst/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const upperFirst: typeof _.upperFirst; -export default upperFirst; diff --git a/types/lodash-es/values.d.ts b/types/lodash-es/values.d.ts new file mode 100644 index 0000000000..8688bbb685 --- /dev/null +++ b/types/lodash-es/values.d.ts @@ -0,0 +1,2 @@ +import { values } from "lodash"; +export default values; diff --git a/types/lodash-es/values/index.d.ts b/types/lodash-es/values/index.d.ts deleted file mode 100644 index 8c2ec79150..0000000000 --- a/types/lodash-es/values/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const values: typeof _.values; -export default values; diff --git a/types/lodash-es/valuesIn.d.ts b/types/lodash-es/valuesIn.d.ts new file mode 100644 index 0000000000..7d8faa8907 --- /dev/null +++ b/types/lodash-es/valuesIn.d.ts @@ -0,0 +1,2 @@ +import { valuesIn } from "lodash"; +export default valuesIn; diff --git a/types/lodash-es/valuesIn/index.d.ts b/types/lodash-es/valuesIn/index.d.ts deleted file mode 100644 index 5a7a19d852..0000000000 --- a/types/lodash-es/valuesIn/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const valuesIn: typeof _.valuesIn; -export default valuesIn; diff --git a/types/lodash-es/without.d.ts b/types/lodash-es/without.d.ts new file mode 100644 index 0000000000..57faeeaaf0 --- /dev/null +++ b/types/lodash-es/without.d.ts @@ -0,0 +1,2 @@ +import { without } from "lodash"; +export default without; diff --git a/types/lodash-es/without/index.d.ts b/types/lodash-es/without/index.d.ts deleted file mode 100644 index 88dba2ae33..0000000000 --- a/types/lodash-es/without/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const without: typeof _.without; -export default without; diff --git a/types/lodash-es/words.d.ts b/types/lodash-es/words.d.ts new file mode 100644 index 0000000000..a600b4ffae --- /dev/null +++ b/types/lodash-es/words.d.ts @@ -0,0 +1,2 @@ +import { words } from "lodash"; +export default words; diff --git a/types/lodash-es/words/index.d.ts b/types/lodash-es/words/index.d.ts deleted file mode 100644 index 02fe6bcc57..0000000000 --- a/types/lodash-es/words/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const words: typeof _.words; -export default words; diff --git a/types/lodash-es/wrap.d.ts b/types/lodash-es/wrap.d.ts new file mode 100644 index 0000000000..ea31059f25 --- /dev/null +++ b/types/lodash-es/wrap.d.ts @@ -0,0 +1,2 @@ +import { wrap } from "lodash"; +export default wrap; diff --git a/types/lodash-es/wrap/index.d.ts b/types/lodash-es/wrap/index.d.ts deleted file mode 100644 index 15a7ddbbc4..0000000000 --- a/types/lodash-es/wrap/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const wrap: typeof _.wrap; -export default wrap; diff --git a/types/lodash-es/xor.d.ts b/types/lodash-es/xor.d.ts new file mode 100644 index 0000000000..af54f65171 --- /dev/null +++ b/types/lodash-es/xor.d.ts @@ -0,0 +1,2 @@ +import { xor } from "lodash"; +export default xor; diff --git a/types/lodash-es/xor/index.d.ts b/types/lodash-es/xor/index.d.ts deleted file mode 100644 index bbbe130a7a..0000000000 --- a/types/lodash-es/xor/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const xor: typeof _.xor; -export default xor; diff --git a/types/lodash-es/xorBy.d.ts b/types/lodash-es/xorBy.d.ts new file mode 100644 index 0000000000..9fe56dbb09 --- /dev/null +++ b/types/lodash-es/xorBy.d.ts @@ -0,0 +1,2 @@ +import { xorBy } from "lodash"; +export default xorBy; diff --git a/types/lodash-es/xorBy/index.d.ts b/types/lodash-es/xorBy/index.d.ts deleted file mode 100644 index 373baf8544..0000000000 --- a/types/lodash-es/xorBy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const xorBy: typeof _.xorBy; -export default xorBy; diff --git a/types/lodash-es/xorWith.d.ts b/types/lodash-es/xorWith.d.ts new file mode 100644 index 0000000000..9da3fb57b8 --- /dev/null +++ b/types/lodash-es/xorWith.d.ts @@ -0,0 +1,2 @@ +import { xorWith } from "lodash"; +export default xorWith; diff --git a/types/lodash-es/xorWith/index.d.ts b/types/lodash-es/xorWith/index.d.ts deleted file mode 100644 index 0deeb4a07c..0000000000 --- a/types/lodash-es/xorWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const xorWith: typeof _.xorWith; -export default xorWith; diff --git a/types/lodash-es/zip.d.ts b/types/lodash-es/zip.d.ts new file mode 100644 index 0000000000..540ab4399a --- /dev/null +++ b/types/lodash-es/zip.d.ts @@ -0,0 +1,2 @@ +import { zip } from "lodash"; +export default zip; diff --git a/types/lodash-es/zip/index.d.ts b/types/lodash-es/zip/index.d.ts deleted file mode 100644 index 84bca1bbb8..0000000000 --- a/types/lodash-es/zip/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const zip: typeof _.zip; -export default zip; diff --git a/types/lodash-es/zipObject.d.ts b/types/lodash-es/zipObject.d.ts new file mode 100644 index 0000000000..cc0a69d2f0 --- /dev/null +++ b/types/lodash-es/zipObject.d.ts @@ -0,0 +1,2 @@ +import { zipObject } from "lodash"; +export default zipObject; diff --git a/types/lodash-es/zipObject/index.d.ts b/types/lodash-es/zipObject/index.d.ts deleted file mode 100644 index 264c843317..0000000000 --- a/types/lodash-es/zipObject/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const zipObject: typeof _.zipObject; -export default zipObject; diff --git a/types/lodash-es/zipWith.d.ts b/types/lodash-es/zipWith.d.ts new file mode 100644 index 0000000000..da646ccd20 --- /dev/null +++ b/types/lodash-es/zipWith.d.ts @@ -0,0 +1,2 @@ +import { zipWith } from "lodash"; +export default zipWith; diff --git a/types/lodash-es/zipWith/index.d.ts b/types/lodash-es/zipWith/index.d.ts deleted file mode 100644 index e67bc61a33..0000000000 --- a/types/lodash-es/zipWith/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as _ from "lodash"; -declare const zipWith: typeof _.zipWith; -export default zipWith; diff --git a/types/lodash.add/index.d.ts b/types/lodash.add/index.d.ts index 2d674f9f64..cf4d56c857 100644 --- a/types/lodash.add/index.d.ts +++ b/types/lodash.add/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { add } from "lodash"; export = add; diff --git a/types/lodash.add/tsconfig.json b/types/lodash.add/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.add/tsconfig.json +++ b/types/lodash.add/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.after/index.d.ts b/types/lodash.after/index.d.ts index b7835de5fb..1ae97b9d14 100644 --- a/types/lodash.after/index.d.ts +++ b/types/lodash.after/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { after } from "lodash"; export = after; diff --git a/types/lodash.after/tsconfig.json b/types/lodash.after/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.after/tsconfig.json +++ b/types/lodash.after/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.ary/index.d.ts b/types/lodash.ary/index.d.ts index b977b14a4b..e531510b51 100644 --- a/types/lodash.ary/index.d.ts +++ b/types/lodash.ary/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { ary } from "lodash"; export = ary; diff --git a/types/lodash.ary/tsconfig.json b/types/lodash.ary/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.ary/tsconfig.json +++ b/types/lodash.ary/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.assign/index.d.ts b/types/lodash.assign/index.d.ts index 22ab283c9b..b67043e98d 100644 --- a/types/lodash.assign/index.d.ts +++ b/types/lodash.assign/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { assign } from "lodash"; export = assign; diff --git a/types/lodash.assign/tsconfig.json b/types/lodash.assign/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.assign/tsconfig.json +++ b/types/lodash.assign/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.assignin/index.d.ts b/types/lodash.assignin/index.d.ts index daafdd41e2..439719e86d 100644 --- a/types/lodash.assignin/index.d.ts +++ b/types/lodash.assignin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { assignIn } from "lodash"; export = assignIn; diff --git a/types/lodash.assignin/tsconfig.json b/types/lodash.assignin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.assignin/tsconfig.json +++ b/types/lodash.assignin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.assigninwith/index.d.ts b/types/lodash.assigninwith/index.d.ts index c112f4400e..accce5fc2b 100644 --- a/types/lodash.assigninwith/index.d.ts +++ b/types/lodash.assigninwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { assignInWith } from "lodash"; export = assignInWith; diff --git a/types/lodash.assigninwith/tsconfig.json b/types/lodash.assigninwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.assigninwith/tsconfig.json +++ b/types/lodash.assigninwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.assignwith/index.d.ts b/types/lodash.assignwith/index.d.ts index 8da4eb4819..e7b5995e43 100644 --- a/types/lodash.assignwith/index.d.ts +++ b/types/lodash.assignwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { assignWith } from "lodash"; export = assignWith; diff --git a/types/lodash.assignwith/tsconfig.json b/types/lodash.assignwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.assignwith/tsconfig.json +++ b/types/lodash.assignwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.at/index.d.ts b/types/lodash.at/index.d.ts index a3296fc105..583429203d 100644 --- a/types/lodash.at/index.d.ts +++ b/types/lodash.at/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { at } from "lodash"; export = at; diff --git a/types/lodash.at/tsconfig.json b/types/lodash.at/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.at/tsconfig.json +++ b/types/lodash.at/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.attempt/index.d.ts b/types/lodash.attempt/index.d.ts index 127e453e8a..e0ce882cfd 100644 --- a/types/lodash.attempt/index.d.ts +++ b/types/lodash.attempt/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { attempt } from "lodash"; export = attempt; diff --git a/types/lodash.attempt/tsconfig.json b/types/lodash.attempt/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.attempt/tsconfig.json +++ b/types/lodash.attempt/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.before/index.d.ts b/types/lodash.before/index.d.ts index ae15f18f4a..de95e6b630 100644 --- a/types/lodash.before/index.d.ts +++ b/types/lodash.before/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { before } from "lodash"; export = before; diff --git a/types/lodash.before/tsconfig.json b/types/lodash.before/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.before/tsconfig.json +++ b/types/lodash.before/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.bind/index.d.ts b/types/lodash.bind/index.d.ts index d7c6cb3871..5d77adb483 100644 --- a/types/lodash.bind/index.d.ts +++ b/types/lodash.bind/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { bind } from "lodash"; export = bind; diff --git a/types/lodash.bind/tsconfig.json b/types/lodash.bind/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.bind/tsconfig.json +++ b/types/lodash.bind/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.bindall/index.d.ts b/types/lodash.bindall/index.d.ts index ae9eca4333..3b82e474d7 100644 --- a/types/lodash.bindall/index.d.ts +++ b/types/lodash.bindall/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { bindAll } from "lodash"; export = bindAll; diff --git a/types/lodash.bindall/tsconfig.json b/types/lodash.bindall/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.bindall/tsconfig.json +++ b/types/lodash.bindall/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.bindkey/index.d.ts b/types/lodash.bindkey/index.d.ts index 36a8dbc25d..409f354486 100644 --- a/types/lodash.bindkey/index.d.ts +++ b/types/lodash.bindkey/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { bindKey } from "lodash"; export = bindKey; diff --git a/types/lodash.bindkey/tsconfig.json b/types/lodash.bindkey/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.bindkey/tsconfig.json +++ b/types/lodash.bindkey/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.camelcase/index.d.ts b/types/lodash.camelcase/index.d.ts index 4ce8a932ea..84db84fcbd 100644 --- a/types/lodash.camelcase/index.d.ts +++ b/types/lodash.camelcase/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { camelCase } from "lodash"; export = camelCase; diff --git a/types/lodash.camelcase/tsconfig.json b/types/lodash.camelcase/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.camelcase/tsconfig.json +++ b/types/lodash.camelcase/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.capitalize/index.d.ts b/types/lodash.capitalize/index.d.ts index 7add79ce1b..6947e9d64e 100644 --- a/types/lodash.capitalize/index.d.ts +++ b/types/lodash.capitalize/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { capitalize } from "lodash"; export = capitalize; diff --git a/types/lodash.capitalize/tsconfig.json b/types/lodash.capitalize/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.capitalize/tsconfig.json +++ b/types/lodash.capitalize/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.castarray/index.d.ts b/types/lodash.castarray/index.d.ts index abb5cea92a..9e4c42e74f 100644 --- a/types/lodash.castarray/index.d.ts +++ b/types/lodash.castarray/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { castArray } from "lodash"; export = castArray; diff --git a/types/lodash.castarray/tsconfig.json b/types/lodash.castarray/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.castarray/tsconfig.json +++ b/types/lodash.castarray/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.ceil/index.d.ts b/types/lodash.ceil/index.d.ts index 85ff40e1c3..7f20ecb363 100644 --- a/types/lodash.ceil/index.d.ts +++ b/types/lodash.ceil/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { ceil } from "lodash"; export = ceil; diff --git a/types/lodash.ceil/tsconfig.json b/types/lodash.ceil/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.ceil/tsconfig.json +++ b/types/lodash.ceil/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.chunk/index.d.ts b/types/lodash.chunk/index.d.ts index 093852cfc8..d075dd66a7 100644 --- a/types/lodash.chunk/index.d.ts +++ b/types/lodash.chunk/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { chunk } from "lodash"; export = chunk; diff --git a/types/lodash.chunk/tsconfig.json b/types/lodash.chunk/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.chunk/tsconfig.json +++ b/types/lodash.chunk/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.clamp/index.d.ts b/types/lodash.clamp/index.d.ts index 507b584a97..77147ed5cd 100644 --- a/types/lodash.clamp/index.d.ts +++ b/types/lodash.clamp/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { clamp } from "lodash"; export = clamp; diff --git a/types/lodash.clamp/tsconfig.json b/types/lodash.clamp/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.clamp/tsconfig.json +++ b/types/lodash.clamp/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.clone/index.d.ts b/types/lodash.clone/index.d.ts index b6a5974f30..b4d0bc67a9 100644 --- a/types/lodash.clone/index.d.ts +++ b/types/lodash.clone/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { clone } from "lodash"; export = clone; diff --git a/types/lodash.clone/tsconfig.json b/types/lodash.clone/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.clone/tsconfig.json +++ b/types/lodash.clone/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.clonedeep/index.d.ts b/types/lodash.clonedeep/index.d.ts index bafc61dbee..963377d1d3 100644 --- a/types/lodash.clonedeep/index.d.ts +++ b/types/lodash.clonedeep/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { cloneDeep } from "lodash"; export = cloneDeep; diff --git a/types/lodash.clonedeep/tsconfig.json b/types/lodash.clonedeep/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.clonedeep/tsconfig.json +++ b/types/lodash.clonedeep/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.clonedeepwith/index.d.ts b/types/lodash.clonedeepwith/index.d.ts index 14773fb33a..6447552df4 100644 --- a/types/lodash.clonedeepwith/index.d.ts +++ b/types/lodash.clonedeepwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { cloneDeepWith } from "lodash"; export = cloneDeepWith; diff --git a/types/lodash.clonedeepwith/tsconfig.json b/types/lodash.clonedeepwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.clonedeepwith/tsconfig.json +++ b/types/lodash.clonedeepwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.clonewith/index.d.ts b/types/lodash.clonewith/index.d.ts index ffc97f86f6..f59a907439 100644 --- a/types/lodash.clonewith/index.d.ts +++ b/types/lodash.clonewith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { cloneWith } from "lodash"; export = cloneWith; diff --git a/types/lodash.clonewith/tsconfig.json b/types/lodash.clonewith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.clonewith/tsconfig.json +++ b/types/lodash.clonewith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.compact/index.d.ts b/types/lodash.compact/index.d.ts index bab5aab001..050b20533d 100644 --- a/types/lodash.compact/index.d.ts +++ b/types/lodash.compact/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { compact } from "lodash"; export = compact; diff --git a/types/lodash.compact/tsconfig.json b/types/lodash.compact/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.compact/tsconfig.json +++ b/types/lodash.compact/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.concat/index.d.ts b/types/lodash.concat/index.d.ts index b1e806d3a6..7cfb3874a1 100644 --- a/types/lodash.concat/index.d.ts +++ b/types/lodash.concat/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { concat } from "lodash"; export = concat; diff --git a/types/lodash.concat/tsconfig.json b/types/lodash.concat/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.concat/tsconfig.json +++ b/types/lodash.concat/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.constant/index.d.ts b/types/lodash.constant/index.d.ts index d6e16eed9c..e9ee61b0c7 100644 --- a/types/lodash.constant/index.d.ts +++ b/types/lodash.constant/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { constant } from "lodash"; export = constant; diff --git a/types/lodash.constant/tsconfig.json b/types/lodash.constant/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.constant/tsconfig.json +++ b/types/lodash.constant/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.countby/index.d.ts b/types/lodash.countby/index.d.ts index 7278dc4f8f..e3ebd4821e 100644 --- a/types/lodash.countby/index.d.ts +++ b/types/lodash.countby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { countBy } from "lodash"; export = countBy; diff --git a/types/lodash.countby/tsconfig.json b/types/lodash.countby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.countby/tsconfig.json +++ b/types/lodash.countby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.create/index.d.ts b/types/lodash.create/index.d.ts index 5933a2bff8..84ad457cec 100644 --- a/types/lodash.create/index.d.ts +++ b/types/lodash.create/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { create } from "lodash"; export = create; diff --git a/types/lodash.create/tsconfig.json b/types/lodash.create/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.create/tsconfig.json +++ b/types/lodash.create/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.curry/index.d.ts b/types/lodash.curry/index.d.ts index 896d0e6cf0..bf3c1875e1 100644 --- a/types/lodash.curry/index.d.ts +++ b/types/lodash.curry/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { curry } from "lodash"; export = curry; diff --git a/types/lodash.curry/tsconfig.json b/types/lodash.curry/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.curry/tsconfig.json +++ b/types/lodash.curry/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.curryright/index.d.ts b/types/lodash.curryright/index.d.ts index ac29ac3ee6..2ed61f1770 100644 --- a/types/lodash.curryright/index.d.ts +++ b/types/lodash.curryright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { curryRight } from "lodash"; export = curryRight; diff --git a/types/lodash.curryright/tsconfig.json b/types/lodash.curryright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.curryright/tsconfig.json +++ b/types/lodash.curryright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.debounce/index.d.ts b/types/lodash.debounce/index.d.ts index 8951397cc0..ed9bc53bbe 100644 --- a/types/lodash.debounce/index.d.ts +++ b/types/lodash.debounce/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { debounce } from "lodash"; export = debounce; diff --git a/types/lodash.debounce/tsconfig.json b/types/lodash.debounce/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.debounce/tsconfig.json +++ b/types/lodash.debounce/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.deburr/index.d.ts b/types/lodash.deburr/index.d.ts index db460b1214..3e174b1751 100644 --- a/types/lodash.deburr/index.d.ts +++ b/types/lodash.deburr/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { deburr } from "lodash"; export = deburr; diff --git a/types/lodash.deburr/tsconfig.json b/types/lodash.deburr/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.deburr/tsconfig.json +++ b/types/lodash.deburr/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.defaults/index.d.ts b/types/lodash.defaults/index.d.ts index 5580810798..cd51c34dfd 100644 --- a/types/lodash.defaults/index.d.ts +++ b/types/lodash.defaults/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { defaults } from "lodash"; export = defaults; diff --git a/types/lodash.defaults/tsconfig.json b/types/lodash.defaults/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.defaults/tsconfig.json +++ b/types/lodash.defaults/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.defaultsdeep/index.d.ts b/types/lodash.defaultsdeep/index.d.ts index 0180364438..70520ce9d2 100644 --- a/types/lodash.defaultsdeep/index.d.ts +++ b/types/lodash.defaultsdeep/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { defaultsDeep } from "lodash"; export = defaultsDeep; diff --git a/types/lodash.defaultsdeep/tsconfig.json b/types/lodash.defaultsdeep/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.defaultsdeep/tsconfig.json +++ b/types/lodash.defaultsdeep/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.defer/index.d.ts b/types/lodash.defer/index.d.ts index d166b54b0e..92dff1c42a 100644 --- a/types/lodash.defer/index.d.ts +++ b/types/lodash.defer/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { defer } from "lodash"; export = defer; diff --git a/types/lodash.defer/tsconfig.json b/types/lodash.defer/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.defer/tsconfig.json +++ b/types/lodash.defer/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.delay/index.d.ts b/types/lodash.delay/index.d.ts index 9880dd2472..b1397d5842 100644 --- a/types/lodash.delay/index.d.ts +++ b/types/lodash.delay/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { delay } from "lodash"; export = delay; diff --git a/types/lodash.delay/tsconfig.json b/types/lodash.delay/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.delay/tsconfig.json +++ b/types/lodash.delay/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.difference/index.d.ts b/types/lodash.difference/index.d.ts index f008446953..b71232c680 100644 --- a/types/lodash.difference/index.d.ts +++ b/types/lodash.difference/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { difference } from "lodash"; export = difference; diff --git a/types/lodash.difference/tsconfig.json b/types/lodash.difference/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.difference/tsconfig.json +++ b/types/lodash.difference/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.differenceby/index.d.ts b/types/lodash.differenceby/index.d.ts index 5931c832ac..5ee942c04f 100644 --- a/types/lodash.differenceby/index.d.ts +++ b/types/lodash.differenceby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { differenceBy } from "lodash"; export = differenceBy; diff --git a/types/lodash.differenceby/tsconfig.json b/types/lodash.differenceby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.differenceby/tsconfig.json +++ b/types/lodash.differenceby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.differencewith/index.d.ts b/types/lodash.differencewith/index.d.ts index 431a3711c5..6229b0e1f4 100644 --- a/types/lodash.differencewith/index.d.ts +++ b/types/lodash.differencewith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { differenceWith } from "lodash"; export = differenceWith; diff --git a/types/lodash.differencewith/tsconfig.json b/types/lodash.differencewith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.differencewith/tsconfig.json +++ b/types/lodash.differencewith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.drop/index.d.ts b/types/lodash.drop/index.d.ts index 7b73c01d9a..8a5394de1b 100644 --- a/types/lodash.drop/index.d.ts +++ b/types/lodash.drop/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { drop } from "lodash"; export = drop; diff --git a/types/lodash.drop/tsconfig.json b/types/lodash.drop/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.drop/tsconfig.json +++ b/types/lodash.drop/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.dropright/index.d.ts b/types/lodash.dropright/index.d.ts index d4af7fda2e..71fb6fa56f 100644 --- a/types/lodash.dropright/index.d.ts +++ b/types/lodash.dropright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { dropRight } from "lodash"; export = dropRight; diff --git a/types/lodash.dropright/tsconfig.json b/types/lodash.dropright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.dropright/tsconfig.json +++ b/types/lodash.dropright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.droprightwhile/index.d.ts b/types/lodash.droprightwhile/index.d.ts index ba10e0b31f..0235d60521 100644 --- a/types/lodash.droprightwhile/index.d.ts +++ b/types/lodash.droprightwhile/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { dropRightWhile } from "lodash"; export = dropRightWhile; diff --git a/types/lodash.droprightwhile/tsconfig.json b/types/lodash.droprightwhile/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.droprightwhile/tsconfig.json +++ b/types/lodash.droprightwhile/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.dropwhile/index.d.ts b/types/lodash.dropwhile/index.d.ts index 5a03f9c06d..221c4daacf 100644 --- a/types/lodash.dropwhile/index.d.ts +++ b/types/lodash.dropwhile/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { dropWhile } from "lodash"; export = dropWhile; diff --git a/types/lodash.dropwhile/tsconfig.json b/types/lodash.dropwhile/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.dropwhile/tsconfig.json +++ b/types/lodash.dropwhile/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.endswith/index.d.ts b/types/lodash.endswith/index.d.ts index cf0d5405db..e8cb7b1474 100644 --- a/types/lodash.endswith/index.d.ts +++ b/types/lodash.endswith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { endsWith } from "lodash"; export = endsWith; diff --git a/types/lodash.endswith/tsconfig.json b/types/lodash.endswith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.endswith/tsconfig.json +++ b/types/lodash.endswith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.eq/index.d.ts b/types/lodash.eq/index.d.ts index 179aa1044b..c70a65c000 100644 --- a/types/lodash.eq/index.d.ts +++ b/types/lodash.eq/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { eq } from "lodash"; export = eq; diff --git a/types/lodash.eq/tsconfig.json b/types/lodash.eq/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.eq/tsconfig.json +++ b/types/lodash.eq/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.escape/index.d.ts b/types/lodash.escape/index.d.ts index b6cab96feb..c728b36aa3 100644 --- a/types/lodash.escape/index.d.ts +++ b/types/lodash.escape/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { escape } from "lodash"; export = escape; diff --git a/types/lodash.escape/tsconfig.json b/types/lodash.escape/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.escape/tsconfig.json +++ b/types/lodash.escape/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.escaperegexp/index.d.ts b/types/lodash.escaperegexp/index.d.ts index ddc896d83a..2ddabe7909 100644 --- a/types/lodash.escaperegexp/index.d.ts +++ b/types/lodash.escaperegexp/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { escapeRegExp } from "lodash"; export = escapeRegExp; diff --git a/types/lodash.escaperegexp/tsconfig.json b/types/lodash.escaperegexp/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.escaperegexp/tsconfig.json +++ b/types/lodash.escaperegexp/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.every/index.d.ts b/types/lodash.every/index.d.ts index 41921c9707..c59fdc2c6f 100644 --- a/types/lodash.every/index.d.ts +++ b/types/lodash.every/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { every } from "lodash"; export = every; diff --git a/types/lodash.every/tsconfig.json b/types/lodash.every/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.every/tsconfig.json +++ b/types/lodash.every/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.fill/index.d.ts b/types/lodash.fill/index.d.ts index e2432e0ae6..179d88d23c 100644 --- a/types/lodash.fill/index.d.ts +++ b/types/lodash.fill/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { fill } from "lodash"; export = fill; diff --git a/types/lodash.fill/tsconfig.json b/types/lodash.fill/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.fill/tsconfig.json +++ b/types/lodash.fill/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.filter/index.d.ts b/types/lodash.filter/index.d.ts index af257ce855..210e450a5c 100644 --- a/types/lodash.filter/index.d.ts +++ b/types/lodash.filter/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { filter } from "lodash"; export = filter; diff --git a/types/lodash.filter/tsconfig.json b/types/lodash.filter/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.filter/tsconfig.json +++ b/types/lodash.filter/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.find/index.d.ts b/types/lodash.find/index.d.ts index 3b190a69bb..dd0415380d 100644 --- a/types/lodash.find/index.d.ts +++ b/types/lodash.find/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { find } from "lodash"; export = find; diff --git a/types/lodash.find/tsconfig.json b/types/lodash.find/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.find/tsconfig.json +++ b/types/lodash.find/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.findindex/index.d.ts b/types/lodash.findindex/index.d.ts index 3fbcb7b1e6..94968a8c8e 100644 --- a/types/lodash.findindex/index.d.ts +++ b/types/lodash.findindex/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { findIndex } from "lodash"; export = findIndex; diff --git a/types/lodash.findindex/tsconfig.json b/types/lodash.findindex/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.findindex/tsconfig.json +++ b/types/lodash.findindex/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.findkey/index.d.ts b/types/lodash.findkey/index.d.ts index cb96f24fe4..14aec1059c 100644 --- a/types/lodash.findkey/index.d.ts +++ b/types/lodash.findkey/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { findKey } from "lodash"; export = findKey; diff --git a/types/lodash.findkey/tsconfig.json b/types/lodash.findkey/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.findkey/tsconfig.json +++ b/types/lodash.findkey/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.findlast/index.d.ts b/types/lodash.findlast/index.d.ts index 55edd9dc55..6943ff76e7 100644 --- a/types/lodash.findlast/index.d.ts +++ b/types/lodash.findlast/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { findLast } from "lodash"; export = findLast; diff --git a/types/lodash.findlast/tsconfig.json b/types/lodash.findlast/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.findlast/tsconfig.json +++ b/types/lodash.findlast/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.findlastindex/index.d.ts b/types/lodash.findlastindex/index.d.ts index af2cb1de17..1e28a3227b 100644 --- a/types/lodash.findlastindex/index.d.ts +++ b/types/lodash.findlastindex/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { findLastIndex } from "lodash"; export = findLastIndex; diff --git a/types/lodash.findlastindex/tsconfig.json b/types/lodash.findlastindex/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.findlastindex/tsconfig.json +++ b/types/lodash.findlastindex/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.findlastkey/index.d.ts b/types/lodash.findlastkey/index.d.ts index abd43efdcc..5cb63dd295 100644 --- a/types/lodash.findlastkey/index.d.ts +++ b/types/lodash.findlastkey/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { findLastKey } from "lodash"; export = findLastKey; diff --git a/types/lodash.findlastkey/tsconfig.json b/types/lodash.findlastkey/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.findlastkey/tsconfig.json +++ b/types/lodash.findlastkey/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.first/index.d.ts b/types/lodash.first/index.d.ts index 3639d945c1..7db99885f0 100644 --- a/types/lodash.first/index.d.ts +++ b/types/lodash.first/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { first } from "lodash"; export = first; diff --git a/types/lodash.first/tsconfig.json b/types/lodash.first/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.first/tsconfig.json +++ b/types/lodash.first/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flatmap/index.d.ts b/types/lodash.flatmap/index.d.ts index 47b14bdc33..2a17dd14cb 100644 --- a/types/lodash.flatmap/index.d.ts +++ b/types/lodash.flatmap/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flatMap } from "lodash"; export = flatMap; diff --git a/types/lodash.flatmap/tsconfig.json b/types/lodash.flatmap/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flatmap/tsconfig.json +++ b/types/lodash.flatmap/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flatten/index.d.ts b/types/lodash.flatten/index.d.ts index 33c4f21f33..7eb99d2252 100644 --- a/types/lodash.flatten/index.d.ts +++ b/types/lodash.flatten/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flatten } from "lodash"; export = flatten; diff --git a/types/lodash.flatten/tsconfig.json b/types/lodash.flatten/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flatten/tsconfig.json +++ b/types/lodash.flatten/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flattendeep/index.d.ts b/types/lodash.flattendeep/index.d.ts index 279b99d2a5..81eb64304e 100644 --- a/types/lodash.flattendeep/index.d.ts +++ b/types/lodash.flattendeep/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flattenDeep } from "lodash"; export = flattenDeep; diff --git a/types/lodash.flattendeep/tsconfig.json b/types/lodash.flattendeep/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flattendeep/tsconfig.json +++ b/types/lodash.flattendeep/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flattendepth/index.d.ts b/types/lodash.flattendepth/index.d.ts index 3b579d4d90..c1e6250db6 100644 --- a/types/lodash.flattendepth/index.d.ts +++ b/types/lodash.flattendepth/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flattenDepth } from "lodash"; export = flattenDepth; diff --git a/types/lodash.flattendepth/tsconfig.json b/types/lodash.flattendepth/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flattendepth/tsconfig.json +++ b/types/lodash.flattendepth/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flip/index.d.ts b/types/lodash.flip/index.d.ts index 49f4928205..9a6d9104a2 100644 --- a/types/lodash.flip/index.d.ts +++ b/types/lodash.flip/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flip } from "lodash"; export = flip; diff --git a/types/lodash.flip/tsconfig.json b/types/lodash.flip/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flip/tsconfig.json +++ b/types/lodash.flip/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.floor/index.d.ts b/types/lodash.floor/index.d.ts index 18912af8cb..349cea39cc 100644 --- a/types/lodash.floor/index.d.ts +++ b/types/lodash.floor/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { floor } from "lodash"; export = floor; diff --git a/types/lodash.floor/tsconfig.json b/types/lodash.floor/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.floor/tsconfig.json +++ b/types/lodash.floor/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flow/index.d.ts b/types/lodash.flow/index.d.ts index 1f3e5cc68b..4a39afe588 100644 --- a/types/lodash.flow/index.d.ts +++ b/types/lodash.flow/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flow } from "lodash"; export = flow; diff --git a/types/lodash.flow/tsconfig.json b/types/lodash.flow/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flow/tsconfig.json +++ b/types/lodash.flow/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.flowright/index.d.ts b/types/lodash.flowright/index.d.ts index 2db859b26c..7b3ea759f6 100644 --- a/types/lodash.flowright/index.d.ts +++ b/types/lodash.flowright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { flowRight } from "lodash"; export = flowRight; diff --git a/types/lodash.flowright/tsconfig.json b/types/lodash.flowright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.flowright/tsconfig.json +++ b/types/lodash.flowright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.foreach/index.d.ts b/types/lodash.foreach/index.d.ts index fa4ded0182..c3d4641a4a 100644 --- a/types/lodash.foreach/index.d.ts +++ b/types/lodash.foreach/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { forEach } from "lodash"; export = forEach; diff --git a/types/lodash.foreach/tsconfig.json b/types/lodash.foreach/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.foreach/tsconfig.json +++ b/types/lodash.foreach/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.foreachright/index.d.ts b/types/lodash.foreachright/index.d.ts index 88571cdbce..682378c876 100644 --- a/types/lodash.foreachright/index.d.ts +++ b/types/lodash.foreachright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { forEachRight } from "lodash"; export = forEachRight; diff --git a/types/lodash.foreachright/tsconfig.json b/types/lodash.foreachright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.foreachright/tsconfig.json +++ b/types/lodash.foreachright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.forin/index.d.ts b/types/lodash.forin/index.d.ts index 20a3cf0cec..7f822797ec 100644 --- a/types/lodash.forin/index.d.ts +++ b/types/lodash.forin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { forIn } from "lodash"; export = forIn; diff --git a/types/lodash.forin/tsconfig.json b/types/lodash.forin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.forin/tsconfig.json +++ b/types/lodash.forin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.forinright/index.d.ts b/types/lodash.forinright/index.d.ts index b645a2f481..115d09d658 100644 --- a/types/lodash.forinright/index.d.ts +++ b/types/lodash.forinright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { forInRight } from "lodash"; export = forInRight; diff --git a/types/lodash.forinright/tsconfig.json b/types/lodash.forinright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.forinright/tsconfig.json +++ b/types/lodash.forinright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.forown/index.d.ts b/types/lodash.forown/index.d.ts index c9f5aee468..54aadc20e7 100644 --- a/types/lodash.forown/index.d.ts +++ b/types/lodash.forown/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { forOwn } from "lodash"; export = forOwn; diff --git a/types/lodash.forown/tsconfig.json b/types/lodash.forown/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.forown/tsconfig.json +++ b/types/lodash.forown/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.forownright/index.d.ts b/types/lodash.forownright/index.d.ts index ae51b90603..4a3aa0bf0b 100644 --- a/types/lodash.forownright/index.d.ts +++ b/types/lodash.forownright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { forOwnRight } from "lodash"; export = forOwnRight; diff --git a/types/lodash.forownright/tsconfig.json b/types/lodash.forownright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.forownright/tsconfig.json +++ b/types/lodash.forownright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.frompairs/index.d.ts b/types/lodash.frompairs/index.d.ts index aface3ae06..19928340e7 100644 --- a/types/lodash.frompairs/index.d.ts +++ b/types/lodash.frompairs/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { fromPairs } from "lodash"; export = fromPairs; diff --git a/types/lodash.frompairs/tsconfig.json b/types/lodash.frompairs/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.frompairs/tsconfig.json +++ b/types/lodash.frompairs/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.functions/index.d.ts b/types/lodash.functions/index.d.ts index 0dd5b293fe..bb77ea1251 100644 --- a/types/lodash.functions/index.d.ts +++ b/types/lodash.functions/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { functions } from "lodash"; export = functions; diff --git a/types/lodash.functions/tsconfig.json b/types/lodash.functions/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.functions/tsconfig.json +++ b/types/lodash.functions/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.functionsin/index.d.ts b/types/lodash.functionsin/index.d.ts index da5f0a530c..cebc553525 100644 --- a/types/lodash.functionsin/index.d.ts +++ b/types/lodash.functionsin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { functionsIn } from "lodash"; export = functionsIn; diff --git a/types/lodash.functionsin/tsconfig.json b/types/lodash.functionsin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.functionsin/tsconfig.json +++ b/types/lodash.functionsin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.get/index.d.ts b/types/lodash.get/index.d.ts index 7aab742399..a6d4a9be1f 100644 --- a/types/lodash.get/index.d.ts +++ b/types/lodash.get/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { get } from "lodash"; export = get; diff --git a/types/lodash.get/tsconfig.json b/types/lodash.get/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.get/tsconfig.json +++ b/types/lodash.get/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.groupby/index.d.ts b/types/lodash.groupby/index.d.ts index 5a4044ba6a..eb0f85d289 100644 --- a/types/lodash.groupby/index.d.ts +++ b/types/lodash.groupby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { groupBy } from "lodash"; export = groupBy; diff --git a/types/lodash.groupby/tsconfig.json b/types/lodash.groupby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.groupby/tsconfig.json +++ b/types/lodash.groupby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.gt/index.d.ts b/types/lodash.gt/index.d.ts index cb17dcd17e..6938b03faa 100644 --- a/types/lodash.gt/index.d.ts +++ b/types/lodash.gt/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { gt } from "lodash"; export = gt; diff --git a/types/lodash.gt/tsconfig.json b/types/lodash.gt/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.gt/tsconfig.json +++ b/types/lodash.gt/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.gte/index.d.ts b/types/lodash.gte/index.d.ts index 76ffb4229f..73e4deb68c 100644 --- a/types/lodash.gte/index.d.ts +++ b/types/lodash.gte/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { gte } from "lodash"; export = gte; diff --git a/types/lodash.gte/tsconfig.json b/types/lodash.gte/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.gte/tsconfig.json +++ b/types/lodash.gte/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.has/index.d.ts b/types/lodash.has/index.d.ts index 2df92fecf9..67e575b4ff 100644 --- a/types/lodash.has/index.d.ts +++ b/types/lodash.has/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { has } from "lodash"; export = has; diff --git a/types/lodash.has/tsconfig.json b/types/lodash.has/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.has/tsconfig.json +++ b/types/lodash.has/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.hasin/index.d.ts b/types/lodash.hasin/index.d.ts index 1976042663..99aadf474b 100644 --- a/types/lodash.hasin/index.d.ts +++ b/types/lodash.hasin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { hasIn } from "lodash"; export = hasIn; diff --git a/types/lodash.hasin/tsconfig.json b/types/lodash.hasin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.hasin/tsconfig.json +++ b/types/lodash.hasin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.head/index.d.ts b/types/lodash.head/index.d.ts index 0f6bb87cbd..c6afdb8bc4 100644 --- a/types/lodash.head/index.d.ts +++ b/types/lodash.head/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { head } from "lodash"; export = head; diff --git a/types/lodash.head/tsconfig.json b/types/lodash.head/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.head/tsconfig.json +++ b/types/lodash.head/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.identity/index.d.ts b/types/lodash.identity/index.d.ts index 1a97903a3a..110c86e51a 100644 --- a/types/lodash.identity/index.d.ts +++ b/types/lodash.identity/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { identity } from "lodash"; export = identity; diff --git a/types/lodash.identity/tsconfig.json b/types/lodash.identity/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.identity/tsconfig.json +++ b/types/lodash.identity/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.includes/index.d.ts b/types/lodash.includes/index.d.ts index 5f633ca0e5..aa04de2f79 100644 --- a/types/lodash.includes/index.d.ts +++ b/types/lodash.includes/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { includes } from "lodash"; export = includes; diff --git a/types/lodash.includes/tsconfig.json b/types/lodash.includes/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.includes/tsconfig.json +++ b/types/lodash.includes/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.indexof/index.d.ts b/types/lodash.indexof/index.d.ts index ca343bd390..e15360bb80 100644 --- a/types/lodash.indexof/index.d.ts +++ b/types/lodash.indexof/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { indexOf } from "lodash"; export = indexOf; diff --git a/types/lodash.indexof/tsconfig.json b/types/lodash.indexof/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.indexof/tsconfig.json +++ b/types/lodash.indexof/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.initial/index.d.ts b/types/lodash.initial/index.d.ts index e1553c4e95..1f194debe3 100644 --- a/types/lodash.initial/index.d.ts +++ b/types/lodash.initial/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { initial } from "lodash"; export = initial; diff --git a/types/lodash.initial/tsconfig.json b/types/lodash.initial/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.initial/tsconfig.json +++ b/types/lodash.initial/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.inrange/index.d.ts b/types/lodash.inrange/index.d.ts index 6c28bf0197..94e7f73542 100644 --- a/types/lodash.inrange/index.d.ts +++ b/types/lodash.inrange/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { inRange } from "lodash"; export = inRange; diff --git a/types/lodash.inrange/tsconfig.json b/types/lodash.inrange/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.inrange/tsconfig.json +++ b/types/lodash.inrange/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.intersection/index.d.ts b/types/lodash.intersection/index.d.ts index 116b05dd3e..2859ce8356 100644 --- a/types/lodash.intersection/index.d.ts +++ b/types/lodash.intersection/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { intersection } from "lodash"; export = intersection; diff --git a/types/lodash.intersection/tsconfig.json b/types/lodash.intersection/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.intersection/tsconfig.json +++ b/types/lodash.intersection/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.intersectionby/index.d.ts b/types/lodash.intersectionby/index.d.ts index d83b726c5c..3c511c9df5 100644 --- a/types/lodash.intersectionby/index.d.ts +++ b/types/lodash.intersectionby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { intersectionBy } from "lodash"; export = intersectionBy; diff --git a/types/lodash.intersectionby/tsconfig.json b/types/lodash.intersectionby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.intersectionby/tsconfig.json +++ b/types/lodash.intersectionby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.intersectionwith/index.d.ts b/types/lodash.intersectionwith/index.d.ts index cca07fcbb7..5330a706ab 100644 --- a/types/lodash.intersectionwith/index.d.ts +++ b/types/lodash.intersectionwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { intersectionWith } from "lodash"; export = intersectionWith; diff --git a/types/lodash.intersectionwith/tsconfig.json b/types/lodash.intersectionwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.intersectionwith/tsconfig.json +++ b/types/lodash.intersectionwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.invert/index.d.ts b/types/lodash.invert/index.d.ts index 0d596115fe..4d53ea9262 100644 --- a/types/lodash.invert/index.d.ts +++ b/types/lodash.invert/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { invert } from "lodash"; export = invert; diff --git a/types/lodash.invert/tsconfig.json b/types/lodash.invert/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.invert/tsconfig.json +++ b/types/lodash.invert/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.invertby/index.d.ts b/types/lodash.invertby/index.d.ts index 0ee687cdd0..cfcd2b081a 100644 --- a/types/lodash.invertby/index.d.ts +++ b/types/lodash.invertby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { invertBy } from "lodash"; export = invertBy; diff --git a/types/lodash.invertby/tsconfig.json b/types/lodash.invertby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.invertby/tsconfig.json +++ b/types/lodash.invertby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.invoke/index.d.ts b/types/lodash.invoke/index.d.ts index 21f93c2e45..830cf62111 100644 --- a/types/lodash.invoke/index.d.ts +++ b/types/lodash.invoke/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { invoke } from "lodash"; export = invoke; diff --git a/types/lodash.invoke/tsconfig.json b/types/lodash.invoke/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.invoke/tsconfig.json +++ b/types/lodash.invoke/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.invokemap/index.d.ts b/types/lodash.invokemap/index.d.ts index b1a06bfe49..2d900e2df8 100644 --- a/types/lodash.invokemap/index.d.ts +++ b/types/lodash.invokemap/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { invokeMap } from "lodash"; export = invokeMap; diff --git a/types/lodash.invokemap/tsconfig.json b/types/lodash.invokemap/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.invokemap/tsconfig.json +++ b/types/lodash.invokemap/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isarguments/index.d.ts b/types/lodash.isarguments/index.d.ts index 1463245921..e18ec066fb 100644 --- a/types/lodash.isarguments/index.d.ts +++ b/types/lodash.isarguments/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isArguments } from "lodash"; export = isArguments; diff --git a/types/lodash.isarguments/tsconfig.json b/types/lodash.isarguments/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isarguments/tsconfig.json +++ b/types/lodash.isarguments/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isarray/index.d.ts b/types/lodash.isarray/index.d.ts index 3f2d215eaf..ac20907ca5 100644 --- a/types/lodash.isarray/index.d.ts +++ b/types/lodash.isarray/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isArray } from "lodash"; export = isArray; diff --git a/types/lodash.isarray/tsconfig.json b/types/lodash.isarray/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isarray/tsconfig.json +++ b/types/lodash.isarray/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isarraybuffer/index.d.ts b/types/lodash.isarraybuffer/index.d.ts index 4c57ffdab9..281039c9d3 100644 --- a/types/lodash.isarraybuffer/index.d.ts +++ b/types/lodash.isarraybuffer/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isArrayBuffer } from "lodash"; export = isArrayBuffer; diff --git a/types/lodash.isarraybuffer/tsconfig.json b/types/lodash.isarraybuffer/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isarraybuffer/tsconfig.json +++ b/types/lodash.isarraybuffer/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isarraylike/index.d.ts b/types/lodash.isarraylike/index.d.ts index 697eb9f527..ab3faedb29 100644 --- a/types/lodash.isarraylike/index.d.ts +++ b/types/lodash.isarraylike/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isArrayLike } from "lodash"; export = isArrayLike; diff --git a/types/lodash.isarraylike/tsconfig.json b/types/lodash.isarraylike/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isarraylike/tsconfig.json +++ b/types/lodash.isarraylike/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isarraylikeobject/index.d.ts b/types/lodash.isarraylikeobject/index.d.ts index 28fcbcf190..14c1e379ac 100644 --- a/types/lodash.isarraylikeobject/index.d.ts +++ b/types/lodash.isarraylikeobject/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isArrayLikeObject } from "lodash"; export = isArrayLikeObject; diff --git a/types/lodash.isarraylikeobject/tsconfig.json b/types/lodash.isarraylikeobject/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isarraylikeobject/tsconfig.json +++ b/types/lodash.isarraylikeobject/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isboolean/index.d.ts b/types/lodash.isboolean/index.d.ts index 65ed027bfa..0c7f7072e5 100644 --- a/types/lodash.isboolean/index.d.ts +++ b/types/lodash.isboolean/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isBoolean } from "lodash"; export = isBoolean; diff --git a/types/lodash.isboolean/tsconfig.json b/types/lodash.isboolean/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isboolean/tsconfig.json +++ b/types/lodash.isboolean/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isbuffer/index.d.ts b/types/lodash.isbuffer/index.d.ts index f4a43607cf..bcd8e847d9 100644 --- a/types/lodash.isbuffer/index.d.ts +++ b/types/lodash.isbuffer/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isBuffer } from "lodash"; export = isBuffer; diff --git a/types/lodash.isbuffer/tsconfig.json b/types/lodash.isbuffer/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isbuffer/tsconfig.json +++ b/types/lodash.isbuffer/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isdate/index.d.ts b/types/lodash.isdate/index.d.ts index 2050795d5b..c3e8765c79 100644 --- a/types/lodash.isdate/index.d.ts +++ b/types/lodash.isdate/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isDate } from "lodash"; export = isDate; diff --git a/types/lodash.isdate/tsconfig.json b/types/lodash.isdate/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isdate/tsconfig.json +++ b/types/lodash.isdate/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.iselement/index.d.ts b/types/lodash.iselement/index.d.ts index e49b1610fc..9d37c9f6a3 100644 --- a/types/lodash.iselement/index.d.ts +++ b/types/lodash.iselement/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isElement } from "lodash"; export = isElement; diff --git a/types/lodash.iselement/tsconfig.json b/types/lodash.iselement/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.iselement/tsconfig.json +++ b/types/lodash.iselement/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isempty/index.d.ts b/types/lodash.isempty/index.d.ts index 945561cd22..acda30346c 100644 --- a/types/lodash.isempty/index.d.ts +++ b/types/lodash.isempty/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isEmpty } from "lodash"; export = isEmpty; diff --git a/types/lodash.isempty/tsconfig.json b/types/lodash.isempty/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isempty/tsconfig.json +++ b/types/lodash.isempty/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isequal/index.d.ts b/types/lodash.isequal/index.d.ts index 9e03a874d1..27e871a425 100644 --- a/types/lodash.isequal/index.d.ts +++ b/types/lodash.isequal/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isEqual } from "lodash"; export = isEqual; diff --git a/types/lodash.isequal/tsconfig.json b/types/lodash.isequal/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isequal/tsconfig.json +++ b/types/lodash.isequal/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isequalwith/index.d.ts b/types/lodash.isequalwith/index.d.ts index 2a1333aa39..e283b51d7f 100644 --- a/types/lodash.isequalwith/index.d.ts +++ b/types/lodash.isequalwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isEqualWith } from "lodash"; export = isEqualWith; diff --git a/types/lodash.isequalwith/tsconfig.json b/types/lodash.isequalwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isequalwith/tsconfig.json +++ b/types/lodash.isequalwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.iserror/index.d.ts b/types/lodash.iserror/index.d.ts index 00a3d42c73..6e2eb3947c 100644 --- a/types/lodash.iserror/index.d.ts +++ b/types/lodash.iserror/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isError } from "lodash"; export = isError; diff --git a/types/lodash.iserror/tsconfig.json b/types/lodash.iserror/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.iserror/tsconfig.json +++ b/types/lodash.iserror/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isfinite/index.d.ts b/types/lodash.isfinite/index.d.ts index 8e0685be1c..4c43de9347 100644 --- a/types/lodash.isfinite/index.d.ts +++ b/types/lodash.isfinite/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isFinite } from "lodash"; export = isFinite; diff --git a/types/lodash.isfinite/tsconfig.json b/types/lodash.isfinite/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isfinite/tsconfig.json +++ b/types/lodash.isfinite/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isfunction/index.d.ts b/types/lodash.isfunction/index.d.ts index 7928364710..a375218990 100644 --- a/types/lodash.isfunction/index.d.ts +++ b/types/lodash.isfunction/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isFunction } from "lodash"; export = isFunction; diff --git a/types/lodash.isfunction/tsconfig.json b/types/lodash.isfunction/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isfunction/tsconfig.json +++ b/types/lodash.isfunction/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isinteger/index.d.ts b/types/lodash.isinteger/index.d.ts index 413160f6a7..c8a6a693f7 100644 --- a/types/lodash.isinteger/index.d.ts +++ b/types/lodash.isinteger/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isInteger } from "lodash"; export = isInteger; diff --git a/types/lodash.isinteger/tsconfig.json b/types/lodash.isinteger/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isinteger/tsconfig.json +++ b/types/lodash.isinteger/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.islength/index.d.ts b/types/lodash.islength/index.d.ts index 0a9a531016..c5130042d2 100644 --- a/types/lodash.islength/index.d.ts +++ b/types/lodash.islength/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isLength } from "lodash"; export = isLength; diff --git a/types/lodash.islength/tsconfig.json b/types/lodash.islength/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.islength/tsconfig.json +++ b/types/lodash.islength/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.ismap/index.d.ts b/types/lodash.ismap/index.d.ts index 6ede267487..2ce5560325 100644 --- a/types/lodash.ismap/index.d.ts +++ b/types/lodash.ismap/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isMap } from "lodash"; export = isMap; diff --git a/types/lodash.ismap/tsconfig.json b/types/lodash.ismap/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.ismap/tsconfig.json +++ b/types/lodash.ismap/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.ismatch/index.d.ts b/types/lodash.ismatch/index.d.ts index 189f158b92..5ee7eaaf3f 100644 --- a/types/lodash.ismatch/index.d.ts +++ b/types/lodash.ismatch/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isMatch } from "lodash"; export = isMatch; diff --git a/types/lodash.ismatch/tsconfig.json b/types/lodash.ismatch/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.ismatch/tsconfig.json +++ b/types/lodash.ismatch/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.ismatchwith/index.d.ts b/types/lodash.ismatchwith/index.d.ts index 03cc669e09..1622ed59b5 100644 --- a/types/lodash.ismatchwith/index.d.ts +++ b/types/lodash.ismatchwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isMatchWith } from "lodash"; export = isMatchWith; diff --git a/types/lodash.ismatchwith/tsconfig.json b/types/lodash.ismatchwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.ismatchwith/tsconfig.json +++ b/types/lodash.ismatchwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isnan/index.d.ts b/types/lodash.isnan/index.d.ts index f79c5d5763..24e826a815 100644 --- a/types/lodash.isnan/index.d.ts +++ b/types/lodash.isnan/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isNaN } from "lodash"; export = isNaN; diff --git a/types/lodash.isnan/tsconfig.json b/types/lodash.isnan/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isnan/tsconfig.json +++ b/types/lodash.isnan/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isnative/index.d.ts b/types/lodash.isnative/index.d.ts index d0b00bbfcb..48d0a3c53f 100644 --- a/types/lodash.isnative/index.d.ts +++ b/types/lodash.isnative/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isNative } from "lodash"; export = isNative; diff --git a/types/lodash.isnative/tsconfig.json b/types/lodash.isnative/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isnative/tsconfig.json +++ b/types/lodash.isnative/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isnil/index.d.ts b/types/lodash.isnil/index.d.ts index 08684dfbcc..8782f0aa5b 100644 --- a/types/lodash.isnil/index.d.ts +++ b/types/lodash.isnil/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isNil } from "lodash"; export = isNil; diff --git a/types/lodash.isnil/tsconfig.json b/types/lodash.isnil/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isnil/tsconfig.json +++ b/types/lodash.isnil/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isnull/index.d.ts b/types/lodash.isnull/index.d.ts index d5a32b895a..58d5bdb2ce 100644 --- a/types/lodash.isnull/index.d.ts +++ b/types/lodash.isnull/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isNull } from "lodash"; export = isNull; diff --git a/types/lodash.isnull/tsconfig.json b/types/lodash.isnull/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isnull/tsconfig.json +++ b/types/lodash.isnull/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isnumber/index.d.ts b/types/lodash.isnumber/index.d.ts index 2418f82c9a..36b7de6eb1 100644 --- a/types/lodash.isnumber/index.d.ts +++ b/types/lodash.isnumber/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isNumber } from "lodash"; export = isNumber; diff --git a/types/lodash.isnumber/tsconfig.json b/types/lodash.isnumber/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isnumber/tsconfig.json +++ b/types/lodash.isnumber/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isobject/index.d.ts b/types/lodash.isobject/index.d.ts index a9b4322fd0..902998daa4 100644 --- a/types/lodash.isobject/index.d.ts +++ b/types/lodash.isobject/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isObject } from "lodash"; export = isObject; diff --git a/types/lodash.isobject/tsconfig.json b/types/lodash.isobject/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isobject/tsconfig.json +++ b/types/lodash.isobject/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isobjectlike/index.d.ts b/types/lodash.isobjectlike/index.d.ts index 74926c11c0..797b274722 100644 --- a/types/lodash.isobjectlike/index.d.ts +++ b/types/lodash.isobjectlike/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isObjectLike } from "lodash"; export = isObjectLike; diff --git a/types/lodash.isobjectlike/tsconfig.json b/types/lodash.isobjectlike/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isobjectlike/tsconfig.json +++ b/types/lodash.isobjectlike/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isplainobject/index.d.ts b/types/lodash.isplainobject/index.d.ts index 8079064cad..669b9b7f41 100644 --- a/types/lodash.isplainobject/index.d.ts +++ b/types/lodash.isplainobject/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isPlainObject } from "lodash"; export = isPlainObject; diff --git a/types/lodash.isplainobject/tsconfig.json b/types/lodash.isplainobject/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isplainobject/tsconfig.json +++ b/types/lodash.isplainobject/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isregexp/index.d.ts b/types/lodash.isregexp/index.d.ts index 1c923c8b30..b8fc8f3277 100644 --- a/types/lodash.isregexp/index.d.ts +++ b/types/lodash.isregexp/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isRegExp } from "lodash"; export = isRegExp; diff --git a/types/lodash.isregexp/tsconfig.json b/types/lodash.isregexp/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isregexp/tsconfig.json +++ b/types/lodash.isregexp/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.issafeinteger/index.d.ts b/types/lodash.issafeinteger/index.d.ts index 18b384f5a1..e51dc9d86e 100644 --- a/types/lodash.issafeinteger/index.d.ts +++ b/types/lodash.issafeinteger/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isSafeInteger } from "lodash"; export = isSafeInteger; diff --git a/types/lodash.issafeinteger/tsconfig.json b/types/lodash.issafeinteger/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.issafeinteger/tsconfig.json +++ b/types/lodash.issafeinteger/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isset/index.d.ts b/types/lodash.isset/index.d.ts index 5177ac7fd5..ae2fd521ea 100644 --- a/types/lodash.isset/index.d.ts +++ b/types/lodash.isset/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isSet } from "lodash"; export = isSet; diff --git a/types/lodash.isset/tsconfig.json b/types/lodash.isset/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isset/tsconfig.json +++ b/types/lodash.isset/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isstring/index.d.ts b/types/lodash.isstring/index.d.ts index bd3779b587..e449e3cd93 100644 --- a/types/lodash.isstring/index.d.ts +++ b/types/lodash.isstring/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isString } from "lodash"; export = isString; diff --git a/types/lodash.isstring/tsconfig.json b/types/lodash.isstring/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isstring/tsconfig.json +++ b/types/lodash.isstring/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.issymbol/index.d.ts b/types/lodash.issymbol/index.d.ts index 68f166cc8b..3e7bcdc20e 100644 --- a/types/lodash.issymbol/index.d.ts +++ b/types/lodash.issymbol/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isSymbol } from "lodash"; export = isSymbol; diff --git a/types/lodash.issymbol/tsconfig.json b/types/lodash.issymbol/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.issymbol/tsconfig.json +++ b/types/lodash.issymbol/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.istypedarray/index.d.ts b/types/lodash.istypedarray/index.d.ts index 9d87e72ab6..eda11a9bfd 100644 --- a/types/lodash.istypedarray/index.d.ts +++ b/types/lodash.istypedarray/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isTypedArray } from "lodash"; export = isTypedArray; diff --git a/types/lodash.istypedarray/tsconfig.json b/types/lodash.istypedarray/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.istypedarray/tsconfig.json +++ b/types/lodash.istypedarray/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isundefined/index.d.ts b/types/lodash.isundefined/index.d.ts index 7c22becc2f..e20ed9994d 100644 --- a/types/lodash.isundefined/index.d.ts +++ b/types/lodash.isundefined/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isUndefined } from "lodash"; export = isUndefined; diff --git a/types/lodash.isundefined/tsconfig.json b/types/lodash.isundefined/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isundefined/tsconfig.json +++ b/types/lodash.isundefined/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isweakmap/index.d.ts b/types/lodash.isweakmap/index.d.ts index 0c9a02c5ed..67cd9bd5cc 100644 --- a/types/lodash.isweakmap/index.d.ts +++ b/types/lodash.isweakmap/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isWeakMap } from "lodash"; export = isWeakMap; diff --git a/types/lodash.isweakmap/tsconfig.json b/types/lodash.isweakmap/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isweakmap/tsconfig.json +++ b/types/lodash.isweakmap/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.isweakset/index.d.ts b/types/lodash.isweakset/index.d.ts index af8899b735..68838c2b0a 100644 --- a/types/lodash.isweakset/index.d.ts +++ b/types/lodash.isweakset/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { isWeakSet } from "lodash"; export = isWeakSet; diff --git a/types/lodash.isweakset/tsconfig.json b/types/lodash.isweakset/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.isweakset/tsconfig.json +++ b/types/lodash.isweakset/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.iteratee/index.d.ts b/types/lodash.iteratee/index.d.ts index 0f11f447d9..80c826d910 100644 --- a/types/lodash.iteratee/index.d.ts +++ b/types/lodash.iteratee/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { iteratee } from "lodash"; export = iteratee; diff --git a/types/lodash.iteratee/tsconfig.json b/types/lodash.iteratee/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.iteratee/tsconfig.json +++ b/types/lodash.iteratee/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.join/index.d.ts b/types/lodash.join/index.d.ts index 98f11e04c9..aeaad585ad 100644 --- a/types/lodash.join/index.d.ts +++ b/types/lodash.join/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { join } from "lodash"; export = join; diff --git a/types/lodash.join/tsconfig.json b/types/lodash.join/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.join/tsconfig.json +++ b/types/lodash.join/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.kebabcase/index.d.ts b/types/lodash.kebabcase/index.d.ts index fc116ee338..c0e85de37d 100644 --- a/types/lodash.kebabcase/index.d.ts +++ b/types/lodash.kebabcase/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { kebabCase } from "lodash"; export = kebabCase; diff --git a/types/lodash.kebabcase/tsconfig.json b/types/lodash.kebabcase/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.kebabcase/tsconfig.json +++ b/types/lodash.kebabcase/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.keyby/index.d.ts b/types/lodash.keyby/index.d.ts index 71c9452107..a2d4a8cd99 100644 --- a/types/lodash.keyby/index.d.ts +++ b/types/lodash.keyby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { keyBy } from "lodash"; export = keyBy; diff --git a/types/lodash.keyby/tsconfig.json b/types/lodash.keyby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.keyby/tsconfig.json +++ b/types/lodash.keyby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.keys/index.d.ts b/types/lodash.keys/index.d.ts index 5a46900e9e..50adc1e081 100644 --- a/types/lodash.keys/index.d.ts +++ b/types/lodash.keys/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { keys } from "lodash"; export = keys; diff --git a/types/lodash.keys/tsconfig.json b/types/lodash.keys/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.keys/tsconfig.json +++ b/types/lodash.keys/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.keysin/index.d.ts b/types/lodash.keysin/index.d.ts index 5f3865880a..26a053b7ad 100644 --- a/types/lodash.keysin/index.d.ts +++ b/types/lodash.keysin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { keysIn } from "lodash"; export = keysIn; diff --git a/types/lodash.keysin/tsconfig.json b/types/lodash.keysin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.keysin/tsconfig.json +++ b/types/lodash.keysin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.last/index.d.ts b/types/lodash.last/index.d.ts index 68702e5161..32d4639f29 100644 --- a/types/lodash.last/index.d.ts +++ b/types/lodash.last/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { last } from "lodash"; export = last; diff --git a/types/lodash.last/tsconfig.json b/types/lodash.last/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.last/tsconfig.json +++ b/types/lodash.last/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.lastindexof/index.d.ts b/types/lodash.lastindexof/index.d.ts index 8d3bf23f24..f91f201f00 100644 --- a/types/lodash.lastindexof/index.d.ts +++ b/types/lodash.lastindexof/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { lastIndexOf } from "lodash"; export = lastIndexOf; diff --git a/types/lodash.lastindexof/tsconfig.json b/types/lodash.lastindexof/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.lastindexof/tsconfig.json +++ b/types/lodash.lastindexof/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.lowercase/index.d.ts b/types/lodash.lowercase/index.d.ts index 8631d135a1..6cd4d3a7ea 100644 --- a/types/lodash.lowercase/index.d.ts +++ b/types/lodash.lowercase/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { lowerCase } from "lodash"; export = lowerCase; diff --git a/types/lodash.lowercase/tsconfig.json b/types/lodash.lowercase/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.lowercase/tsconfig.json +++ b/types/lodash.lowercase/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.lowerfirst/index.d.ts b/types/lodash.lowerfirst/index.d.ts index d51a1ab738..6d13ec3e95 100644 --- a/types/lodash.lowerfirst/index.d.ts +++ b/types/lodash.lowerfirst/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { lowerFirst } from "lodash"; export = lowerFirst; diff --git a/types/lodash.lowerfirst/tsconfig.json b/types/lodash.lowerfirst/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.lowerfirst/tsconfig.json +++ b/types/lodash.lowerfirst/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.lt/index.d.ts b/types/lodash.lt/index.d.ts index 22343735be..2fe1c396bc 100644 --- a/types/lodash.lt/index.d.ts +++ b/types/lodash.lt/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { lt } from "lodash"; export = lt; diff --git a/types/lodash.lt/tsconfig.json b/types/lodash.lt/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.lt/tsconfig.json +++ b/types/lodash.lt/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.lte/index.d.ts b/types/lodash.lte/index.d.ts index f06497da9e..3528d7671b 100644 --- a/types/lodash.lte/index.d.ts +++ b/types/lodash.lte/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { lte } from "lodash"; export = lte; diff --git a/types/lodash.lte/tsconfig.json b/types/lodash.lte/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.lte/tsconfig.json +++ b/types/lodash.lte/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.mapkeys/index.d.ts b/types/lodash.mapkeys/index.d.ts index 4095c48427..cc6f6823a8 100644 --- a/types/lodash.mapkeys/index.d.ts +++ b/types/lodash.mapkeys/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { mapKeys } from "lodash"; export = mapKeys; diff --git a/types/lodash.mapkeys/tsconfig.json b/types/lodash.mapkeys/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.mapkeys/tsconfig.json +++ b/types/lodash.mapkeys/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.mapvalues/index.d.ts b/types/lodash.mapvalues/index.d.ts index 7197bfa570..2defd677fe 100644 --- a/types/lodash.mapvalues/index.d.ts +++ b/types/lodash.mapvalues/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { mapValues } from "lodash"; export = mapValues; diff --git a/types/lodash.mapvalues/tsconfig.json b/types/lodash.mapvalues/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.mapvalues/tsconfig.json +++ b/types/lodash.mapvalues/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.matches/index.d.ts b/types/lodash.matches/index.d.ts index ec1c4dbe78..9d28a8aa5b 100644 --- a/types/lodash.matches/index.d.ts +++ b/types/lodash.matches/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { matches } from "lodash"; export = matches; diff --git a/types/lodash.matches/tsconfig.json b/types/lodash.matches/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.matches/tsconfig.json +++ b/types/lodash.matches/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.matchesproperty/index.d.ts b/types/lodash.matchesproperty/index.d.ts index 90abdcf628..36c3250256 100644 --- a/types/lodash.matchesproperty/index.d.ts +++ b/types/lodash.matchesproperty/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { matchesProperty } from "lodash"; export = matchesProperty; diff --git a/types/lodash.matchesproperty/tsconfig.json b/types/lodash.matchesproperty/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.matchesproperty/tsconfig.json +++ b/types/lodash.matchesproperty/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.max/index.d.ts b/types/lodash.max/index.d.ts index c237d145cb..fd01d46610 100644 --- a/types/lodash.max/index.d.ts +++ b/types/lodash.max/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { max } from "lodash"; export = max; diff --git a/types/lodash.max/tsconfig.json b/types/lodash.max/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.max/tsconfig.json +++ b/types/lodash.max/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.maxby/index.d.ts b/types/lodash.maxby/index.d.ts index 4b535075e5..b465d155d7 100644 --- a/types/lodash.maxby/index.d.ts +++ b/types/lodash.maxby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { maxBy } from "lodash"; export = maxBy; diff --git a/types/lodash.maxby/tsconfig.json b/types/lodash.maxby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.maxby/tsconfig.json +++ b/types/lodash.maxby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.mean/index.d.ts b/types/lodash.mean/index.d.ts index 7567e29f3a..05b99d9695 100644 --- a/types/lodash.mean/index.d.ts +++ b/types/lodash.mean/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { mean } from "lodash"; export = mean; diff --git a/types/lodash.mean/tsconfig.json b/types/lodash.mean/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.mean/tsconfig.json +++ b/types/lodash.mean/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.meanby/index.d.ts b/types/lodash.meanby/index.d.ts index d366bac222..a069413179 100644 --- a/types/lodash.meanby/index.d.ts +++ b/types/lodash.meanby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { meanBy } from "lodash"; export = meanBy; diff --git a/types/lodash.meanby/tsconfig.json b/types/lodash.meanby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.meanby/tsconfig.json +++ b/types/lodash.meanby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.memoize/index.d.ts b/types/lodash.memoize/index.d.ts index dd708405b2..5360723233 100644 --- a/types/lodash.memoize/index.d.ts +++ b/types/lodash.memoize/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { memoize } from "lodash"; export = memoize; diff --git a/types/lodash.memoize/tsconfig.json b/types/lodash.memoize/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.memoize/tsconfig.json +++ b/types/lodash.memoize/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.merge/index.d.ts b/types/lodash.merge/index.d.ts index 8923f13d2e..898e1064a6 100644 --- a/types/lodash.merge/index.d.ts +++ b/types/lodash.merge/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { merge } from "lodash"; export = merge; diff --git a/types/lodash.merge/tsconfig.json b/types/lodash.merge/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.merge/tsconfig.json +++ b/types/lodash.merge/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.mergewith/index.d.ts b/types/lodash.mergewith/index.d.ts index b02a8ed80e..3cfba6ef0c 100644 --- a/types/lodash.mergewith/index.d.ts +++ b/types/lodash.mergewith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { mergeWith } from "lodash"; export = mergeWith; diff --git a/types/lodash.mergewith/tsconfig.json b/types/lodash.mergewith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.mergewith/tsconfig.json +++ b/types/lodash.mergewith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.method/index.d.ts b/types/lodash.method/index.d.ts index d7c3843565..bf30adcae7 100644 --- a/types/lodash.method/index.d.ts +++ b/types/lodash.method/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { method } from "lodash"; export = method; diff --git a/types/lodash.method/tsconfig.json b/types/lodash.method/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.method/tsconfig.json +++ b/types/lodash.method/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.methodof/index.d.ts b/types/lodash.methodof/index.d.ts index d0687ad4bd..16ceaf50fd 100644 --- a/types/lodash.methodof/index.d.ts +++ b/types/lodash.methodof/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { methodOf } from "lodash"; export = methodOf; diff --git a/types/lodash.methodof/tsconfig.json b/types/lodash.methodof/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.methodof/tsconfig.json +++ b/types/lodash.methodof/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.min/index.d.ts b/types/lodash.min/index.d.ts index 23a616084c..55019b86c8 100644 --- a/types/lodash.min/index.d.ts +++ b/types/lodash.min/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { min } from "lodash"; export = min; diff --git a/types/lodash.min/tsconfig.json b/types/lodash.min/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.min/tsconfig.json +++ b/types/lodash.min/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.minby/index.d.ts b/types/lodash.minby/index.d.ts index 349c55294f..a3acf0b5bc 100644 --- a/types/lodash.minby/index.d.ts +++ b/types/lodash.minby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { minBy } from "lodash"; export = minBy; diff --git a/types/lodash.minby/tsconfig.json b/types/lodash.minby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.minby/tsconfig.json +++ b/types/lodash.minby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.mixin/index.d.ts b/types/lodash.mixin/index.d.ts index e8f6d84786..43c70210a4 100644 --- a/types/lodash.mixin/index.d.ts +++ b/types/lodash.mixin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { mixin } from "lodash"; export = mixin; diff --git a/types/lodash.mixin/tsconfig.json b/types/lodash.mixin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.mixin/tsconfig.json +++ b/types/lodash.mixin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.negate/index.d.ts b/types/lodash.negate/index.d.ts index dad0eb5756..cf5f8ede55 100644 --- a/types/lodash.negate/index.d.ts +++ b/types/lodash.negate/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { negate } from "lodash"; export = negate; diff --git a/types/lodash.negate/tsconfig.json b/types/lodash.negate/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.negate/tsconfig.json +++ b/types/lodash.negate/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.noop/index.d.ts b/types/lodash.noop/index.d.ts index e7d5f4cd22..a453235435 100644 --- a/types/lodash.noop/index.d.ts +++ b/types/lodash.noop/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { noop } from "lodash"; export = noop; diff --git a/types/lodash.noop/tsconfig.json b/types/lodash.noop/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.noop/tsconfig.json +++ b/types/lodash.noop/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.now/index.d.ts b/types/lodash.now/index.d.ts index f18cc7d123..9949432edc 100644 --- a/types/lodash.now/index.d.ts +++ b/types/lodash.now/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { now } from "lodash"; export = now; diff --git a/types/lodash.now/tsconfig.json b/types/lodash.now/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.now/tsconfig.json +++ b/types/lodash.now/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.ntharg/index.d.ts b/types/lodash.ntharg/index.d.ts index 37e264b952..d3f152f32c 100644 --- a/types/lodash.ntharg/index.d.ts +++ b/types/lodash.ntharg/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { nthArg } from "lodash"; export = nthArg; diff --git a/types/lodash.ntharg/tsconfig.json b/types/lodash.ntharg/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.ntharg/tsconfig.json +++ b/types/lodash.ntharg/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.omit/index.d.ts b/types/lodash.omit/index.d.ts index 485fda0095..73930dd4e4 100644 --- a/types/lodash.omit/index.d.ts +++ b/types/lodash.omit/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { omit } from "lodash"; export = omit; diff --git a/types/lodash.omit/tsconfig.json b/types/lodash.omit/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.omit/tsconfig.json +++ b/types/lodash.omit/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.omitby/index.d.ts b/types/lodash.omitby/index.d.ts index 303f54e632..869ef1af22 100644 --- a/types/lodash.omitby/index.d.ts +++ b/types/lodash.omitby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { omitBy } from "lodash"; export = omitBy; diff --git a/types/lodash.omitby/tsconfig.json b/types/lodash.omitby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.omitby/tsconfig.json +++ b/types/lodash.omitby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.once/index.d.ts b/types/lodash.once/index.d.ts index 6daafbe7cc..f12e9c4804 100644 --- a/types/lodash.once/index.d.ts +++ b/types/lodash.once/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { once } from "lodash"; export = once; diff --git a/types/lodash.once/tsconfig.json b/types/lodash.once/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.once/tsconfig.json +++ b/types/lodash.once/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.orderby/index.d.ts b/types/lodash.orderby/index.d.ts index bb45c622bc..cf9d775606 100644 --- a/types/lodash.orderby/index.d.ts +++ b/types/lodash.orderby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { orderBy } from "lodash"; export = orderBy; diff --git a/types/lodash.orderby/tsconfig.json b/types/lodash.orderby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.orderby/tsconfig.json +++ b/types/lodash.orderby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.over/index.d.ts b/types/lodash.over/index.d.ts index 43b6a5aa5e..69d1b48ba4 100644 --- a/types/lodash.over/index.d.ts +++ b/types/lodash.over/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { over } from "lodash"; export = over; diff --git a/types/lodash.over/tsconfig.json b/types/lodash.over/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.over/tsconfig.json +++ b/types/lodash.over/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.overargs/index.d.ts b/types/lodash.overargs/index.d.ts index 3c96c799f7..303bb623c5 100644 --- a/types/lodash.overargs/index.d.ts +++ b/types/lodash.overargs/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { overArgs } from "lodash"; export = overArgs; diff --git a/types/lodash.overargs/tsconfig.json b/types/lodash.overargs/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.overargs/tsconfig.json +++ b/types/lodash.overargs/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.overevery/index.d.ts b/types/lodash.overevery/index.d.ts index f57a8168b9..a6c165e00f 100644 --- a/types/lodash.overevery/index.d.ts +++ b/types/lodash.overevery/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { overEvery } from "lodash"; export = overEvery; diff --git a/types/lodash.overevery/tsconfig.json b/types/lodash.overevery/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.overevery/tsconfig.json +++ b/types/lodash.overevery/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.oversome/index.d.ts b/types/lodash.oversome/index.d.ts index 4a1eae0d8a..66504f71b8 100644 --- a/types/lodash.oversome/index.d.ts +++ b/types/lodash.oversome/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { overSome } from "lodash"; export = overSome; diff --git a/types/lodash.oversome/tsconfig.json b/types/lodash.oversome/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.oversome/tsconfig.json +++ b/types/lodash.oversome/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pad/index.d.ts b/types/lodash.pad/index.d.ts index 965ff86c19..ed988734f3 100644 --- a/types/lodash.pad/index.d.ts +++ b/types/lodash.pad/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pad } from "lodash"; export = pad; diff --git a/types/lodash.pad/tsconfig.json b/types/lodash.pad/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pad/tsconfig.json +++ b/types/lodash.pad/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.padend/index.d.ts b/types/lodash.padend/index.d.ts index b239a13ba1..913dc6f2e1 100644 --- a/types/lodash.padend/index.d.ts +++ b/types/lodash.padend/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { padEnd } from "lodash"; export = padEnd; diff --git a/types/lodash.padend/tsconfig.json b/types/lodash.padend/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.padend/tsconfig.json +++ b/types/lodash.padend/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.padstart/index.d.ts b/types/lodash.padstart/index.d.ts index 1848d29ce6..89ea86a238 100644 --- a/types/lodash.padstart/index.d.ts +++ b/types/lodash.padstart/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { padStart } from "lodash"; export = padStart; diff --git a/types/lodash.padstart/tsconfig.json b/types/lodash.padstart/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.padstart/tsconfig.json +++ b/types/lodash.padstart/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.parseint/index.d.ts b/types/lodash.parseint/index.d.ts index 6f960cca4d..a12494974f 100644 --- a/types/lodash.parseint/index.d.ts +++ b/types/lodash.parseint/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { parseInt } from "lodash"; export = parseInt; diff --git a/types/lodash.parseint/tsconfig.json b/types/lodash.parseint/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.parseint/tsconfig.json +++ b/types/lodash.parseint/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.partial/index.d.ts b/types/lodash.partial/index.d.ts index bd9643be28..016722790f 100644 --- a/types/lodash.partial/index.d.ts +++ b/types/lodash.partial/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { partial } from "lodash"; export = partial; diff --git a/types/lodash.partial/tsconfig.json b/types/lodash.partial/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.partial/tsconfig.json +++ b/types/lodash.partial/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.partialright/index.d.ts b/types/lodash.partialright/index.d.ts index f5de9061ab..1f750892dc 100644 --- a/types/lodash.partialright/index.d.ts +++ b/types/lodash.partialright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { partialRight } from "lodash"; export = partialRight; diff --git a/types/lodash.partialright/tsconfig.json b/types/lodash.partialright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.partialright/tsconfig.json +++ b/types/lodash.partialright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.partition/index.d.ts b/types/lodash.partition/index.d.ts index 516989d57f..15f7fe78c7 100644 --- a/types/lodash.partition/index.d.ts +++ b/types/lodash.partition/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { partition } from "lodash"; export = partition; diff --git a/types/lodash.partition/tsconfig.json b/types/lodash.partition/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.partition/tsconfig.json +++ b/types/lodash.partition/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pick/index.d.ts b/types/lodash.pick/index.d.ts index e27cd9c51f..d8e9744b37 100644 --- a/types/lodash.pick/index.d.ts +++ b/types/lodash.pick/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pick } from "lodash"; export = pick; diff --git a/types/lodash.pick/tsconfig.json b/types/lodash.pick/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pick/tsconfig.json +++ b/types/lodash.pick/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pickby/index.d.ts b/types/lodash.pickby/index.d.ts index c18148f636..fba3a8aaa9 100644 --- a/types/lodash.pickby/index.d.ts +++ b/types/lodash.pickby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pickBy } from "lodash"; export = pickBy; diff --git a/types/lodash.pickby/tsconfig.json b/types/lodash.pickby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pickby/tsconfig.json +++ b/types/lodash.pickby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.property/index.d.ts b/types/lodash.property/index.d.ts index 5965aab1dc..96a0a281c1 100644 --- a/types/lodash.property/index.d.ts +++ b/types/lodash.property/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { property } from "lodash"; export = property; diff --git a/types/lodash.property/tsconfig.json b/types/lodash.property/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.property/tsconfig.json +++ b/types/lodash.property/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.propertyof/index.d.ts b/types/lodash.propertyof/index.d.ts index 055296d842..1037d965e6 100644 --- a/types/lodash.propertyof/index.d.ts +++ b/types/lodash.propertyof/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { propertyOf } from "lodash"; export = propertyOf; diff --git a/types/lodash.propertyof/tsconfig.json b/types/lodash.propertyof/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.propertyof/tsconfig.json +++ b/types/lodash.propertyof/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pull/index.d.ts b/types/lodash.pull/index.d.ts index 63e8eef842..4b2a7a53c1 100644 --- a/types/lodash.pull/index.d.ts +++ b/types/lodash.pull/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pull } from "lodash"; export = pull; diff --git a/types/lodash.pull/tsconfig.json b/types/lodash.pull/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pull/tsconfig.json +++ b/types/lodash.pull/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pullall/index.d.ts b/types/lodash.pullall/index.d.ts index 7a85d42fba..2c6c5b518f 100644 --- a/types/lodash.pullall/index.d.ts +++ b/types/lodash.pullall/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pullAll } from "lodash"; export = pullAll; diff --git a/types/lodash.pullall/tsconfig.json b/types/lodash.pullall/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pullall/tsconfig.json +++ b/types/lodash.pullall/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pullallby/index.d.ts b/types/lodash.pullallby/index.d.ts index e55d5a809c..10981f9d3b 100644 --- a/types/lodash.pullallby/index.d.ts +++ b/types/lodash.pullallby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pullAllBy } from "lodash"; export = pullAllBy; diff --git a/types/lodash.pullallby/tsconfig.json b/types/lodash.pullallby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pullallby/tsconfig.json +++ b/types/lodash.pullallby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pullat/index.d.ts b/types/lodash.pullat/index.d.ts index ce6a9edccf..28b8826f4d 100644 --- a/types/lodash.pullat/index.d.ts +++ b/types/lodash.pullat/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { pullAt } from "lodash"; export = pullAt; diff --git a/types/lodash.pullat/tsconfig.json b/types/lodash.pullat/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.pullat/tsconfig.json +++ b/types/lodash.pullat/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.random/index.d.ts b/types/lodash.random/index.d.ts index 8a4e9f6a5d..c31cf46029 100644 --- a/types/lodash.random/index.d.ts +++ b/types/lodash.random/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { random } from "lodash"; export = random; diff --git a/types/lodash.random/tsconfig.json b/types/lodash.random/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.random/tsconfig.json +++ b/types/lodash.random/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.range/index.d.ts b/types/lodash.range/index.d.ts index 27a01590e9..0b3c1169be 100644 --- a/types/lodash.range/index.d.ts +++ b/types/lodash.range/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { range } from "lodash"; export = range; diff --git a/types/lodash.range/tsconfig.json b/types/lodash.range/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.range/tsconfig.json +++ b/types/lodash.range/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.rangeright/index.d.ts b/types/lodash.rangeright/index.d.ts index 121355256b..376af8b00a 100644 --- a/types/lodash.rangeright/index.d.ts +++ b/types/lodash.rangeright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { rangeRight } from "lodash"; export = rangeRight; diff --git a/types/lodash.rangeright/tsconfig.json b/types/lodash.rangeright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.rangeright/tsconfig.json +++ b/types/lodash.rangeright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.rearg/index.d.ts b/types/lodash.rearg/index.d.ts index d16f74f4e1..6732b14c5b 100644 --- a/types/lodash.rearg/index.d.ts +++ b/types/lodash.rearg/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { rearg } from "lodash"; export = rearg; diff --git a/types/lodash.rearg/tsconfig.json b/types/lodash.rearg/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.rearg/tsconfig.json +++ b/types/lodash.rearg/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.reduce/index.d.ts b/types/lodash.reduce/index.d.ts index f913d2accf..adc342bbe2 100644 --- a/types/lodash.reduce/index.d.ts +++ b/types/lodash.reduce/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { reduce } from "lodash"; export = reduce; diff --git a/types/lodash.reduce/tsconfig.json b/types/lodash.reduce/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.reduce/tsconfig.json +++ b/types/lodash.reduce/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.reduceright/index.d.ts b/types/lodash.reduceright/index.d.ts index 3c3b19697f..3f1b5492b7 100644 --- a/types/lodash.reduceright/index.d.ts +++ b/types/lodash.reduceright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { reduceRight } from "lodash"; export = reduceRight; diff --git a/types/lodash.reduceright/tsconfig.json b/types/lodash.reduceright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.reduceright/tsconfig.json +++ b/types/lodash.reduceright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.reject/index.d.ts b/types/lodash.reject/index.d.ts index 48a680d6b1..2d673d2563 100644 --- a/types/lodash.reject/index.d.ts +++ b/types/lodash.reject/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { reject } from "lodash"; export = reject; diff --git a/types/lodash.reject/tsconfig.json b/types/lodash.reject/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.reject/tsconfig.json +++ b/types/lodash.reject/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.remove/index.d.ts b/types/lodash.remove/index.d.ts index d7a437680b..ea7ed20396 100644 --- a/types/lodash.remove/index.d.ts +++ b/types/lodash.remove/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { remove } from "lodash"; export = remove; diff --git a/types/lodash.remove/tsconfig.json b/types/lodash.remove/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.remove/tsconfig.json +++ b/types/lodash.remove/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.repeat/index.d.ts b/types/lodash.repeat/index.d.ts index d6994f1603..de43ada46e 100644 --- a/types/lodash.repeat/index.d.ts +++ b/types/lodash.repeat/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { repeat } from "lodash"; export = repeat; diff --git a/types/lodash.repeat/tsconfig.json b/types/lodash.repeat/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.repeat/tsconfig.json +++ b/types/lodash.repeat/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.replace/index.d.ts b/types/lodash.replace/index.d.ts index 3168ecf2fe..63909ebbee 100644 --- a/types/lodash.replace/index.d.ts +++ b/types/lodash.replace/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { replace } from "lodash"; export = replace; diff --git a/types/lodash.replace/tsconfig.json b/types/lodash.replace/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.replace/tsconfig.json +++ b/types/lodash.replace/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.rest/index.d.ts b/types/lodash.rest/index.d.ts index 65ad748c4b..b99496af83 100644 --- a/types/lodash.rest/index.d.ts +++ b/types/lodash.rest/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { rest } from "lodash"; export = rest; diff --git a/types/lodash.rest/tsconfig.json b/types/lodash.rest/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.rest/tsconfig.json +++ b/types/lodash.rest/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.result/index.d.ts b/types/lodash.result/index.d.ts index f94523893f..2cf36f8192 100644 --- a/types/lodash.result/index.d.ts +++ b/types/lodash.result/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { result } from "lodash"; export = result; diff --git a/types/lodash.result/tsconfig.json b/types/lodash.result/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.result/tsconfig.json +++ b/types/lodash.result/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.reverse/index.d.ts b/types/lodash.reverse/index.d.ts index 1bdbc678f0..bfd74a2cda 100644 --- a/types/lodash.reverse/index.d.ts +++ b/types/lodash.reverse/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { reverse } from "lodash"; export = reverse; diff --git a/types/lodash.reverse/tsconfig.json b/types/lodash.reverse/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.reverse/tsconfig.json +++ b/types/lodash.reverse/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.round/index.d.ts b/types/lodash.round/index.d.ts index d1c742250d..77f121f0c6 100644 --- a/types/lodash.round/index.d.ts +++ b/types/lodash.round/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { round } from "lodash"; export = round; diff --git a/types/lodash.round/tsconfig.json b/types/lodash.round/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.round/tsconfig.json +++ b/types/lodash.round/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sample/index.d.ts b/types/lodash.sample/index.d.ts index f5ae129268..68ee7aa532 100644 --- a/types/lodash.sample/index.d.ts +++ b/types/lodash.sample/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sample } from "lodash"; export = sample; diff --git a/types/lodash.sample/tsconfig.json b/types/lodash.sample/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sample/tsconfig.json +++ b/types/lodash.sample/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.samplesize/index.d.ts b/types/lodash.samplesize/index.d.ts index 4aba83dd8c..1bc0ee6d64 100644 --- a/types/lodash.samplesize/index.d.ts +++ b/types/lodash.samplesize/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sampleSize } from "lodash"; export = sampleSize; diff --git a/types/lodash.samplesize/tsconfig.json b/types/lodash.samplesize/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.samplesize/tsconfig.json +++ b/types/lodash.samplesize/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.set/index.d.ts b/types/lodash.set/index.d.ts index b3c300738d..06f1d1bf63 100644 --- a/types/lodash.set/index.d.ts +++ b/types/lodash.set/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { set } from "lodash"; export = set; diff --git a/types/lodash.set/tsconfig.json b/types/lodash.set/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.set/tsconfig.json +++ b/types/lodash.set/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.setwith/index.d.ts b/types/lodash.setwith/index.d.ts index cf58ef326b..761958e066 100644 --- a/types/lodash.setwith/index.d.ts +++ b/types/lodash.setwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { setWith } from "lodash"; export = setWith; diff --git a/types/lodash.setwith/tsconfig.json b/types/lodash.setwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.setwith/tsconfig.json +++ b/types/lodash.setwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.shuffle/index.d.ts b/types/lodash.shuffle/index.d.ts index b5ba4f828c..7878ce6f6d 100644 --- a/types/lodash.shuffle/index.d.ts +++ b/types/lodash.shuffle/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { shuffle } from "lodash"; export = shuffle; diff --git a/types/lodash.shuffle/tsconfig.json b/types/lodash.shuffle/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.shuffle/tsconfig.json +++ b/types/lodash.shuffle/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.size/index.d.ts b/types/lodash.size/index.d.ts index ac93e85484..53404c04b5 100644 --- a/types/lodash.size/index.d.ts +++ b/types/lodash.size/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { size } from "lodash"; export = size; diff --git a/types/lodash.size/tsconfig.json b/types/lodash.size/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.size/tsconfig.json +++ b/types/lodash.size/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.slice/index.d.ts b/types/lodash.slice/index.d.ts index 1e2ddc6321..fb4deb9865 100644 --- a/types/lodash.slice/index.d.ts +++ b/types/lodash.slice/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { slice } from "lodash"; export = slice; diff --git a/types/lodash.slice/tsconfig.json b/types/lodash.slice/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.slice/tsconfig.json +++ b/types/lodash.slice/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.snakecase/index.d.ts b/types/lodash.snakecase/index.d.ts index d25c609fc7..9f02ab6662 100644 --- a/types/lodash.snakecase/index.d.ts +++ b/types/lodash.snakecase/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { snakeCase } from "lodash"; export = snakeCase; diff --git a/types/lodash.snakecase/tsconfig.json b/types/lodash.snakecase/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.snakecase/tsconfig.json +++ b/types/lodash.snakecase/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.some/index.d.ts b/types/lodash.some/index.d.ts index f94f375307..8de3af0b27 100644 --- a/types/lodash.some/index.d.ts +++ b/types/lodash.some/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { some } from "lodash"; export = some; diff --git a/types/lodash.some/tsconfig.json b/types/lodash.some/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.some/tsconfig.json +++ b/types/lodash.some/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortby/index.d.ts b/types/lodash.sortby/index.d.ts index 79547d6b99..5621511817 100644 --- a/types/lodash.sortby/index.d.ts +++ b/types/lodash.sortby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortBy } from "lodash"; export = sortBy; diff --git a/types/lodash.sortby/tsconfig.json b/types/lodash.sortby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortby/tsconfig.json +++ b/types/lodash.sortby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortedindex/index.d.ts b/types/lodash.sortedindex/index.d.ts index a4a78b00b1..7f81b5a186 100644 --- a/types/lodash.sortedindex/index.d.ts +++ b/types/lodash.sortedindex/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedIndex } from "lodash"; export = sortedIndex; diff --git a/types/lodash.sortedindex/tsconfig.json b/types/lodash.sortedindex/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortedindex/tsconfig.json +++ b/types/lodash.sortedindex/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortedindexby/index.d.ts b/types/lodash.sortedindexby/index.d.ts index cb9ed162b4..c7f9b999ee 100644 --- a/types/lodash.sortedindexby/index.d.ts +++ b/types/lodash.sortedindexby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedIndexBy } from "lodash"; export = sortedIndexBy; diff --git a/types/lodash.sortedindexby/tsconfig.json b/types/lodash.sortedindexby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortedindexby/tsconfig.json +++ b/types/lodash.sortedindexby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortedindexof/index.d.ts b/types/lodash.sortedindexof/index.d.ts index 4d9e4c789a..5c12749cfa 100644 --- a/types/lodash.sortedindexof/index.d.ts +++ b/types/lodash.sortedindexof/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedIndexOf } from "lodash"; export = sortedIndexOf; diff --git a/types/lodash.sortedindexof/tsconfig.json b/types/lodash.sortedindexof/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortedindexof/tsconfig.json +++ b/types/lodash.sortedindexof/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortedlastindex/index.d.ts b/types/lodash.sortedlastindex/index.d.ts index 81700ad561..cd682d759b 100644 --- a/types/lodash.sortedlastindex/index.d.ts +++ b/types/lodash.sortedlastindex/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedLastIndex } from "lodash"; export = sortedLastIndex; diff --git a/types/lodash.sortedlastindex/tsconfig.json b/types/lodash.sortedlastindex/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortedlastindex/tsconfig.json +++ b/types/lodash.sortedlastindex/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortedlastindexby/index.d.ts b/types/lodash.sortedlastindexby/index.d.ts index 5ff5f07df5..1958286065 100644 --- a/types/lodash.sortedlastindexby/index.d.ts +++ b/types/lodash.sortedlastindexby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedLastIndexBy } from "lodash"; export = sortedLastIndexBy; diff --git a/types/lodash.sortedlastindexby/tsconfig.json b/types/lodash.sortedlastindexby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortedlastindexby/tsconfig.json +++ b/types/lodash.sortedlastindexby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sortedlastindexof/index.d.ts b/types/lodash.sortedlastindexof/index.d.ts index 37ab9b1308..1589506948 100644 --- a/types/lodash.sortedlastindexof/index.d.ts +++ b/types/lodash.sortedlastindexof/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedLastIndexOf } from "lodash"; export = sortedLastIndexOf; diff --git a/types/lodash.sortedlastindexof/tsconfig.json b/types/lodash.sortedlastindexof/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sortedlastindexof/tsconfig.json +++ b/types/lodash.sortedlastindexof/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sorteduniq/index.d.ts b/types/lodash.sorteduniq/index.d.ts index 27fc07fae3..1e7d07ede8 100644 --- a/types/lodash.sorteduniq/index.d.ts +++ b/types/lodash.sorteduniq/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedUniq } from "lodash"; export = sortedUniq; diff --git a/types/lodash.sorteduniq/tsconfig.json b/types/lodash.sorteduniq/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sorteduniq/tsconfig.json +++ b/types/lodash.sorteduniq/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sorteduniqby/index.d.ts b/types/lodash.sorteduniqby/index.d.ts index 1648af601b..c369bd0b56 100644 --- a/types/lodash.sorteduniqby/index.d.ts +++ b/types/lodash.sorteduniqby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sortedUniqBy } from "lodash"; export = sortedUniqBy; diff --git a/types/lodash.sorteduniqby/tsconfig.json b/types/lodash.sorteduniqby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sorteduniqby/tsconfig.json +++ b/types/lodash.sorteduniqby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.split/index.d.ts b/types/lodash.split/index.d.ts index c641f9c479..a79efa7fca 100644 --- a/types/lodash.split/index.d.ts +++ b/types/lodash.split/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { split } from "lodash"; export = split; diff --git a/types/lodash.split/tsconfig.json b/types/lodash.split/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.split/tsconfig.json +++ b/types/lodash.split/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.spread/index.d.ts b/types/lodash.spread/index.d.ts index 5de424ac83..db633a1a02 100644 --- a/types/lodash.spread/index.d.ts +++ b/types/lodash.spread/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { spread } from "lodash"; export = spread; diff --git a/types/lodash.spread/tsconfig.json b/types/lodash.spread/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.spread/tsconfig.json +++ b/types/lodash.spread/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.startcase/index.d.ts b/types/lodash.startcase/index.d.ts index 3b9ebf565e..cdd264aa98 100644 --- a/types/lodash.startcase/index.d.ts +++ b/types/lodash.startcase/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { startCase } from "lodash"; export = startCase; diff --git a/types/lodash.startcase/tsconfig.json b/types/lodash.startcase/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.startcase/tsconfig.json +++ b/types/lodash.startcase/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.startswith/index.d.ts b/types/lodash.startswith/index.d.ts index 203081a08e..4158b60dfc 100644 --- a/types/lodash.startswith/index.d.ts +++ b/types/lodash.startswith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { startsWith } from "lodash"; export = startsWith; diff --git a/types/lodash.startswith/tsconfig.json b/types/lodash.startswith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.startswith/tsconfig.json +++ b/types/lodash.startswith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.subtract/index.d.ts b/types/lodash.subtract/index.d.ts index a793884fc4..8d89b2fc46 100644 --- a/types/lodash.subtract/index.d.ts +++ b/types/lodash.subtract/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { subtract } from "lodash"; export = subtract; diff --git a/types/lodash.subtract/tsconfig.json b/types/lodash.subtract/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.subtract/tsconfig.json +++ b/types/lodash.subtract/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sum/index.d.ts b/types/lodash.sum/index.d.ts index 901638e75f..baddaeab51 100644 --- a/types/lodash.sum/index.d.ts +++ b/types/lodash.sum/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sum } from "lodash"; export = sum; diff --git a/types/lodash.sum/tsconfig.json b/types/lodash.sum/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sum/tsconfig.json +++ b/types/lodash.sum/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.sumby/index.d.ts b/types/lodash.sumby/index.d.ts index 021108f199..4ec3e0246b 100644 --- a/types/lodash.sumby/index.d.ts +++ b/types/lodash.sumby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { sumBy } from "lodash"; export = sumBy; diff --git a/types/lodash.sumby/tsconfig.json b/types/lodash.sumby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.sumby/tsconfig.json +++ b/types/lodash.sumby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tail/index.d.ts b/types/lodash.tail/index.d.ts index b590504627..2deb621088 100644 --- a/types/lodash.tail/index.d.ts +++ b/types/lodash.tail/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { tail } from "lodash"; export = tail; diff --git a/types/lodash.tail/tsconfig.json b/types/lodash.tail/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tail/tsconfig.json +++ b/types/lodash.tail/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.take/index.d.ts b/types/lodash.take/index.d.ts index 5a52ea747d..7cfbc6ccbc 100644 --- a/types/lodash.take/index.d.ts +++ b/types/lodash.take/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { take } from "lodash"; export = take; diff --git a/types/lodash.take/tsconfig.json b/types/lodash.take/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.take/tsconfig.json +++ b/types/lodash.take/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.takeright/index.d.ts b/types/lodash.takeright/index.d.ts index 28fa883cc8..fed2b72c0c 100644 --- a/types/lodash.takeright/index.d.ts +++ b/types/lodash.takeright/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { takeRight } from "lodash"; export = takeRight; diff --git a/types/lodash.takeright/tsconfig.json b/types/lodash.takeright/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.takeright/tsconfig.json +++ b/types/lodash.takeright/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.takerightwhile/index.d.ts b/types/lodash.takerightwhile/index.d.ts index 28f87c93f2..5f684dcd27 100644 --- a/types/lodash.takerightwhile/index.d.ts +++ b/types/lodash.takerightwhile/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { takeRightWhile } from "lodash"; export = takeRightWhile; diff --git a/types/lodash.takerightwhile/tsconfig.json b/types/lodash.takerightwhile/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.takerightwhile/tsconfig.json +++ b/types/lodash.takerightwhile/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.takewhile/index.d.ts b/types/lodash.takewhile/index.d.ts index 119c92ed78..9db2b65e58 100644 --- a/types/lodash.takewhile/index.d.ts +++ b/types/lodash.takewhile/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { takeWhile } from "lodash"; export = takeWhile; diff --git a/types/lodash.takewhile/tsconfig.json b/types/lodash.takewhile/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.takewhile/tsconfig.json +++ b/types/lodash.takewhile/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.template/index.d.ts b/types/lodash.template/index.d.ts index fc8aaba41f..e88967701c 100644 --- a/types/lodash.template/index.d.ts +++ b/types/lodash.template/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { template } from "lodash"; export = template; diff --git a/types/lodash.template/tsconfig.json b/types/lodash.template/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.template/tsconfig.json +++ b/types/lodash.template/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.throttle/index.d.ts b/types/lodash.throttle/index.d.ts index 2a9183ef6d..e0e8d29860 100644 --- a/types/lodash.throttle/index.d.ts +++ b/types/lodash.throttle/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { throttle } from "lodash"; export = throttle; diff --git a/types/lodash.throttle/tsconfig.json b/types/lodash.throttle/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.throttle/tsconfig.json +++ b/types/lodash.throttle/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.times/index.d.ts b/types/lodash.times/index.d.ts index f2bb5a36a9..75bb899eac 100644 --- a/types/lodash.times/index.d.ts +++ b/types/lodash.times/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { times } from "lodash"; export = times; diff --git a/types/lodash.times/tsconfig.json b/types/lodash.times/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.times/tsconfig.json +++ b/types/lodash.times/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.toarray/index.d.ts b/types/lodash.toarray/index.d.ts index 20330b5fb1..26a3017456 100644 --- a/types/lodash.toarray/index.d.ts +++ b/types/lodash.toarray/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toArray } from "lodash"; export = toArray; diff --git a/types/lodash.toarray/tsconfig.json b/types/lodash.toarray/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.toarray/tsconfig.json +++ b/types/lodash.toarray/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tointeger/index.d.ts b/types/lodash.tointeger/index.d.ts index b818422b6b..eb844baf5d 100644 --- a/types/lodash.tointeger/index.d.ts +++ b/types/lodash.tointeger/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toInteger } from "lodash"; export = toInteger; diff --git a/types/lodash.tointeger/tsconfig.json b/types/lodash.tointeger/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tointeger/tsconfig.json +++ b/types/lodash.tointeger/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tolength/index.d.ts b/types/lodash.tolength/index.d.ts index 9edbc2e88e..1cfb860836 100644 --- a/types/lodash.tolength/index.d.ts +++ b/types/lodash.tolength/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toLength } from "lodash"; export = toLength; diff --git a/types/lodash.tolength/tsconfig.json b/types/lodash.tolength/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tolength/tsconfig.json +++ b/types/lodash.tolength/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tolower/index.d.ts b/types/lodash.tolower/index.d.ts index 4d1ec94c30..6406b08bc6 100644 --- a/types/lodash.tolower/index.d.ts +++ b/types/lodash.tolower/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toLower } from "lodash"; export = toLower; diff --git a/types/lodash.tolower/tsconfig.json b/types/lodash.tolower/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tolower/tsconfig.json +++ b/types/lodash.tolower/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tonumber/index.d.ts b/types/lodash.tonumber/index.d.ts index b06a1f077d..cf0096a674 100644 --- a/types/lodash.tonumber/index.d.ts +++ b/types/lodash.tonumber/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toNumber } from "lodash"; export = toNumber; diff --git a/types/lodash.tonumber/tsconfig.json b/types/lodash.tonumber/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tonumber/tsconfig.json +++ b/types/lodash.tonumber/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.topairs/index.d.ts b/types/lodash.topairs/index.d.ts index ae27acc025..3daaaf7b42 100644 --- a/types/lodash.topairs/index.d.ts +++ b/types/lodash.topairs/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toPairs } from "lodash"; export = toPairs; diff --git a/types/lodash.topairs/tsconfig.json b/types/lodash.topairs/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.topairs/tsconfig.json +++ b/types/lodash.topairs/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.topairsin/index.d.ts b/types/lodash.topairsin/index.d.ts index ec4a735dfe..f43a72c808 100644 --- a/types/lodash.topairsin/index.d.ts +++ b/types/lodash.topairsin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toPairsIn } from "lodash"; export = toPairsIn; diff --git a/types/lodash.topairsin/tsconfig.json b/types/lodash.topairsin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.topairsin/tsconfig.json +++ b/types/lodash.topairsin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.topath/index.d.ts b/types/lodash.topath/index.d.ts index 3ad9539769..dfc2a64527 100644 --- a/types/lodash.topath/index.d.ts +++ b/types/lodash.topath/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toPath } from "lodash"; export = toPath; diff --git a/types/lodash.topath/tsconfig.json b/types/lodash.topath/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.topath/tsconfig.json +++ b/types/lodash.topath/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.toplainobject/index.d.ts b/types/lodash.toplainobject/index.d.ts index 6c9e621408..be29c91a9c 100644 --- a/types/lodash.toplainobject/index.d.ts +++ b/types/lodash.toplainobject/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toPlainObject } from "lodash"; export = toPlainObject; diff --git a/types/lodash.toplainobject/tsconfig.json b/types/lodash.toplainobject/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.toplainobject/tsconfig.json +++ b/types/lodash.toplainobject/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tosafeinteger/index.d.ts b/types/lodash.tosafeinteger/index.d.ts index eae1039395..0b9778b896 100644 --- a/types/lodash.tosafeinteger/index.d.ts +++ b/types/lodash.tosafeinteger/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toSafeInteger } from "lodash"; export = toSafeInteger; diff --git a/types/lodash.tosafeinteger/tsconfig.json b/types/lodash.tosafeinteger/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tosafeinteger/tsconfig.json +++ b/types/lodash.tosafeinteger/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.tostring/index.d.ts b/types/lodash.tostring/index.d.ts index 2c06ced7b4..950f766fc7 100644 --- a/types/lodash.tostring/index.d.ts +++ b/types/lodash.tostring/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toString } from "lodash"; export = toString; diff --git a/types/lodash.tostring/tsconfig.json b/types/lodash.tostring/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.tostring/tsconfig.json +++ b/types/lodash.tostring/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.toupper/index.d.ts b/types/lodash.toupper/index.d.ts index 7a4e99daaa..e5da52e231 100644 --- a/types/lodash.toupper/index.d.ts +++ b/types/lodash.toupper/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { toUpper } from "lodash"; export = toUpper; diff --git a/types/lodash.toupper/tsconfig.json b/types/lodash.toupper/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.toupper/tsconfig.json +++ b/types/lodash.toupper/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.transform/index.d.ts b/types/lodash.transform/index.d.ts index d7ff2f6528..0af3c0bf7b 100644 --- a/types/lodash.transform/index.d.ts +++ b/types/lodash.transform/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { transform } from "lodash"; export = transform; diff --git a/types/lodash.transform/tsconfig.json b/types/lodash.transform/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.transform/tsconfig.json +++ b/types/lodash.transform/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.trim/index.d.ts b/types/lodash.trim/index.d.ts index 896d872b4f..196ea54450 100644 --- a/types/lodash.trim/index.d.ts +++ b/types/lodash.trim/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { trim } from "lodash"; export = trim; diff --git a/types/lodash.trim/tsconfig.json b/types/lodash.trim/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.trim/tsconfig.json +++ b/types/lodash.trim/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.trimend/index.d.ts b/types/lodash.trimend/index.d.ts index 2445e9cfa9..77b7885ae3 100644 --- a/types/lodash.trimend/index.d.ts +++ b/types/lodash.trimend/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { trimEnd } from "lodash"; export = trimEnd; diff --git a/types/lodash.trimend/tsconfig.json b/types/lodash.trimend/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.trimend/tsconfig.json +++ b/types/lodash.trimend/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.trimstart/index.d.ts b/types/lodash.trimstart/index.d.ts index b904faf274..3518b77968 100644 --- a/types/lodash.trimstart/index.d.ts +++ b/types/lodash.trimstart/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { trimStart } from "lodash"; export = trimStart; diff --git a/types/lodash.trimstart/tsconfig.json b/types/lodash.trimstart/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.trimstart/tsconfig.json +++ b/types/lodash.trimstart/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.truncate/index.d.ts b/types/lodash.truncate/index.d.ts index bb12c86db0..d66553480e 100644 --- a/types/lodash.truncate/index.d.ts +++ b/types/lodash.truncate/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { truncate } from "lodash"; export = truncate; diff --git a/types/lodash.truncate/tsconfig.json b/types/lodash.truncate/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.truncate/tsconfig.json +++ b/types/lodash.truncate/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unary/index.d.ts b/types/lodash.unary/index.d.ts index 5ac7d426f5..02cbd46979 100644 --- a/types/lodash.unary/index.d.ts +++ b/types/lodash.unary/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unary } from "lodash"; export = unary; diff --git a/types/lodash.unary/tsconfig.json b/types/lodash.unary/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unary/tsconfig.json +++ b/types/lodash.unary/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unescape/index.d.ts b/types/lodash.unescape/index.d.ts index d5683ae385..49bcfd4021 100644 --- a/types/lodash.unescape/index.d.ts +++ b/types/lodash.unescape/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unescape } from "lodash"; export = unescape; diff --git a/types/lodash.unescape/tsconfig.json b/types/lodash.unescape/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unescape/tsconfig.json +++ b/types/lodash.unescape/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.union/index.d.ts b/types/lodash.union/index.d.ts index 7dc962d33a..022fc39c87 100644 --- a/types/lodash.union/index.d.ts +++ b/types/lodash.union/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { union } from "lodash"; export = union; diff --git a/types/lodash.union/tsconfig.json b/types/lodash.union/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.union/tsconfig.json +++ b/types/lodash.union/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unionby/index.d.ts b/types/lodash.unionby/index.d.ts index 8424262d26..7ae2cc8b21 100644 --- a/types/lodash.unionby/index.d.ts +++ b/types/lodash.unionby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unionBy } from "lodash"; export = unionBy; diff --git a/types/lodash.unionby/tsconfig.json b/types/lodash.unionby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unionby/tsconfig.json +++ b/types/lodash.unionby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unionwith/index.d.ts b/types/lodash.unionwith/index.d.ts index 7d3bd0eef3..98f097fe34 100644 --- a/types/lodash.unionwith/index.d.ts +++ b/types/lodash.unionwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unionWith } from "lodash"; export = unionWith; diff --git a/types/lodash.unionwith/tsconfig.json b/types/lodash.unionwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unionwith/tsconfig.json +++ b/types/lodash.unionwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.uniq/index.d.ts b/types/lodash.uniq/index.d.ts index f7d141b50f..5c112f9725 100644 --- a/types/lodash.uniq/index.d.ts +++ b/types/lodash.uniq/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { uniq } from "lodash"; export = uniq; diff --git a/types/lodash.uniq/tsconfig.json b/types/lodash.uniq/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.uniq/tsconfig.json +++ b/types/lodash.uniq/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.uniqby/index.d.ts b/types/lodash.uniqby/index.d.ts index e8f37c0b28..0e70630932 100644 --- a/types/lodash.uniqby/index.d.ts +++ b/types/lodash.uniqby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { uniqBy } from "lodash"; export = uniqBy; diff --git a/types/lodash.uniqby/tsconfig.json b/types/lodash.uniqby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.uniqby/tsconfig.json +++ b/types/lodash.uniqby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.uniqueid/index.d.ts b/types/lodash.uniqueid/index.d.ts index c680cefb8c..c701f01e8c 100644 --- a/types/lodash.uniqueid/index.d.ts +++ b/types/lodash.uniqueid/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { uniqueId } from "lodash"; export = uniqueId; diff --git a/types/lodash.uniqueid/tsconfig.json b/types/lodash.uniqueid/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.uniqueid/tsconfig.json +++ b/types/lodash.uniqueid/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.uniqwith/index.d.ts b/types/lodash.uniqwith/index.d.ts index 5185b8ac49..f2fa72f46d 100644 --- a/types/lodash.uniqwith/index.d.ts +++ b/types/lodash.uniqwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { uniqWith } from "lodash"; export = uniqWith; diff --git a/types/lodash.uniqwith/tsconfig.json b/types/lodash.uniqwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.uniqwith/tsconfig.json +++ b/types/lodash.uniqwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unset/index.d.ts b/types/lodash.unset/index.d.ts index 38d5d16146..f5db38b23e 100644 --- a/types/lodash.unset/index.d.ts +++ b/types/lodash.unset/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unset } from "lodash"; export = unset; diff --git a/types/lodash.unset/tsconfig.json b/types/lodash.unset/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unset/tsconfig.json +++ b/types/lodash.unset/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unzip/index.d.ts b/types/lodash.unzip/index.d.ts index edf6c5371c..9ec1528f8e 100644 --- a/types/lodash.unzip/index.d.ts +++ b/types/lodash.unzip/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unzip } from "lodash"; export = unzip; diff --git a/types/lodash.unzip/tsconfig.json b/types/lodash.unzip/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unzip/tsconfig.json +++ b/types/lodash.unzip/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.unzipwith/index.d.ts b/types/lodash.unzipwith/index.d.ts index d82a024763..a7908aadf3 100644 --- a/types/lodash.unzipwith/index.d.ts +++ b/types/lodash.unzipwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { unzipWith } from "lodash"; export = unzipWith; diff --git a/types/lodash.unzipwith/tsconfig.json b/types/lodash.unzipwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.unzipwith/tsconfig.json +++ b/types/lodash.unzipwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.update/index.d.ts b/types/lodash.update/index.d.ts index b73f25e39a..dcefdc0bad 100644 --- a/types/lodash.update/index.d.ts +++ b/types/lodash.update/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { update } from "lodash"; export = update; diff --git a/types/lodash.update/tsconfig.json b/types/lodash.update/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.update/tsconfig.json +++ b/types/lodash.update/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.uppercase/index.d.ts b/types/lodash.uppercase/index.d.ts index d47e8b84e9..ab82b68f76 100644 --- a/types/lodash.uppercase/index.d.ts +++ b/types/lodash.uppercase/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { upperCase } from "lodash"; export = upperCase; diff --git a/types/lodash.uppercase/tsconfig.json b/types/lodash.uppercase/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.uppercase/tsconfig.json +++ b/types/lodash.uppercase/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.upperfirst/index.d.ts b/types/lodash.upperfirst/index.d.ts index 2a2087af70..fd287a12f2 100644 --- a/types/lodash.upperfirst/index.d.ts +++ b/types/lodash.upperfirst/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { upperFirst } from "lodash"; export = upperFirst; diff --git a/types/lodash.upperfirst/tsconfig.json b/types/lodash.upperfirst/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.upperfirst/tsconfig.json +++ b/types/lodash.upperfirst/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.values/index.d.ts b/types/lodash.values/index.d.ts index 9d664a80a8..d74cd1acec 100644 --- a/types/lodash.values/index.d.ts +++ b/types/lodash.values/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { values } from "lodash"; export = values; diff --git a/types/lodash.values/tsconfig.json b/types/lodash.values/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.values/tsconfig.json +++ b/types/lodash.values/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.valuesin/index.d.ts b/types/lodash.valuesin/index.d.ts index f75cdc6c33..6b550a46b2 100644 --- a/types/lodash.valuesin/index.d.ts +++ b/types/lodash.valuesin/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { valuesIn } from "lodash"; export = valuesIn; diff --git a/types/lodash.valuesin/tsconfig.json b/types/lodash.valuesin/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.valuesin/tsconfig.json +++ b/types/lodash.valuesin/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.without/index.d.ts b/types/lodash.without/index.d.ts index 41e29a145d..0a38a9092f 100644 --- a/types/lodash.without/index.d.ts +++ b/types/lodash.without/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { without } from "lodash"; export = without; diff --git a/types/lodash.without/tsconfig.json b/types/lodash.without/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.without/tsconfig.json +++ b/types/lodash.without/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.words/index.d.ts b/types/lodash.words/index.d.ts index da544c1b9a..684a0201f3 100644 --- a/types/lodash.words/index.d.ts +++ b/types/lodash.words/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { words } from "lodash"; export = words; diff --git a/types/lodash.words/tsconfig.json b/types/lodash.words/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.words/tsconfig.json +++ b/types/lodash.words/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.wrap/index.d.ts b/types/lodash.wrap/index.d.ts index 06f18664ed..3aa609e890 100644 --- a/types/lodash.wrap/index.d.ts +++ b/types/lodash.wrap/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { wrap } from "lodash"; export = wrap; diff --git a/types/lodash.wrap/tsconfig.json b/types/lodash.wrap/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.wrap/tsconfig.json +++ b/types/lodash.wrap/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.xor/index.d.ts b/types/lodash.xor/index.d.ts index 85917a462c..251ea35fa3 100644 --- a/types/lodash.xor/index.d.ts +++ b/types/lodash.xor/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { xor } from "lodash"; export = xor; diff --git a/types/lodash.xor/tsconfig.json b/types/lodash.xor/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.xor/tsconfig.json +++ b/types/lodash.xor/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.xorby/index.d.ts b/types/lodash.xorby/index.d.ts index 0e7d96ea3b..b1e82c927b 100644 --- a/types/lodash.xorby/index.d.ts +++ b/types/lodash.xorby/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { xorBy } from "lodash"; export = xorBy; diff --git a/types/lodash.xorby/tsconfig.json b/types/lodash.xorby/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.xorby/tsconfig.json +++ b/types/lodash.xorby/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.xorwith/index.d.ts b/types/lodash.xorwith/index.d.ts index 3f00b850c3..2dedfcdec6 100644 --- a/types/lodash.xorwith/index.d.ts +++ b/types/lodash.xorwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { xorWith } from "lodash"; export = xorWith; diff --git a/types/lodash.xorwith/tsconfig.json b/types/lodash.xorwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.xorwith/tsconfig.json +++ b/types/lodash.xorwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.zip/index.d.ts b/types/lodash.zip/index.d.ts index e47b2e1ce4..8f63020540 100644 --- a/types/lodash.zip/index.d.ts +++ b/types/lodash.zip/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { zip } from "lodash"; export = zip; diff --git a/types/lodash.zip/tsconfig.json b/types/lodash.zip/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.zip/tsconfig.json +++ b/types/lodash.zip/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.zipobject/index.d.ts b/types/lodash.zipobject/index.d.ts index 9b7d5efce3..4c600d75c3 100644 --- a/types/lodash.zipobject/index.d.ts +++ b/types/lodash.zipobject/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { zipObject } from "lodash"; export = zipObject; diff --git a/types/lodash.zipobject/tsconfig.json b/types/lodash.zipobject/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.zipobject/tsconfig.json +++ b/types/lodash.zipobject/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.zipwith/index.d.ts b/types/lodash.zipwith/index.d.ts index b9ece9a1df..a4c045454e 100644 --- a/types/lodash.zipwith/index.d.ts +++ b/types/lodash.zipwith/index.d.ts @@ -4,5 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { zipWith } from "lodash"; export = zipWith; diff --git a/types/lodash.zipwith/tsconfig.json b/types/lodash.zipwith/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.zipwith/tsconfig.json +++ b/types/lodash.zipwith/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash/add.d.ts b/types/lodash/add.d.ts new file mode 100644 index 0000000000..4650a89c4a --- /dev/null +++ b/types/lodash/add.d.ts @@ -0,0 +1,2 @@ +import { add } from "./index"; +export = add; diff --git a/types/lodash/add/index.d.ts b/types/lodash/add/index.d.ts deleted file mode 100644 index bfe1d46805..0000000000 --- a/types/lodash/add/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { add } from "../index"; -export = add; diff --git a/types/lodash/after.d.ts b/types/lodash/after.d.ts new file mode 100644 index 0000000000..277ae1ea53 --- /dev/null +++ b/types/lodash/after.d.ts @@ -0,0 +1,2 @@ +import { after } from "./index"; +export = after; diff --git a/types/lodash/after/index.d.ts b/types/lodash/after/index.d.ts deleted file mode 100644 index eea017f6fd..0000000000 --- a/types/lodash/after/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { after } from "../index"; -export = after; diff --git a/types/lodash/ary.d.ts b/types/lodash/ary.d.ts new file mode 100644 index 0000000000..ac1c72e95d --- /dev/null +++ b/types/lodash/ary.d.ts @@ -0,0 +1,2 @@ +import { ary } from "./index"; +export = ary; diff --git a/types/lodash/ary/index.d.ts b/types/lodash/ary/index.d.ts deleted file mode 100644 index 2b86cf6d4e..0000000000 --- a/types/lodash/ary/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ary } from "../index"; -export = ary; diff --git a/types/lodash/assign.d.ts b/types/lodash/assign.d.ts new file mode 100644 index 0000000000..5ffc1e34d7 --- /dev/null +++ b/types/lodash/assign.d.ts @@ -0,0 +1,2 @@ +import { assign } from "./index"; +export = assign; diff --git a/types/lodash/assign/index.d.ts b/types/lodash/assign/index.d.ts deleted file mode 100644 index b38bbc5bb6..0000000000 --- a/types/lodash/assign/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { assign } from "../index"; -export = assign; diff --git a/types/lodash/assignIn.d.ts b/types/lodash/assignIn.d.ts new file mode 100644 index 0000000000..3cc54e8178 --- /dev/null +++ b/types/lodash/assignIn.d.ts @@ -0,0 +1,2 @@ +import { assignIn } from "./index"; +export = assignIn; diff --git a/types/lodash/assignIn/index.d.ts b/types/lodash/assignIn/index.d.ts deleted file mode 100644 index 2f182e7e90..0000000000 --- a/types/lodash/assignIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { assignIn } from "../index"; -export = assignIn; diff --git a/types/lodash/assignInWith.d.ts b/types/lodash/assignInWith.d.ts new file mode 100644 index 0000000000..b4c4dfef2b --- /dev/null +++ b/types/lodash/assignInWith.d.ts @@ -0,0 +1,2 @@ +import { assignInWith } from "./index"; +export = assignInWith; diff --git a/types/lodash/assignInWith/index.d.ts b/types/lodash/assignInWith/index.d.ts deleted file mode 100644 index 5b092fa13c..0000000000 --- a/types/lodash/assignInWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { assignInWith } from "../index"; -export = assignInWith; diff --git a/types/lodash/assignWith.d.ts b/types/lodash/assignWith.d.ts new file mode 100644 index 0000000000..97da10ceb0 --- /dev/null +++ b/types/lodash/assignWith.d.ts @@ -0,0 +1,2 @@ +import { assignWith } from "./index"; +export = assignWith; diff --git a/types/lodash/assignWith/index.d.ts b/types/lodash/assignWith/index.d.ts deleted file mode 100644 index 9424c4e75a..0000000000 --- a/types/lodash/assignWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { assignWith } from "../index"; -export = assignWith; diff --git a/types/lodash/at.d.ts b/types/lodash/at.d.ts new file mode 100644 index 0000000000..49e7147780 --- /dev/null +++ b/types/lodash/at.d.ts @@ -0,0 +1,2 @@ +import { at } from "./index"; +export = at; diff --git a/types/lodash/at/index.d.ts b/types/lodash/at/index.d.ts deleted file mode 100644 index fc009ef6c8..0000000000 --- a/types/lodash/at/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { at } from "../index"; -export = at; diff --git a/types/lodash/attempt.d.ts b/types/lodash/attempt.d.ts new file mode 100644 index 0000000000..d4b608900e --- /dev/null +++ b/types/lodash/attempt.d.ts @@ -0,0 +1,2 @@ +import { attempt } from "./index"; +export = attempt; diff --git a/types/lodash/attempt/index.d.ts b/types/lodash/attempt/index.d.ts deleted file mode 100644 index 991d4605cf..0000000000 --- a/types/lodash/attempt/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { attempt } from "../index"; -export = attempt; diff --git a/types/lodash/before.d.ts b/types/lodash/before.d.ts new file mode 100644 index 0000000000..03c45c8038 --- /dev/null +++ b/types/lodash/before.d.ts @@ -0,0 +1,2 @@ +import { before } from "./index"; +export = before; diff --git a/types/lodash/before/index.d.ts b/types/lodash/before/index.d.ts deleted file mode 100644 index c9ccdbbb41..0000000000 --- a/types/lodash/before/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { before } from "../index"; -export = before; diff --git a/types/lodash/bind.d.ts b/types/lodash/bind.d.ts new file mode 100644 index 0000000000..6367da1e1c --- /dev/null +++ b/types/lodash/bind.d.ts @@ -0,0 +1,2 @@ +import { bind } from "./index"; +export = bind; diff --git a/types/lodash/bind/index.d.ts b/types/lodash/bind/index.d.ts deleted file mode 100644 index bfae1efa26..0000000000 --- a/types/lodash/bind/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { bind } from "../index"; -export = bind; diff --git a/types/lodash/bindAll.d.ts b/types/lodash/bindAll.d.ts new file mode 100644 index 0000000000..25d47e3972 --- /dev/null +++ b/types/lodash/bindAll.d.ts @@ -0,0 +1,2 @@ +import { bindAll } from "./index"; +export = bindAll; diff --git a/types/lodash/bindAll/index.d.ts b/types/lodash/bindAll/index.d.ts deleted file mode 100644 index 90b7f67bcc..0000000000 --- a/types/lodash/bindAll/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { bindAll } from "../index"; -export = bindAll; diff --git a/types/lodash/bindKey.d.ts b/types/lodash/bindKey.d.ts new file mode 100644 index 0000000000..128b065f3d --- /dev/null +++ b/types/lodash/bindKey.d.ts @@ -0,0 +1,2 @@ +import { bindKey } from "./index"; +export = bindKey; diff --git a/types/lodash/bindKey/index.d.ts b/types/lodash/bindKey/index.d.ts deleted file mode 100644 index 711b02f0e1..0000000000 --- a/types/lodash/bindKey/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { bindKey } from "../index"; -export = bindKey; diff --git a/types/lodash/camelCase.d.ts b/types/lodash/camelCase.d.ts new file mode 100644 index 0000000000..5c10659d92 --- /dev/null +++ b/types/lodash/camelCase.d.ts @@ -0,0 +1,2 @@ +import { camelCase } from "./index"; +export = camelCase; diff --git a/types/lodash/camelCase/index.d.ts b/types/lodash/camelCase/index.d.ts deleted file mode 100644 index 99cc4f8b36..0000000000 --- a/types/lodash/camelCase/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { camelCase } from "../index"; -export = camelCase; diff --git a/types/lodash/capitalize.d.ts b/types/lodash/capitalize.d.ts new file mode 100644 index 0000000000..416f5f598a --- /dev/null +++ b/types/lodash/capitalize.d.ts @@ -0,0 +1,2 @@ +import { capitalize } from "./index"; +export = capitalize; diff --git a/types/lodash/capitalize/index.d.ts b/types/lodash/capitalize/index.d.ts deleted file mode 100644 index 035d00ce94..0000000000 --- a/types/lodash/capitalize/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { capitalize } from "../index"; -export = capitalize; diff --git a/types/lodash/castArray.d.ts b/types/lodash/castArray.d.ts new file mode 100644 index 0000000000..74ea7bd235 --- /dev/null +++ b/types/lodash/castArray.d.ts @@ -0,0 +1,2 @@ +import { castArray } from "./index"; +export = castArray; diff --git a/types/lodash/castArray/index.d.ts b/types/lodash/castArray/index.d.ts deleted file mode 100644 index f278e73a40..0000000000 --- a/types/lodash/castArray/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { castArray } from "../index"; -export = castArray; diff --git a/types/lodash/ceil.d.ts b/types/lodash/ceil.d.ts new file mode 100644 index 0000000000..0c6f1fd1ca --- /dev/null +++ b/types/lodash/ceil.d.ts @@ -0,0 +1,2 @@ +import { ceil } from "./index"; +export = ceil; diff --git a/types/lodash/ceil/index.d.ts b/types/lodash/ceil/index.d.ts deleted file mode 100644 index 732861a411..0000000000 --- a/types/lodash/ceil/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ceil } from "../index"; -export = ceil; diff --git a/types/lodash/chain.d.ts b/types/lodash/chain.d.ts new file mode 100644 index 0000000000..d09d2bb08f --- /dev/null +++ b/types/lodash/chain.d.ts @@ -0,0 +1,2 @@ +import { chain } from "./index"; +export = chain; diff --git a/types/lodash/chain/index.d.ts b/types/lodash/chain/index.d.ts deleted file mode 100644 index 2be62c817e..0000000000 --- a/types/lodash/chain/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { chain } from "../index"; -export = chain; diff --git a/types/lodash/chunk.d.ts b/types/lodash/chunk.d.ts new file mode 100644 index 0000000000..125c98f738 --- /dev/null +++ b/types/lodash/chunk.d.ts @@ -0,0 +1,2 @@ +import { chunk } from "./index"; +export = chunk; diff --git a/types/lodash/chunk/index.d.ts b/types/lodash/chunk/index.d.ts deleted file mode 100644 index 27254c0cce..0000000000 --- a/types/lodash/chunk/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { chunk } from "../index"; -export = chunk; diff --git a/types/lodash/clamp.d.ts b/types/lodash/clamp.d.ts new file mode 100644 index 0000000000..df1706691a --- /dev/null +++ b/types/lodash/clamp.d.ts @@ -0,0 +1,2 @@ +import { clamp } from "./index"; +export = clamp; diff --git a/types/lodash/clamp/index.d.ts b/types/lodash/clamp/index.d.ts deleted file mode 100644 index a14ebc3edd..0000000000 --- a/types/lodash/clamp/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { clamp } from "../index"; -export = clamp; diff --git a/types/lodash/clone.d.ts b/types/lodash/clone.d.ts new file mode 100644 index 0000000000..c5884d700e --- /dev/null +++ b/types/lodash/clone.d.ts @@ -0,0 +1,2 @@ +import { clone } from "./index"; +export = clone; diff --git a/types/lodash/clone/index.d.ts b/types/lodash/clone/index.d.ts deleted file mode 100644 index 7ec6d46f62..0000000000 --- a/types/lodash/clone/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { clone } from "../index"; -export = clone; diff --git a/types/lodash/cloneDeep.d.ts b/types/lodash/cloneDeep.d.ts new file mode 100644 index 0000000000..b7bd89327e --- /dev/null +++ b/types/lodash/cloneDeep.d.ts @@ -0,0 +1,2 @@ +import { cloneDeep } from "./index"; +export = cloneDeep; diff --git a/types/lodash/cloneDeep/index.d.ts b/types/lodash/cloneDeep/index.d.ts deleted file mode 100644 index 7ec0d7cc22..0000000000 --- a/types/lodash/cloneDeep/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { cloneDeep } from "../index"; -export = cloneDeep; diff --git a/types/lodash/cloneDeepWith.d.ts b/types/lodash/cloneDeepWith.d.ts new file mode 100644 index 0000000000..3eb368ba77 --- /dev/null +++ b/types/lodash/cloneDeepWith.d.ts @@ -0,0 +1,2 @@ +import { cloneDeepWith } from "./index"; +export = cloneDeepWith; diff --git a/types/lodash/cloneDeepWith/index.d.ts b/types/lodash/cloneDeepWith/index.d.ts deleted file mode 100644 index 387559395b..0000000000 --- a/types/lodash/cloneDeepWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { cloneDeepWith } from "../index"; -export = cloneDeepWith; diff --git a/types/lodash/cloneWith.d.ts b/types/lodash/cloneWith.d.ts new file mode 100644 index 0000000000..1e6bf7a808 --- /dev/null +++ b/types/lodash/cloneWith.d.ts @@ -0,0 +1,2 @@ +import { cloneWith } from "./index"; +export = cloneWith; diff --git a/types/lodash/cloneWith/index.d.ts b/types/lodash/cloneWith/index.d.ts deleted file mode 100644 index 070f583fc7..0000000000 --- a/types/lodash/cloneWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { cloneWith } from "../index"; -export = cloneWith; diff --git a/types/lodash/compact.d.ts b/types/lodash/compact.d.ts new file mode 100644 index 0000000000..94a539778d --- /dev/null +++ b/types/lodash/compact.d.ts @@ -0,0 +1,2 @@ +import { compact } from "./index"; +export = compact; diff --git a/types/lodash/compact/index.d.ts b/types/lodash/compact/index.d.ts deleted file mode 100644 index e1617e88da..0000000000 --- a/types/lodash/compact/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { compact } from "../index"; -export = compact; diff --git a/types/lodash/concat.d.ts b/types/lodash/concat.d.ts new file mode 100644 index 0000000000..f8c26122c7 --- /dev/null +++ b/types/lodash/concat.d.ts @@ -0,0 +1,2 @@ +import { concat } from "./index"; +export = concat; diff --git a/types/lodash/concat/index.d.ts b/types/lodash/concat/index.d.ts deleted file mode 100644 index 309b54cc8f..0000000000 --- a/types/lodash/concat/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { concat } from "../index"; -export = concat; diff --git a/types/lodash/constant.d.ts b/types/lodash/constant.d.ts new file mode 100644 index 0000000000..ebab572c1d --- /dev/null +++ b/types/lodash/constant.d.ts @@ -0,0 +1,2 @@ +import { constant } from "./index"; +export = constant; diff --git a/types/lodash/constant/index.d.ts b/types/lodash/constant/index.d.ts deleted file mode 100644 index e812062c91..0000000000 --- a/types/lodash/constant/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { constant } from "../index"; -export = constant; diff --git a/types/lodash/countBy.d.ts b/types/lodash/countBy.d.ts new file mode 100644 index 0000000000..db56ff3c11 --- /dev/null +++ b/types/lodash/countBy.d.ts @@ -0,0 +1,2 @@ +import { countBy } from "./index"; +export = countBy; diff --git a/types/lodash/countBy/index.d.ts b/types/lodash/countBy/index.d.ts deleted file mode 100644 index d44affd3b1..0000000000 --- a/types/lodash/countBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { countBy } from "../index"; -export = countBy; diff --git a/types/lodash/create.d.ts b/types/lodash/create.d.ts new file mode 100644 index 0000000000..5c7dc7a21c --- /dev/null +++ b/types/lodash/create.d.ts @@ -0,0 +1,2 @@ +import { create } from "./index"; +export = create; diff --git a/types/lodash/create/index.d.ts b/types/lodash/create/index.d.ts deleted file mode 100644 index 54cec6e4cb..0000000000 --- a/types/lodash/create/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { create } from "../index"; -export = create; diff --git a/types/lodash/curry.d.ts b/types/lodash/curry.d.ts new file mode 100644 index 0000000000..afbb8f47dc --- /dev/null +++ b/types/lodash/curry.d.ts @@ -0,0 +1,2 @@ +import { curry } from "./index"; +export = curry; diff --git a/types/lodash/curry/index.d.ts b/types/lodash/curry/index.d.ts deleted file mode 100644 index a6ab8c799c..0000000000 --- a/types/lodash/curry/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { curry } from "../index"; -export = curry; diff --git a/types/lodash/curryRight.d.ts b/types/lodash/curryRight.d.ts new file mode 100644 index 0000000000..7d224c9722 --- /dev/null +++ b/types/lodash/curryRight.d.ts @@ -0,0 +1,2 @@ +import { curryRight } from "./index"; +export = curryRight; diff --git a/types/lodash/curryRight/index.d.ts b/types/lodash/curryRight/index.d.ts deleted file mode 100644 index c179a26dbd..0000000000 --- a/types/lodash/curryRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { curryRight } from "../index"; -export = curryRight; diff --git a/types/lodash/debounce.d.ts b/types/lodash/debounce.d.ts new file mode 100644 index 0000000000..983edd74c7 --- /dev/null +++ b/types/lodash/debounce.d.ts @@ -0,0 +1,2 @@ +import { debounce } from "./index"; +export = debounce; diff --git a/types/lodash/debounce/index.d.ts b/types/lodash/debounce/index.d.ts deleted file mode 100644 index 98fc36743a..0000000000 --- a/types/lodash/debounce/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { debounce } from "../index"; -export = debounce; diff --git a/types/lodash/deburr.d.ts b/types/lodash/deburr.d.ts new file mode 100644 index 0000000000..cf1fa376f3 --- /dev/null +++ b/types/lodash/deburr.d.ts @@ -0,0 +1,2 @@ +import { deburr } from "./index"; +export = deburr; diff --git a/types/lodash/deburr/index.d.ts b/types/lodash/deburr/index.d.ts deleted file mode 100644 index 4b5fdbf028..0000000000 --- a/types/lodash/deburr/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { deburr } from "../index"; -export = deburr; diff --git a/types/lodash/defaults.d.ts b/types/lodash/defaults.d.ts new file mode 100644 index 0000000000..e83508d126 --- /dev/null +++ b/types/lodash/defaults.d.ts @@ -0,0 +1,2 @@ +import { defaults } from "./index"; +export = defaults; diff --git a/types/lodash/defaults/index.d.ts b/types/lodash/defaults/index.d.ts deleted file mode 100644 index c80d5d318d..0000000000 --- a/types/lodash/defaults/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { defaults } from "../index"; -export = defaults; diff --git a/types/lodash/defaultsDeep.d.ts b/types/lodash/defaultsDeep.d.ts new file mode 100644 index 0000000000..19ff551296 --- /dev/null +++ b/types/lodash/defaultsDeep.d.ts @@ -0,0 +1,2 @@ +import { defaultsDeep } from "./index"; +export = defaultsDeep; diff --git a/types/lodash/defaultsDeep/index.d.ts b/types/lodash/defaultsDeep/index.d.ts deleted file mode 100644 index 5ee0aa1854..0000000000 --- a/types/lodash/defaultsDeep/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { defaultsDeep } from "../index"; -export = defaultsDeep; diff --git a/types/lodash/defer.d.ts b/types/lodash/defer.d.ts new file mode 100644 index 0000000000..144bf5b014 --- /dev/null +++ b/types/lodash/defer.d.ts @@ -0,0 +1,2 @@ +import { defer } from "./index"; +export = defer; diff --git a/types/lodash/defer/index.d.ts b/types/lodash/defer/index.d.ts deleted file mode 100644 index 4e0bffe6d0..0000000000 --- a/types/lodash/defer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { defer } from "../index"; -export = defer; diff --git a/types/lodash/delay.d.ts b/types/lodash/delay.d.ts new file mode 100644 index 0000000000..ead89c1007 --- /dev/null +++ b/types/lodash/delay.d.ts @@ -0,0 +1,2 @@ +import { delay } from "./index"; +export = delay; diff --git a/types/lodash/delay/index.d.ts b/types/lodash/delay/index.d.ts deleted file mode 100644 index 1aecd0124c..0000000000 --- a/types/lodash/delay/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { delay } from "../index"; -export = delay; diff --git a/types/lodash/difference.d.ts b/types/lodash/difference.d.ts new file mode 100644 index 0000000000..4a73c56599 --- /dev/null +++ b/types/lodash/difference.d.ts @@ -0,0 +1,2 @@ +import { difference } from "./index"; +export = difference; diff --git a/types/lodash/difference/index.d.ts b/types/lodash/difference/index.d.ts deleted file mode 100644 index f188c1695c..0000000000 --- a/types/lodash/difference/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { difference } from "../index"; -export = difference; diff --git a/types/lodash/differenceBy.d.ts b/types/lodash/differenceBy.d.ts new file mode 100644 index 0000000000..34558c4ef3 --- /dev/null +++ b/types/lodash/differenceBy.d.ts @@ -0,0 +1,2 @@ +import { differenceBy } from "./index"; +export = differenceBy; diff --git a/types/lodash/differenceBy/index.d.ts b/types/lodash/differenceBy/index.d.ts deleted file mode 100644 index fc4fbb97cd..0000000000 --- a/types/lodash/differenceBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { differenceBy } from "../index"; -export = differenceBy; diff --git a/types/lodash/differenceWith.d.ts b/types/lodash/differenceWith.d.ts new file mode 100644 index 0000000000..86aebd889e --- /dev/null +++ b/types/lodash/differenceWith.d.ts @@ -0,0 +1,2 @@ +import { differenceWith } from "./index"; +export = differenceWith; diff --git a/types/lodash/differenceWith/index.d.ts b/types/lodash/differenceWith/index.d.ts deleted file mode 100644 index c13a1a5356..0000000000 --- a/types/lodash/differenceWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { differenceWith } from "../index"; -export = differenceWith; diff --git a/types/lodash/divide/index.d.ts b/types/lodash/divide/index.d.ts deleted file mode 100644 index 2df6f40e3a..0000000000 --- a/types/lodash/divide/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { divide } from "../index"; -export = divide; diff --git a/types/lodash/drop.d.ts b/types/lodash/drop.d.ts new file mode 100644 index 0000000000..1283f99a58 --- /dev/null +++ b/types/lodash/drop.d.ts @@ -0,0 +1,2 @@ +import { drop } from "./index"; +export = drop; diff --git a/types/lodash/drop/index.d.ts b/types/lodash/drop/index.d.ts deleted file mode 100644 index a20de1c85e..0000000000 --- a/types/lodash/drop/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { drop } from "../index"; -export = drop; diff --git a/types/lodash/dropRight.d.ts b/types/lodash/dropRight.d.ts new file mode 100644 index 0000000000..4133c9850b --- /dev/null +++ b/types/lodash/dropRight.d.ts @@ -0,0 +1,2 @@ +import { dropRight } from "./index"; +export = dropRight; diff --git a/types/lodash/dropRight/index.d.ts b/types/lodash/dropRight/index.d.ts deleted file mode 100644 index eddbac88af..0000000000 --- a/types/lodash/dropRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { dropRight } from "../index"; -export = dropRight; diff --git a/types/lodash/dropRightWhile.d.ts b/types/lodash/dropRightWhile.d.ts new file mode 100644 index 0000000000..0dda808d49 --- /dev/null +++ b/types/lodash/dropRightWhile.d.ts @@ -0,0 +1,2 @@ +import { dropRightWhile } from "./index"; +export = dropRightWhile; diff --git a/types/lodash/dropRightWhile/index.d.ts b/types/lodash/dropRightWhile/index.d.ts deleted file mode 100644 index e7b0bb4855..0000000000 --- a/types/lodash/dropRightWhile/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { dropRightWhile } from "../index"; -export = dropRightWhile; diff --git a/types/lodash/dropWhile.d.ts b/types/lodash/dropWhile.d.ts new file mode 100644 index 0000000000..894ebaa234 --- /dev/null +++ b/types/lodash/dropWhile.d.ts @@ -0,0 +1,2 @@ +import { dropWhile } from "./index"; +export = dropWhile; diff --git a/types/lodash/dropWhile/index.d.ts b/types/lodash/dropWhile/index.d.ts deleted file mode 100644 index 4ffa087cc5..0000000000 --- a/types/lodash/dropWhile/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { dropWhile } from "../index"; -export = dropWhile; diff --git a/types/lodash/each.d.ts b/types/lodash/each.d.ts new file mode 100644 index 0000000000..608f8a9b92 --- /dev/null +++ b/types/lodash/each.d.ts @@ -0,0 +1,2 @@ +import { each } from "./index"; +export = each; diff --git a/types/lodash/each/index.d.ts b/types/lodash/each/index.d.ts deleted file mode 100644 index 4a6ea0af51..0000000000 --- a/types/lodash/each/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { each } from "../index"; -export = each; diff --git a/types/lodash/eachRight.d.ts b/types/lodash/eachRight.d.ts new file mode 100644 index 0000000000..ae0bb6f878 --- /dev/null +++ b/types/lodash/eachRight.d.ts @@ -0,0 +1,2 @@ +import { eachRight } from "./index"; +export = eachRight; diff --git a/types/lodash/eachRight/index.d.ts b/types/lodash/eachRight/index.d.ts deleted file mode 100644 index 2e04a5c9f8..0000000000 --- a/types/lodash/eachRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { eachRight } from "../index"; -export = eachRight; diff --git a/types/lodash/endsWith.d.ts b/types/lodash/endsWith.d.ts new file mode 100644 index 0000000000..d8475b13a9 --- /dev/null +++ b/types/lodash/endsWith.d.ts @@ -0,0 +1,2 @@ +import { endsWith } from "./index"; +export = endsWith; diff --git a/types/lodash/endsWith/index.d.ts b/types/lodash/endsWith/index.d.ts deleted file mode 100644 index 6fb61e7f4b..0000000000 --- a/types/lodash/endsWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { endsWith } from "../index"; -export = endsWith; diff --git a/types/lodash/eq.d.ts b/types/lodash/eq.d.ts new file mode 100644 index 0000000000..88ec887912 --- /dev/null +++ b/types/lodash/eq.d.ts @@ -0,0 +1,2 @@ +import { eq } from "./index"; +export = eq; diff --git a/types/lodash/eq/index.d.ts b/types/lodash/eq/index.d.ts deleted file mode 100644 index 87d4de60ed..0000000000 --- a/types/lodash/eq/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { eq } from "../index"; -export = eq; diff --git a/types/lodash/escape.d.ts b/types/lodash/escape.d.ts new file mode 100644 index 0000000000..9f628a3baa --- /dev/null +++ b/types/lodash/escape.d.ts @@ -0,0 +1,2 @@ +import { escape } from "./index"; +export = escape; diff --git a/types/lodash/escape/index.d.ts b/types/lodash/escape/index.d.ts deleted file mode 100644 index 3766a06712..0000000000 --- a/types/lodash/escape/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { escape } from "../index"; -export = escape; diff --git a/types/lodash/escapeRegExp.d.ts b/types/lodash/escapeRegExp.d.ts new file mode 100644 index 0000000000..97519c10f3 --- /dev/null +++ b/types/lodash/escapeRegExp.d.ts @@ -0,0 +1,2 @@ +import { escapeRegExp } from "./index"; +export = escapeRegExp; diff --git a/types/lodash/escapeRegExp/index.d.ts b/types/lodash/escapeRegExp/index.d.ts deleted file mode 100644 index 6419043fb3..0000000000 --- a/types/lodash/escapeRegExp/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { escapeRegExp } from "../index"; -export = escapeRegExp; diff --git a/types/lodash/every.d.ts b/types/lodash/every.d.ts new file mode 100644 index 0000000000..d9717d4b11 --- /dev/null +++ b/types/lodash/every.d.ts @@ -0,0 +1,2 @@ +import { every } from "./index"; +export = every; diff --git a/types/lodash/every/index.d.ts b/types/lodash/every/index.d.ts deleted file mode 100644 index a6cc43aa14..0000000000 --- a/types/lodash/every/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { every } from "../index"; -export = every; diff --git a/types/lodash/extend.d.ts b/types/lodash/extend.d.ts new file mode 100644 index 0000000000..1b3107a007 --- /dev/null +++ b/types/lodash/extend.d.ts @@ -0,0 +1,2 @@ +import { extend } from "./index"; +export = extend; diff --git a/types/lodash/extend/index.d.ts b/types/lodash/extend/index.d.ts deleted file mode 100644 index 0f46cd5b85..0000000000 --- a/types/lodash/extend/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { extend } from "../index"; -export = extend; diff --git a/types/lodash/extendWith.d.ts b/types/lodash/extendWith.d.ts new file mode 100644 index 0000000000..99ca5d04ea --- /dev/null +++ b/types/lodash/extendWith.d.ts @@ -0,0 +1,2 @@ +import { extendWith } from "./index"; +export = extendWith; diff --git a/types/lodash/extendWith/index.d.ts b/types/lodash/extendWith/index.d.ts deleted file mode 100644 index 0274ebff23..0000000000 --- a/types/lodash/extendWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { extendWith } from "../index"; -export = extendWith; diff --git a/types/lodash/fb/index.d.ts b/types/lodash/fb/index.d.ts deleted file mode 100644 index df9796d7d7..0000000000 --- a/types/lodash/fb/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import * as _ from "../index"; -export = _; diff --git a/types/lodash/fill.d.ts b/types/lodash/fill.d.ts new file mode 100644 index 0000000000..f595dfcd0b --- /dev/null +++ b/types/lodash/fill.d.ts @@ -0,0 +1,2 @@ +import { fill } from "./index"; +export = fill; diff --git a/types/lodash/fill/index.d.ts b/types/lodash/fill/index.d.ts deleted file mode 100644 index 06dc85a9d9..0000000000 --- a/types/lodash/fill/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { fill } from "../index"; -export = fill; diff --git a/types/lodash/filter.d.ts b/types/lodash/filter.d.ts new file mode 100644 index 0000000000..a4496de6a6 --- /dev/null +++ b/types/lodash/filter.d.ts @@ -0,0 +1,2 @@ +import { filter } from "./index"; +export = filter; diff --git a/types/lodash/filter/index.d.ts b/types/lodash/filter/index.d.ts deleted file mode 100644 index 0b257c4dfc..0000000000 --- a/types/lodash/filter/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { filter } from "../index"; -export = filter; diff --git a/types/lodash/find.d.ts b/types/lodash/find.d.ts new file mode 100644 index 0000000000..e8da4b4f50 --- /dev/null +++ b/types/lodash/find.d.ts @@ -0,0 +1,2 @@ +import { find } from "./index"; +export = find; diff --git a/types/lodash/find/index.d.ts b/types/lodash/find/index.d.ts deleted file mode 100644 index 5dacac0168..0000000000 --- a/types/lodash/find/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { find } from "../index"; -export = find; diff --git a/types/lodash/findIndex.d.ts b/types/lodash/findIndex.d.ts new file mode 100644 index 0000000000..6b724446b7 --- /dev/null +++ b/types/lodash/findIndex.d.ts @@ -0,0 +1,2 @@ +import { findIndex } from "./index"; +export = findIndex; diff --git a/types/lodash/findIndex/index.d.ts b/types/lodash/findIndex/index.d.ts deleted file mode 100644 index 3c973bdfc5..0000000000 --- a/types/lodash/findIndex/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { findIndex } from "../index"; -export = findIndex; diff --git a/types/lodash/findKey.d.ts b/types/lodash/findKey.d.ts new file mode 100644 index 0000000000..90230b4370 --- /dev/null +++ b/types/lodash/findKey.d.ts @@ -0,0 +1,2 @@ +import { findKey } from "./index"; +export = findKey; diff --git a/types/lodash/findKey/index.d.ts b/types/lodash/findKey/index.d.ts deleted file mode 100644 index faca19e1cc..0000000000 --- a/types/lodash/findKey/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { findKey } from "../index"; -export = findKey; diff --git a/types/lodash/findLast.d.ts b/types/lodash/findLast.d.ts new file mode 100644 index 0000000000..c4f24fc17a --- /dev/null +++ b/types/lodash/findLast.d.ts @@ -0,0 +1,2 @@ +import { findLast } from "./index"; +export = findLast; diff --git a/types/lodash/findLast/index.d.ts b/types/lodash/findLast/index.d.ts deleted file mode 100644 index f4f896790c..0000000000 --- a/types/lodash/findLast/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { findLast } from "../index"; -export = findLast; diff --git a/types/lodash/findLastIndex.d.ts b/types/lodash/findLastIndex.d.ts new file mode 100644 index 0000000000..21856e532b --- /dev/null +++ b/types/lodash/findLastIndex.d.ts @@ -0,0 +1,2 @@ +import { findLastIndex } from "./index"; +export = findLastIndex; diff --git a/types/lodash/findLastIndex/index.d.ts b/types/lodash/findLastIndex/index.d.ts deleted file mode 100644 index 122be1450f..0000000000 --- a/types/lodash/findLastIndex/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { findLastIndex } from "../index"; -export = findLastIndex; diff --git a/types/lodash/findLastKey.d.ts b/types/lodash/findLastKey.d.ts new file mode 100644 index 0000000000..ed7ff798d7 --- /dev/null +++ b/types/lodash/findLastKey.d.ts @@ -0,0 +1,2 @@ +import { findLastKey } from "./index"; +export = findLastKey; diff --git a/types/lodash/findLastKey/index.d.ts b/types/lodash/findLastKey/index.d.ts deleted file mode 100644 index 52d9f8adde..0000000000 --- a/types/lodash/findLastKey/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { findLastKey } from "../index"; -export = findLastKey; diff --git a/types/lodash/first.d.ts b/types/lodash/first.d.ts new file mode 100644 index 0000000000..fd1cda7af0 --- /dev/null +++ b/types/lodash/first.d.ts @@ -0,0 +1,2 @@ +import { first } from "./index"; +export = first; diff --git a/types/lodash/first/index.d.ts b/types/lodash/first/index.d.ts deleted file mode 100644 index b743ed962d..0000000000 --- a/types/lodash/first/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { first } from "../index"; -export = first; diff --git a/types/lodash/flatMap.d.ts b/types/lodash/flatMap.d.ts new file mode 100644 index 0000000000..00570530ef --- /dev/null +++ b/types/lodash/flatMap.d.ts @@ -0,0 +1,2 @@ +import { flatMap } from "./index"; +export = flatMap; diff --git a/types/lodash/flatMap/index.d.ts b/types/lodash/flatMap/index.d.ts deleted file mode 100644 index 7ac8502c20..0000000000 --- a/types/lodash/flatMap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flatMap } from "../index"; -export = flatMap; diff --git a/types/lodash/flatten.d.ts b/types/lodash/flatten.d.ts new file mode 100644 index 0000000000..43ac0f444e --- /dev/null +++ b/types/lodash/flatten.d.ts @@ -0,0 +1,2 @@ +import { flatten } from "./index"; +export = flatten; diff --git a/types/lodash/flatten/index.d.ts b/types/lodash/flatten/index.d.ts deleted file mode 100644 index 708c89ad86..0000000000 --- a/types/lodash/flatten/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flatten } from "../index"; -export = flatten; diff --git a/types/lodash/flattenDeep.d.ts b/types/lodash/flattenDeep.d.ts new file mode 100644 index 0000000000..df08bfa55d --- /dev/null +++ b/types/lodash/flattenDeep.d.ts @@ -0,0 +1,2 @@ +import { flattenDeep } from "./index"; +export = flattenDeep; diff --git a/types/lodash/flattenDeep/index.d.ts b/types/lodash/flattenDeep/index.d.ts deleted file mode 100644 index 8bf39277bd..0000000000 --- a/types/lodash/flattenDeep/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flattenDeep } from "../index"; -export = flattenDeep; diff --git a/types/lodash/flattenDepth.d.ts b/types/lodash/flattenDepth.d.ts new file mode 100644 index 0000000000..f6be541f8d --- /dev/null +++ b/types/lodash/flattenDepth.d.ts @@ -0,0 +1,2 @@ +import { flattenDepth } from "./index"; +export = flattenDepth; diff --git a/types/lodash/flattenDepth/index.d.ts b/types/lodash/flattenDepth/index.d.ts deleted file mode 100644 index 38491c47fe..0000000000 --- a/types/lodash/flattenDepth/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flattenDepth } from "../index"; -export = flattenDepth; diff --git a/types/lodash/flip.d.ts b/types/lodash/flip.d.ts new file mode 100644 index 0000000000..48c9924eca --- /dev/null +++ b/types/lodash/flip.d.ts @@ -0,0 +1,2 @@ +import { flip } from "./index"; +export = flip; diff --git a/types/lodash/flip/index.d.ts b/types/lodash/flip/index.d.ts deleted file mode 100644 index e5fd68e0e8..0000000000 --- a/types/lodash/flip/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flip } from "../index"; -export = flip; diff --git a/types/lodash/floor.d.ts b/types/lodash/floor.d.ts new file mode 100644 index 0000000000..a101e5de0f --- /dev/null +++ b/types/lodash/floor.d.ts @@ -0,0 +1,2 @@ +import { floor } from "./index"; +export = floor; diff --git a/types/lodash/floor/index.d.ts b/types/lodash/floor/index.d.ts deleted file mode 100644 index da725ee51d..0000000000 --- a/types/lodash/floor/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { floor } from "../index"; -export = floor; diff --git a/types/lodash/flow.d.ts b/types/lodash/flow.d.ts new file mode 100644 index 0000000000..37af0d4797 --- /dev/null +++ b/types/lodash/flow.d.ts @@ -0,0 +1,2 @@ +import { flow } from "./index"; +export = flow; diff --git a/types/lodash/flow/index.d.ts b/types/lodash/flow/index.d.ts deleted file mode 100644 index 31bd309be5..0000000000 --- a/types/lodash/flow/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flow } from "../index"; -export = flow; diff --git a/types/lodash/flowRight.d.ts b/types/lodash/flowRight.d.ts new file mode 100644 index 0000000000..6c63f3edc1 --- /dev/null +++ b/types/lodash/flowRight.d.ts @@ -0,0 +1,2 @@ +import { flowRight } from "./index"; +export = flowRight; diff --git a/types/lodash/flowRight/index.d.ts b/types/lodash/flowRight/index.d.ts deleted file mode 100644 index 65fe107bde..0000000000 --- a/types/lodash/flowRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { flowRight } from "../index"; -export = flowRight; diff --git a/types/lodash/forEach.d.ts b/types/lodash/forEach.d.ts new file mode 100644 index 0000000000..8416aab76c --- /dev/null +++ b/types/lodash/forEach.d.ts @@ -0,0 +1,2 @@ +import { forEach } from "./index"; +export = forEach; diff --git a/types/lodash/forEach/index.d.ts b/types/lodash/forEach/index.d.ts deleted file mode 100644 index bdcae5ac8a..0000000000 --- a/types/lodash/forEach/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { forEach } from "../index"; -export = forEach; diff --git a/types/lodash/forEachRight.d.ts b/types/lodash/forEachRight.d.ts new file mode 100644 index 0000000000..af65b5c1cf --- /dev/null +++ b/types/lodash/forEachRight.d.ts @@ -0,0 +1,2 @@ +import { forEachRight } from "./index"; +export = forEachRight; diff --git a/types/lodash/forEachRight/index.d.ts b/types/lodash/forEachRight/index.d.ts deleted file mode 100644 index 16bfc91bd8..0000000000 --- a/types/lodash/forEachRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { forEachRight } from "../index"; -export = forEachRight; diff --git a/types/lodash/forIn.d.ts b/types/lodash/forIn.d.ts new file mode 100644 index 0000000000..77d6f4853f --- /dev/null +++ b/types/lodash/forIn.d.ts @@ -0,0 +1,2 @@ +import { forIn } from "./index"; +export = forIn; diff --git a/types/lodash/forIn/index.d.ts b/types/lodash/forIn/index.d.ts deleted file mode 100644 index 176b0bc3c4..0000000000 --- a/types/lodash/forIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { forIn } from "../index"; -export = forIn; diff --git a/types/lodash/forInRight.d.ts b/types/lodash/forInRight.d.ts new file mode 100644 index 0000000000..d732969421 --- /dev/null +++ b/types/lodash/forInRight.d.ts @@ -0,0 +1,2 @@ +import { forInRight } from "./index"; +export = forInRight; diff --git a/types/lodash/forInRight/index.d.ts b/types/lodash/forInRight/index.d.ts deleted file mode 100644 index 791c1ae43a..0000000000 --- a/types/lodash/forInRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { forInRight } from "../index"; -export = forInRight; diff --git a/types/lodash/forOwn.d.ts b/types/lodash/forOwn.d.ts new file mode 100644 index 0000000000..dfa930f278 --- /dev/null +++ b/types/lodash/forOwn.d.ts @@ -0,0 +1,2 @@ +import { forOwn } from "./index"; +export = forOwn; diff --git a/types/lodash/forOwn/index.d.ts b/types/lodash/forOwn/index.d.ts deleted file mode 100644 index 41230e4df0..0000000000 --- a/types/lodash/forOwn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { forOwn } from "../index"; -export = forOwn; diff --git a/types/lodash/forOwnRight.d.ts b/types/lodash/forOwnRight.d.ts new file mode 100644 index 0000000000..fddde6a77e --- /dev/null +++ b/types/lodash/forOwnRight.d.ts @@ -0,0 +1,2 @@ +import { forOwnRight } from "./index"; +export = forOwnRight; diff --git a/types/lodash/forOwnRight/index.d.ts b/types/lodash/forOwnRight/index.d.ts deleted file mode 100644 index cf09aaea78..0000000000 --- a/types/lodash/forOwnRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { forOwnRight } from "../index"; -export = forOwnRight; diff --git a/types/lodash/fromPairs.d.ts b/types/lodash/fromPairs.d.ts new file mode 100644 index 0000000000..1c2006c63d --- /dev/null +++ b/types/lodash/fromPairs.d.ts @@ -0,0 +1,2 @@ +import { fromPairs } from "./index"; +export = fromPairs; diff --git a/types/lodash/fromPairs/index.d.ts b/types/lodash/fromPairs/index.d.ts deleted file mode 100644 index 007dd84c4f..0000000000 --- a/types/lodash/fromPairs/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { fromPairs } from "../index"; -export = fromPairs; diff --git a/types/lodash/functions.d.ts b/types/lodash/functions.d.ts new file mode 100644 index 0000000000..86983361a4 --- /dev/null +++ b/types/lodash/functions.d.ts @@ -0,0 +1,2 @@ +import { functions } from "./index"; +export = functions; diff --git a/types/lodash/functions/index.d.ts b/types/lodash/functions/index.d.ts deleted file mode 100644 index ecb9881d1f..0000000000 --- a/types/lodash/functions/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { functions } from "../index"; -export = functions; diff --git a/types/lodash/functionsIn.d.ts b/types/lodash/functionsIn.d.ts new file mode 100644 index 0000000000..9f72a78382 --- /dev/null +++ b/types/lodash/functionsIn.d.ts @@ -0,0 +1,2 @@ +import { functionsIn } from "./index"; +export = functionsIn; diff --git a/types/lodash/functionsIn/index.d.ts b/types/lodash/functionsIn/index.d.ts deleted file mode 100644 index e3d733ae40..0000000000 --- a/types/lodash/functionsIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { functionsIn } from "../index"; -export = functionsIn; diff --git a/types/lodash/get.d.ts b/types/lodash/get.d.ts new file mode 100644 index 0000000000..5ea7a5a41c --- /dev/null +++ b/types/lodash/get.d.ts @@ -0,0 +1,2 @@ +import { get } from "./index"; +export = get; diff --git a/types/lodash/get/index.d.ts b/types/lodash/get/index.d.ts deleted file mode 100644 index d38d6753aa..0000000000 --- a/types/lodash/get/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { get } from "../index"; -export = get; diff --git a/types/lodash/groupBy.d.ts b/types/lodash/groupBy.d.ts new file mode 100644 index 0000000000..ef49718e57 --- /dev/null +++ b/types/lodash/groupBy.d.ts @@ -0,0 +1,2 @@ +import { groupBy } from "./index"; +export = groupBy; diff --git a/types/lodash/groupBy/index.d.ts b/types/lodash/groupBy/index.d.ts deleted file mode 100644 index 2d09926b8f..0000000000 --- a/types/lodash/groupBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { groupBy } from "../index"; -export = groupBy; diff --git a/types/lodash/gt.d.ts b/types/lodash/gt.d.ts new file mode 100644 index 0000000000..860134fbea --- /dev/null +++ b/types/lodash/gt.d.ts @@ -0,0 +1,2 @@ +import { gt } from "./index"; +export = gt; diff --git a/types/lodash/gt/index.d.ts b/types/lodash/gt/index.d.ts deleted file mode 100644 index 842d6c11f2..0000000000 --- a/types/lodash/gt/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { gt } from "../index"; -export = gt; diff --git a/types/lodash/gte.d.ts b/types/lodash/gte.d.ts new file mode 100644 index 0000000000..994e882646 --- /dev/null +++ b/types/lodash/gte.d.ts @@ -0,0 +1,2 @@ +import { gte } from "./index"; +export = gte; diff --git a/types/lodash/gte/index.d.ts b/types/lodash/gte/index.d.ts deleted file mode 100644 index ffdf651d58..0000000000 --- a/types/lodash/gte/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { gte } from "../index"; -export = gte; diff --git a/types/lodash/has.d.ts b/types/lodash/has.d.ts new file mode 100644 index 0000000000..fff1468693 --- /dev/null +++ b/types/lodash/has.d.ts @@ -0,0 +1,2 @@ +import { has } from "./index"; +export = has; diff --git a/types/lodash/has/index.d.ts b/types/lodash/has/index.d.ts deleted file mode 100644 index 56a5f39b91..0000000000 --- a/types/lodash/has/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { has } from "../index"; -export = has; diff --git a/types/lodash/hasIn.d.ts b/types/lodash/hasIn.d.ts new file mode 100644 index 0000000000..a898071b16 --- /dev/null +++ b/types/lodash/hasIn.d.ts @@ -0,0 +1,2 @@ +import { hasIn } from "./index"; +export = hasIn; diff --git a/types/lodash/hasIn/index.d.ts b/types/lodash/hasIn/index.d.ts deleted file mode 100644 index bcacce21c1..0000000000 --- a/types/lodash/hasIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { hasIn } from "../index"; -export = hasIn; diff --git a/types/lodash/head.d.ts b/types/lodash/head.d.ts new file mode 100644 index 0000000000..0e16da1711 --- /dev/null +++ b/types/lodash/head.d.ts @@ -0,0 +1,2 @@ +import { head } from "./index"; +export = head; diff --git a/types/lodash/head/index.d.ts b/types/lodash/head/index.d.ts deleted file mode 100644 index 686e6372a8..0000000000 --- a/types/lodash/head/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { head } from "../index"; -export = head; diff --git a/types/lodash/identity.d.ts b/types/lodash/identity.d.ts new file mode 100644 index 0000000000..6814a16538 --- /dev/null +++ b/types/lodash/identity.d.ts @@ -0,0 +1,2 @@ +import { identity } from "./index"; +export = identity; diff --git a/types/lodash/identity/index.d.ts b/types/lodash/identity/index.d.ts deleted file mode 100644 index 92a3e32afb..0000000000 --- a/types/lodash/identity/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { identity } from "../index"; -export = identity; diff --git a/types/lodash/inRange.d.ts b/types/lodash/inRange.d.ts new file mode 100644 index 0000000000..d9c57c0e8f --- /dev/null +++ b/types/lodash/inRange.d.ts @@ -0,0 +1,2 @@ +import { inRange } from "./index"; +export = inRange; diff --git a/types/lodash/inRange/index.d.ts b/types/lodash/inRange/index.d.ts deleted file mode 100644 index 873efdaef4..0000000000 --- a/types/lodash/inRange/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { inRange } from "../index"; -export = inRange; diff --git a/types/lodash/includes.d.ts b/types/lodash/includes.d.ts new file mode 100644 index 0000000000..4edd22619f --- /dev/null +++ b/types/lodash/includes.d.ts @@ -0,0 +1,2 @@ +import { includes } from "./index"; +export = includes; diff --git a/types/lodash/includes/index.d.ts b/types/lodash/includes/index.d.ts deleted file mode 100644 index c78736dc58..0000000000 --- a/types/lodash/includes/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { includes } from "../index"; -export = includes; diff --git a/types/lodash/indexOf.d.ts b/types/lodash/indexOf.d.ts new file mode 100644 index 0000000000..50b8f702c9 --- /dev/null +++ b/types/lodash/indexOf.d.ts @@ -0,0 +1,2 @@ +import { indexOf } from "./index"; +export = indexOf; diff --git a/types/lodash/indexOf/index.d.ts b/types/lodash/indexOf/index.d.ts deleted file mode 100644 index d2f21b9864..0000000000 --- a/types/lodash/indexOf/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { indexOf } from "../index"; -export = indexOf; diff --git a/types/lodash/initial.d.ts b/types/lodash/initial.d.ts new file mode 100644 index 0000000000..3ce64ebc02 --- /dev/null +++ b/types/lodash/initial.d.ts @@ -0,0 +1,2 @@ +import { initial } from "./index"; +export = initial; diff --git a/types/lodash/initial/index.d.ts b/types/lodash/initial/index.d.ts deleted file mode 100644 index 459fa17ade..0000000000 --- a/types/lodash/initial/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { initial } from "../index"; -export = initial; diff --git a/types/lodash/intersection.d.ts b/types/lodash/intersection.d.ts new file mode 100644 index 0000000000..1fbe4e5965 --- /dev/null +++ b/types/lodash/intersection.d.ts @@ -0,0 +1,2 @@ +import { intersection } from "./index"; +export = intersection; diff --git a/types/lodash/intersection/index.d.ts b/types/lodash/intersection/index.d.ts deleted file mode 100644 index d186c26fc9..0000000000 --- a/types/lodash/intersection/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { intersection } from "../index"; -export = intersection; diff --git a/types/lodash/intersectionBy.d.ts b/types/lodash/intersectionBy.d.ts new file mode 100644 index 0000000000..b4885da5e1 --- /dev/null +++ b/types/lodash/intersectionBy.d.ts @@ -0,0 +1,2 @@ +import { intersectionBy } from "./index"; +export = intersectionBy; diff --git a/types/lodash/intersectionBy/index.d.ts b/types/lodash/intersectionBy/index.d.ts deleted file mode 100644 index 430bf52bbf..0000000000 --- a/types/lodash/intersectionBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { intersectionBy } from "../index"; -export = intersectionBy; diff --git a/types/lodash/intersectionWith.d.ts b/types/lodash/intersectionWith.d.ts new file mode 100644 index 0000000000..bacccd045a --- /dev/null +++ b/types/lodash/intersectionWith.d.ts @@ -0,0 +1,2 @@ +import { intersectionWith } from "./index"; +export = intersectionWith; diff --git a/types/lodash/intersectionWith/index.d.ts b/types/lodash/intersectionWith/index.d.ts deleted file mode 100644 index f6a3ec0dd8..0000000000 --- a/types/lodash/intersectionWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { intersectionWith } from "../index"; -export = intersectionWith; diff --git a/types/lodash/invert.d.ts b/types/lodash/invert.d.ts new file mode 100644 index 0000000000..2287ea1f93 --- /dev/null +++ b/types/lodash/invert.d.ts @@ -0,0 +1,2 @@ +import { invert } from "./index"; +export = invert; diff --git a/types/lodash/invert/index.d.ts b/types/lodash/invert/index.d.ts deleted file mode 100644 index 525a57d57e..0000000000 --- a/types/lodash/invert/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { invert } from "../index"; -export = invert; diff --git a/types/lodash/invertBy.d.ts b/types/lodash/invertBy.d.ts new file mode 100644 index 0000000000..5951600e23 --- /dev/null +++ b/types/lodash/invertBy.d.ts @@ -0,0 +1,2 @@ +import { invertBy } from "./index"; +export = invertBy; diff --git a/types/lodash/invertBy/index.d.ts b/types/lodash/invertBy/index.d.ts deleted file mode 100644 index 5e87b4d801..0000000000 --- a/types/lodash/invertBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { invertBy } from "../index"; -export = invertBy; diff --git a/types/lodash/invoke.d.ts b/types/lodash/invoke.d.ts new file mode 100644 index 0000000000..eea6b3888f --- /dev/null +++ b/types/lodash/invoke.d.ts @@ -0,0 +1,2 @@ +import { invoke } from "./index"; +export = invoke; diff --git a/types/lodash/invoke/index.d.ts b/types/lodash/invoke/index.d.ts deleted file mode 100644 index b4457e8b25..0000000000 --- a/types/lodash/invoke/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { invoke } from "../index"; -export = invoke; diff --git a/types/lodash/invokeMap.d.ts b/types/lodash/invokeMap.d.ts new file mode 100644 index 0000000000..814cf05fdd --- /dev/null +++ b/types/lodash/invokeMap.d.ts @@ -0,0 +1,2 @@ +import { invokeMap } from "./index"; +export = invokeMap; diff --git a/types/lodash/invokeMap/index.d.ts b/types/lodash/invokeMap/index.d.ts deleted file mode 100644 index 7b2f232247..0000000000 --- a/types/lodash/invokeMap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { invokeMap } from "../index"; -export = invokeMap; diff --git a/types/lodash/isArguments.d.ts b/types/lodash/isArguments.d.ts new file mode 100644 index 0000000000..5b22572313 --- /dev/null +++ b/types/lodash/isArguments.d.ts @@ -0,0 +1,2 @@ +import { isArguments } from "./index"; +export = isArguments; diff --git a/types/lodash/isArguments/index.d.ts b/types/lodash/isArguments/index.d.ts deleted file mode 100644 index 1eab52baf4..0000000000 --- a/types/lodash/isArguments/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArguments } from "../index"; -export = isArguments; diff --git a/types/lodash/isArray.d.ts b/types/lodash/isArray.d.ts new file mode 100644 index 0000000000..a35ab5a629 --- /dev/null +++ b/types/lodash/isArray.d.ts @@ -0,0 +1,2 @@ +import { isArray } from "./index"; +export = isArray; diff --git a/types/lodash/isArray/index.d.ts b/types/lodash/isArray/index.d.ts deleted file mode 100644 index d25e63b785..0000000000 --- a/types/lodash/isArray/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArray } from "../index"; -export = isArray; diff --git a/types/lodash/isArrayBuffer.d.ts b/types/lodash/isArrayBuffer.d.ts new file mode 100644 index 0000000000..ec7c68ce2c --- /dev/null +++ b/types/lodash/isArrayBuffer.d.ts @@ -0,0 +1,2 @@ +import { isArrayBuffer } from "./index"; +export = isArrayBuffer; diff --git a/types/lodash/isArrayBuffer/index.d.ts b/types/lodash/isArrayBuffer/index.d.ts deleted file mode 100644 index 503f3fffdb..0000000000 --- a/types/lodash/isArrayBuffer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArrayBuffer } from "../index"; -export = isArrayBuffer; diff --git a/types/lodash/isArrayLike.d.ts b/types/lodash/isArrayLike.d.ts new file mode 100644 index 0000000000..aa95c77006 --- /dev/null +++ b/types/lodash/isArrayLike.d.ts @@ -0,0 +1,2 @@ +import { isArrayLike } from "./index"; +export = isArrayLike; diff --git a/types/lodash/isArrayLike/index.d.ts b/types/lodash/isArrayLike/index.d.ts deleted file mode 100644 index 706e959347..0000000000 --- a/types/lodash/isArrayLike/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArrayLike } from "../index"; -export = isArrayLike; diff --git a/types/lodash/isArrayLikeObject.d.ts b/types/lodash/isArrayLikeObject.d.ts new file mode 100644 index 0000000000..736c91db1d --- /dev/null +++ b/types/lodash/isArrayLikeObject.d.ts @@ -0,0 +1,2 @@ +import { isArrayLikeObject } from "./index"; +export = isArrayLikeObject; diff --git a/types/lodash/isArrayLikeObject/index.d.ts b/types/lodash/isArrayLikeObject/index.d.ts deleted file mode 100644 index 2336469e2e..0000000000 --- a/types/lodash/isArrayLikeObject/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArrayLikeObject } from "../index"; -export = isArrayLikeObject; diff --git a/types/lodash/isBoolean.d.ts b/types/lodash/isBoolean.d.ts new file mode 100644 index 0000000000..96c306d9cc --- /dev/null +++ b/types/lodash/isBoolean.d.ts @@ -0,0 +1,2 @@ +import { isBoolean } from "./index"; +export = isBoolean; diff --git a/types/lodash/isBoolean/index.d.ts b/types/lodash/isBoolean/index.d.ts deleted file mode 100644 index 348c40747c..0000000000 --- a/types/lodash/isBoolean/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isBoolean } from "../index"; -export = isBoolean; diff --git a/types/lodash/isBuffer.d.ts b/types/lodash/isBuffer.d.ts new file mode 100644 index 0000000000..b22d78244b --- /dev/null +++ b/types/lodash/isBuffer.d.ts @@ -0,0 +1,2 @@ +import { isBuffer } from "./index"; +export = isBuffer; diff --git a/types/lodash/isBuffer/index.d.ts b/types/lodash/isBuffer/index.d.ts deleted file mode 100644 index 2e3f555fbf..0000000000 --- a/types/lodash/isBuffer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isBuffer } from "../index"; -export = isBuffer; diff --git a/types/lodash/isDate.d.ts b/types/lodash/isDate.d.ts new file mode 100644 index 0000000000..1269a69d43 --- /dev/null +++ b/types/lodash/isDate.d.ts @@ -0,0 +1,2 @@ +import { isDate } from "./index"; +export = isDate; diff --git a/types/lodash/isDate/index.d.ts b/types/lodash/isDate/index.d.ts deleted file mode 100644 index 23abc5b9e2..0000000000 --- a/types/lodash/isDate/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isDate } from "../index"; -export = isDate; diff --git a/types/lodash/isElement.d.ts b/types/lodash/isElement.d.ts new file mode 100644 index 0000000000..e4510cd9ce --- /dev/null +++ b/types/lodash/isElement.d.ts @@ -0,0 +1,2 @@ +import { isElement } from "./index"; +export = isElement; diff --git a/types/lodash/isElement/index.d.ts b/types/lodash/isElement/index.d.ts deleted file mode 100644 index ccf79d3ad4..0000000000 --- a/types/lodash/isElement/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isElement } from "../index"; -export = isElement; diff --git a/types/lodash/isEmpty.d.ts b/types/lodash/isEmpty.d.ts new file mode 100644 index 0000000000..9e71bfa96b --- /dev/null +++ b/types/lodash/isEmpty.d.ts @@ -0,0 +1,2 @@ +import { isEmpty } from "./index"; +export = isEmpty; diff --git a/types/lodash/isEmpty/index.d.ts b/types/lodash/isEmpty/index.d.ts deleted file mode 100644 index 593a4af122..0000000000 --- a/types/lodash/isEmpty/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isEmpty } from "../index"; -export = isEmpty; diff --git a/types/lodash/isEqual.d.ts b/types/lodash/isEqual.d.ts new file mode 100644 index 0000000000..1e065fa839 --- /dev/null +++ b/types/lodash/isEqual.d.ts @@ -0,0 +1,2 @@ +import { isEqual } from "./index"; +export = isEqual; diff --git a/types/lodash/isEqual/index.d.ts b/types/lodash/isEqual/index.d.ts deleted file mode 100644 index 732f1db607..0000000000 --- a/types/lodash/isEqual/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isEqual } from "../index"; -export = isEqual; diff --git a/types/lodash/isEqualWith.d.ts b/types/lodash/isEqualWith.d.ts new file mode 100644 index 0000000000..e14d005c42 --- /dev/null +++ b/types/lodash/isEqualWith.d.ts @@ -0,0 +1,2 @@ +import { isEqualWith } from "./index"; +export = isEqualWith; diff --git a/types/lodash/isEqualWith/index.d.ts b/types/lodash/isEqualWith/index.d.ts deleted file mode 100644 index 3f3ffb8d61..0000000000 --- a/types/lodash/isEqualWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isEqualWith } from "../index"; -export = isEqualWith; diff --git a/types/lodash/isError.d.ts b/types/lodash/isError.d.ts new file mode 100644 index 0000000000..d9d5785777 --- /dev/null +++ b/types/lodash/isError.d.ts @@ -0,0 +1,2 @@ +import { isError } from "./index"; +export = isError; diff --git a/types/lodash/isError/index.d.ts b/types/lodash/isError/index.d.ts deleted file mode 100644 index ba36080a20..0000000000 --- a/types/lodash/isError/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isError } from "../index"; -export = isError; diff --git a/types/lodash/isFinite.d.ts b/types/lodash/isFinite.d.ts new file mode 100644 index 0000000000..7aba1dc6fb --- /dev/null +++ b/types/lodash/isFinite.d.ts @@ -0,0 +1,2 @@ +import { isFinite } from "./index"; +export = isFinite; diff --git a/types/lodash/isFinite/index.d.ts b/types/lodash/isFinite/index.d.ts deleted file mode 100644 index 55e07fe26b..0000000000 --- a/types/lodash/isFinite/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isFinite } from "../index"; -export = isFinite; diff --git a/types/lodash/isFunction.d.ts b/types/lodash/isFunction.d.ts new file mode 100644 index 0000000000..0a22d6cc76 --- /dev/null +++ b/types/lodash/isFunction.d.ts @@ -0,0 +1,2 @@ +import { isFunction } from "./index"; +export = isFunction; diff --git a/types/lodash/isFunction/index.d.ts b/types/lodash/isFunction/index.d.ts deleted file mode 100644 index 3a0f17bae3..0000000000 --- a/types/lodash/isFunction/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isFunction } from "../index"; -export = isFunction; diff --git a/types/lodash/isInteger.d.ts b/types/lodash/isInteger.d.ts new file mode 100644 index 0000000000..40d33d39e9 --- /dev/null +++ b/types/lodash/isInteger.d.ts @@ -0,0 +1,2 @@ +import { isInteger } from "./index"; +export = isInteger; diff --git a/types/lodash/isInteger/index.d.ts b/types/lodash/isInteger/index.d.ts deleted file mode 100644 index 271a02cbc9..0000000000 --- a/types/lodash/isInteger/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isInteger } from "../index"; -export = isInteger; diff --git a/types/lodash/isLength.d.ts b/types/lodash/isLength.d.ts new file mode 100644 index 0000000000..ee5a93304d --- /dev/null +++ b/types/lodash/isLength.d.ts @@ -0,0 +1,2 @@ +import { isLength } from "./index"; +export = isLength; diff --git a/types/lodash/isLength/index.d.ts b/types/lodash/isLength/index.d.ts deleted file mode 100644 index d930fb357f..0000000000 --- a/types/lodash/isLength/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isLength } from "../index"; -export = isLength; diff --git a/types/lodash/isMap.d.ts b/types/lodash/isMap.d.ts new file mode 100644 index 0000000000..441c5388cb --- /dev/null +++ b/types/lodash/isMap.d.ts @@ -0,0 +1,2 @@ +import { isMap } from "./index"; +export = isMap; diff --git a/types/lodash/isMap/index.d.ts b/types/lodash/isMap/index.d.ts deleted file mode 100644 index 579632c190..0000000000 --- a/types/lodash/isMap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isMap } from "../index"; -export = isMap; diff --git a/types/lodash/isMatch.d.ts b/types/lodash/isMatch.d.ts new file mode 100644 index 0000000000..69d194a285 --- /dev/null +++ b/types/lodash/isMatch.d.ts @@ -0,0 +1,2 @@ +import { isMatch } from "./index"; +export = isMatch; diff --git a/types/lodash/isMatch/index.d.ts b/types/lodash/isMatch/index.d.ts deleted file mode 100644 index d0ad2c8f4d..0000000000 --- a/types/lodash/isMatch/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isMatch } from "../index"; -export = isMatch; diff --git a/types/lodash/isMatchWith.d.ts b/types/lodash/isMatchWith.d.ts new file mode 100644 index 0000000000..932310af41 --- /dev/null +++ b/types/lodash/isMatchWith.d.ts @@ -0,0 +1,2 @@ +import { isMatchWith } from "./index"; +export = isMatchWith; diff --git a/types/lodash/isMatchWith/index.d.ts b/types/lodash/isMatchWith/index.d.ts deleted file mode 100644 index 07e83bfe93..0000000000 --- a/types/lodash/isMatchWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isMatchWith } from "../index"; -export = isMatchWith; diff --git a/types/lodash/isNaN.d.ts b/types/lodash/isNaN.d.ts new file mode 100644 index 0000000000..970702b50c --- /dev/null +++ b/types/lodash/isNaN.d.ts @@ -0,0 +1,2 @@ +import { isNaN } from "./index"; +export = isNaN; diff --git a/types/lodash/isNaN/index.d.ts b/types/lodash/isNaN/index.d.ts deleted file mode 100644 index e2c48a8f47..0000000000 --- a/types/lodash/isNaN/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNaN } from "../index"; -export = isNaN; diff --git a/types/lodash/isNative.d.ts b/types/lodash/isNative.d.ts new file mode 100644 index 0000000000..3174f8a8c2 --- /dev/null +++ b/types/lodash/isNative.d.ts @@ -0,0 +1,2 @@ +import { isNative } from "./index"; +export = isNative; diff --git a/types/lodash/isNative/index.d.ts b/types/lodash/isNative/index.d.ts deleted file mode 100644 index 6f32bd4138..0000000000 --- a/types/lodash/isNative/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNative } from "../index"; -export = isNative; diff --git a/types/lodash/isNil.d.ts b/types/lodash/isNil.d.ts new file mode 100644 index 0000000000..9e1581976c --- /dev/null +++ b/types/lodash/isNil.d.ts @@ -0,0 +1,2 @@ +import { isNil } from "./index"; +export = isNil; diff --git a/types/lodash/isNil/index.d.ts b/types/lodash/isNil/index.d.ts deleted file mode 100644 index 46f4928dda..0000000000 --- a/types/lodash/isNil/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNil } from "../index"; -export = isNil; diff --git a/types/lodash/isNull.d.ts b/types/lodash/isNull.d.ts new file mode 100644 index 0000000000..e572c456ed --- /dev/null +++ b/types/lodash/isNull.d.ts @@ -0,0 +1,2 @@ +import { isNull } from "./index"; +export = isNull; diff --git a/types/lodash/isNull/index.d.ts b/types/lodash/isNull/index.d.ts deleted file mode 100644 index a8ff0aa678..0000000000 --- a/types/lodash/isNull/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNull } from "../index"; -export = isNull; diff --git a/types/lodash/isNumber.d.ts b/types/lodash/isNumber.d.ts new file mode 100644 index 0000000000..91c83598c8 --- /dev/null +++ b/types/lodash/isNumber.d.ts @@ -0,0 +1,2 @@ +import { isNumber } from "./index"; +export = isNumber; diff --git a/types/lodash/isNumber/index.d.ts b/types/lodash/isNumber/index.d.ts deleted file mode 100644 index 13dd5e71df..0000000000 --- a/types/lodash/isNumber/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNumber } from "../index"; -export = isNumber; diff --git a/types/lodash/isObject.d.ts b/types/lodash/isObject.d.ts new file mode 100644 index 0000000000..9a43544c28 --- /dev/null +++ b/types/lodash/isObject.d.ts @@ -0,0 +1,2 @@ +import { isObject } from "./index"; +export = isObject; diff --git a/types/lodash/isObject/index.d.ts b/types/lodash/isObject/index.d.ts deleted file mode 100644 index 782c639180..0000000000 --- a/types/lodash/isObject/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isObject } from "../index"; -export = isObject; diff --git a/types/lodash/isObjectLike.d.ts b/types/lodash/isObjectLike.d.ts new file mode 100644 index 0000000000..a17d39c4e9 --- /dev/null +++ b/types/lodash/isObjectLike.d.ts @@ -0,0 +1,2 @@ +import { isObjectLike } from "./index"; +export = isObjectLike; diff --git a/types/lodash/isObjectLike/index.d.ts b/types/lodash/isObjectLike/index.d.ts deleted file mode 100644 index 1f3e27b9e3..0000000000 --- a/types/lodash/isObjectLike/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isObjectLike } from "../index"; -export = isObjectLike; diff --git a/types/lodash/isPlainObject.d.ts b/types/lodash/isPlainObject.d.ts new file mode 100644 index 0000000000..4df85e28b8 --- /dev/null +++ b/types/lodash/isPlainObject.d.ts @@ -0,0 +1,2 @@ +import { isPlainObject } from "./index"; +export = isPlainObject; diff --git a/types/lodash/isPlainObject/index.d.ts b/types/lodash/isPlainObject/index.d.ts deleted file mode 100644 index 5f474f0259..0000000000 --- a/types/lodash/isPlainObject/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isPlainObject } from "../index"; -export = isPlainObject; diff --git a/types/lodash/isRegExp.d.ts b/types/lodash/isRegExp.d.ts new file mode 100644 index 0000000000..ed206d9728 --- /dev/null +++ b/types/lodash/isRegExp.d.ts @@ -0,0 +1,2 @@ +import { isRegExp } from "./index"; +export = isRegExp; diff --git a/types/lodash/isRegExp/index.d.ts b/types/lodash/isRegExp/index.d.ts deleted file mode 100644 index aa85288df5..0000000000 --- a/types/lodash/isRegExp/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isRegExp } from "../index"; -export = isRegExp; diff --git a/types/lodash/isSafeInteger.d.ts b/types/lodash/isSafeInteger.d.ts new file mode 100644 index 0000000000..6bc6083319 --- /dev/null +++ b/types/lodash/isSafeInteger.d.ts @@ -0,0 +1,2 @@ +import { isSafeInteger } from "./index"; +export = isSafeInteger; diff --git a/types/lodash/isSafeInteger/index.d.ts b/types/lodash/isSafeInteger/index.d.ts deleted file mode 100644 index e3002bd6b9..0000000000 --- a/types/lodash/isSafeInteger/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isSafeInteger } from "../index"; -export = isSafeInteger; diff --git a/types/lodash/isSet.d.ts b/types/lodash/isSet.d.ts new file mode 100644 index 0000000000..7967b50d29 --- /dev/null +++ b/types/lodash/isSet.d.ts @@ -0,0 +1,2 @@ +import { isSet } from "./index"; +export = isSet; diff --git a/types/lodash/isSet/index.d.ts b/types/lodash/isSet/index.d.ts deleted file mode 100644 index e7f1b52379..0000000000 --- a/types/lodash/isSet/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isSet } from "../index"; -export = isSet; diff --git a/types/lodash/isString.d.ts b/types/lodash/isString.d.ts new file mode 100644 index 0000000000..757802e178 --- /dev/null +++ b/types/lodash/isString.d.ts @@ -0,0 +1,2 @@ +import { isString } from "./index"; +export = isString; diff --git a/types/lodash/isString/index.d.ts b/types/lodash/isString/index.d.ts deleted file mode 100644 index 1f791b7d92..0000000000 --- a/types/lodash/isString/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isString } from "../index"; -export = isString; diff --git a/types/lodash/isSymbol.d.ts b/types/lodash/isSymbol.d.ts new file mode 100644 index 0000000000..e28b2b0c73 --- /dev/null +++ b/types/lodash/isSymbol.d.ts @@ -0,0 +1,2 @@ +import { isSymbol } from "./index"; +export = isSymbol; diff --git a/types/lodash/isSymbol/index.d.ts b/types/lodash/isSymbol/index.d.ts deleted file mode 100644 index 15c9097d3f..0000000000 --- a/types/lodash/isSymbol/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isSymbol } from "../index"; -export = isSymbol; diff --git a/types/lodash/isTypedArray.d.ts b/types/lodash/isTypedArray.d.ts new file mode 100644 index 0000000000..7f32601225 --- /dev/null +++ b/types/lodash/isTypedArray.d.ts @@ -0,0 +1,2 @@ +import { isTypedArray } from "./index"; +export = isTypedArray; diff --git a/types/lodash/isTypedArray/index.d.ts b/types/lodash/isTypedArray/index.d.ts deleted file mode 100644 index 8856310cd6..0000000000 --- a/types/lodash/isTypedArray/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isTypedArray } from "../index"; -export = isTypedArray; diff --git a/types/lodash/isUndefined.d.ts b/types/lodash/isUndefined.d.ts new file mode 100644 index 0000000000..7a5c64ff74 --- /dev/null +++ b/types/lodash/isUndefined.d.ts @@ -0,0 +1,2 @@ +import { isUndefined } from "./index"; +export = isUndefined; diff --git a/types/lodash/isUndefined/index.d.ts b/types/lodash/isUndefined/index.d.ts deleted file mode 100644 index dbb326461e..0000000000 --- a/types/lodash/isUndefined/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isUndefined } from "../index"; -export = isUndefined; diff --git a/types/lodash/isWeakMap.d.ts b/types/lodash/isWeakMap.d.ts new file mode 100644 index 0000000000..b0609daab5 --- /dev/null +++ b/types/lodash/isWeakMap.d.ts @@ -0,0 +1,2 @@ +import { isWeakMap } from "./index"; +export = isWeakMap; diff --git a/types/lodash/isWeakMap/index.d.ts b/types/lodash/isWeakMap/index.d.ts deleted file mode 100644 index 954f587ecf..0000000000 --- a/types/lodash/isWeakMap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isWeakMap } from "../index"; -export = isWeakMap; diff --git a/types/lodash/isWeakSet.d.ts b/types/lodash/isWeakSet.d.ts new file mode 100644 index 0000000000..6beda3d0fa --- /dev/null +++ b/types/lodash/isWeakSet.d.ts @@ -0,0 +1,2 @@ +import { isWeakSet } from "./index"; +export = isWeakSet; diff --git a/types/lodash/isWeakSet/index.d.ts b/types/lodash/isWeakSet/index.d.ts deleted file mode 100644 index 28a84390d8..0000000000 --- a/types/lodash/isWeakSet/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isWeakSet } from "../index"; -export = isWeakSet; diff --git a/types/lodash/iteratee.d.ts b/types/lodash/iteratee.d.ts new file mode 100644 index 0000000000..493b39c4ba --- /dev/null +++ b/types/lodash/iteratee.d.ts @@ -0,0 +1,2 @@ +import { iteratee } from "./index"; +export = iteratee; diff --git a/types/lodash/iteratee/index.d.ts b/types/lodash/iteratee/index.d.ts deleted file mode 100644 index 2969a1f3e4..0000000000 --- a/types/lodash/iteratee/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { iteratee } from "../index"; -export = iteratee; diff --git a/types/lodash/join.d.ts b/types/lodash/join.d.ts new file mode 100644 index 0000000000..b2c5fb4012 --- /dev/null +++ b/types/lodash/join.d.ts @@ -0,0 +1,2 @@ +import { join } from "./index"; +export = join; diff --git a/types/lodash/join/index.d.ts b/types/lodash/join/index.d.ts deleted file mode 100644 index ba5a4a26a7..0000000000 --- a/types/lodash/join/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { join } from "../index"; -export = join; diff --git a/types/lodash/kebabCase.d.ts b/types/lodash/kebabCase.d.ts new file mode 100644 index 0000000000..c088ef7c24 --- /dev/null +++ b/types/lodash/kebabCase.d.ts @@ -0,0 +1,2 @@ +import { kebabCase } from "./index"; +export = kebabCase; diff --git a/types/lodash/kebabCase/index.d.ts b/types/lodash/kebabCase/index.d.ts deleted file mode 100644 index 875a153635..0000000000 --- a/types/lodash/kebabCase/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { kebabCase } from "../index"; -export = kebabCase; diff --git a/types/lodash/keyBy.d.ts b/types/lodash/keyBy.d.ts new file mode 100644 index 0000000000..664a7229a1 --- /dev/null +++ b/types/lodash/keyBy.d.ts @@ -0,0 +1,2 @@ +import { keyBy } from "./index"; +export = keyBy; diff --git a/types/lodash/keyBy/index.d.ts b/types/lodash/keyBy/index.d.ts deleted file mode 100644 index 93f370b5a7..0000000000 --- a/types/lodash/keyBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { keyBy } from "../index"; -export = keyBy; diff --git a/types/lodash/keys.d.ts b/types/lodash/keys.d.ts new file mode 100644 index 0000000000..7eb29a0b91 --- /dev/null +++ b/types/lodash/keys.d.ts @@ -0,0 +1,2 @@ +import { keys } from "./index"; +export = keys; diff --git a/types/lodash/keys/index.d.ts b/types/lodash/keys/index.d.ts deleted file mode 100644 index 3a19ec5b7a..0000000000 --- a/types/lodash/keys/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { keys } from "../index"; -export = keys; diff --git a/types/lodash/keysIn.d.ts b/types/lodash/keysIn.d.ts new file mode 100644 index 0000000000..c9eeee6c27 --- /dev/null +++ b/types/lodash/keysIn.d.ts @@ -0,0 +1,2 @@ +import { keysIn } from "./index"; +export = keysIn; diff --git a/types/lodash/keysIn/index.d.ts b/types/lodash/keysIn/index.d.ts deleted file mode 100644 index 159a7e9b8c..0000000000 --- a/types/lodash/keysIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { keysIn } from "../index"; -export = keysIn; diff --git a/types/lodash/last.d.ts b/types/lodash/last.d.ts new file mode 100644 index 0000000000..cfdeb757ee --- /dev/null +++ b/types/lodash/last.d.ts @@ -0,0 +1,2 @@ +import { last } from "./index"; +export = last; diff --git a/types/lodash/last/index.d.ts b/types/lodash/last/index.d.ts deleted file mode 100644 index 8b56dda8bf..0000000000 --- a/types/lodash/last/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { last } from "../index"; -export = last; diff --git a/types/lodash/lastIndexOf.d.ts b/types/lodash/lastIndexOf.d.ts new file mode 100644 index 0000000000..979d80dd9e --- /dev/null +++ b/types/lodash/lastIndexOf.d.ts @@ -0,0 +1,2 @@ +import { lastIndexOf } from "./index"; +export = lastIndexOf; diff --git a/types/lodash/lastIndexOf/index.d.ts b/types/lodash/lastIndexOf/index.d.ts deleted file mode 100644 index 47a9e1fef9..0000000000 --- a/types/lodash/lastIndexOf/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { lastIndexOf } from "../index"; -export = lastIndexOf; diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index d56d5e45d6..35f4ddb36d 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -81,7 +81,7 @@ class Dog { constructor(public name: string) { } bark() { - console.log('Woof, woof!'); + // Woof } } diff --git a/types/lodash/lowerCase.d.ts b/types/lodash/lowerCase.d.ts new file mode 100644 index 0000000000..475297d8cf --- /dev/null +++ b/types/lodash/lowerCase.d.ts @@ -0,0 +1,2 @@ +import { lowerCase } from "./index"; +export = lowerCase; diff --git a/types/lodash/lowerCase/index.d.ts b/types/lodash/lowerCase/index.d.ts deleted file mode 100644 index 792ecb2fca..0000000000 --- a/types/lodash/lowerCase/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { lowerCase } from "../index"; -export = lowerCase; diff --git a/types/lodash/lowerFirst.d.ts b/types/lodash/lowerFirst.d.ts new file mode 100644 index 0000000000..0836228fcc --- /dev/null +++ b/types/lodash/lowerFirst.d.ts @@ -0,0 +1,2 @@ +import { lowerFirst } from "./index"; +export = lowerFirst; diff --git a/types/lodash/lowerFirst/index.d.ts b/types/lodash/lowerFirst/index.d.ts deleted file mode 100644 index 57d5a9c60e..0000000000 --- a/types/lodash/lowerFirst/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { lowerFirst } from "../index"; -export = lowerFirst; diff --git a/types/lodash/lt.d.ts b/types/lodash/lt.d.ts new file mode 100644 index 0000000000..92cd4e26f8 --- /dev/null +++ b/types/lodash/lt.d.ts @@ -0,0 +1,2 @@ +import { lt } from "./index"; +export = lt; diff --git a/types/lodash/lt/index.d.ts b/types/lodash/lt/index.d.ts deleted file mode 100644 index 483de251ea..0000000000 --- a/types/lodash/lt/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { lt } from "../index"; -export = lt; diff --git a/types/lodash/lte.d.ts b/types/lodash/lte.d.ts new file mode 100644 index 0000000000..7c80f37c01 --- /dev/null +++ b/types/lodash/lte.d.ts @@ -0,0 +1,2 @@ +import { lte } from "./index"; +export = lte; diff --git a/types/lodash/lte/index.d.ts b/types/lodash/lte/index.d.ts deleted file mode 100644 index 62e11824f5..0000000000 --- a/types/lodash/lte/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { lte } from "../index"; -export = lte; diff --git a/types/lodash/map.d.ts b/types/lodash/map.d.ts new file mode 100644 index 0000000000..2f783cb7f5 --- /dev/null +++ b/types/lodash/map.d.ts @@ -0,0 +1,2 @@ +import { map } from "./index"; +export = map; diff --git a/types/lodash/map/index.d.ts b/types/lodash/map/index.d.ts deleted file mode 100644 index 055e43250f..0000000000 --- a/types/lodash/map/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { map } from "../index"; -export = map; diff --git a/types/lodash/mapKeys.d.ts b/types/lodash/mapKeys.d.ts new file mode 100644 index 0000000000..7c7e1b5ce6 --- /dev/null +++ b/types/lodash/mapKeys.d.ts @@ -0,0 +1,2 @@ +import { mapKeys } from "./index"; +export = mapKeys; diff --git a/types/lodash/mapKeys/index.d.ts b/types/lodash/mapKeys/index.d.ts deleted file mode 100644 index b830255f5e..0000000000 --- a/types/lodash/mapKeys/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { mapKeys } from "../index"; -export = mapKeys; diff --git a/types/lodash/mapValues.d.ts b/types/lodash/mapValues.d.ts new file mode 100644 index 0000000000..3e87ea61ef --- /dev/null +++ b/types/lodash/mapValues.d.ts @@ -0,0 +1,2 @@ +import { mapValues } from "./index"; +export = mapValues; diff --git a/types/lodash/mapValues/index.d.ts b/types/lodash/mapValues/index.d.ts deleted file mode 100644 index 60df8d2502..0000000000 --- a/types/lodash/mapValues/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { mapValues } from "../index"; -export = mapValues; diff --git a/types/lodash/matches.d.ts b/types/lodash/matches.d.ts new file mode 100644 index 0000000000..5bb3cc2686 --- /dev/null +++ b/types/lodash/matches.d.ts @@ -0,0 +1,2 @@ +import { matches } from "./index"; +export = matches; diff --git a/types/lodash/matches/index.d.ts b/types/lodash/matches/index.d.ts deleted file mode 100644 index bd88217869..0000000000 --- a/types/lodash/matches/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { matches } from "../index"; -export = matches; diff --git a/types/lodash/matchesProperty.d.ts b/types/lodash/matchesProperty.d.ts new file mode 100644 index 0000000000..7378498533 --- /dev/null +++ b/types/lodash/matchesProperty.d.ts @@ -0,0 +1,2 @@ +import { matchesProperty } from "./index"; +export = matchesProperty; diff --git a/types/lodash/matchesProperty/index.d.ts b/types/lodash/matchesProperty/index.d.ts deleted file mode 100644 index 342aa1c70f..0000000000 --- a/types/lodash/matchesProperty/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { matchesProperty } from "../index"; -export = matchesProperty; diff --git a/types/lodash/max.d.ts b/types/lodash/max.d.ts new file mode 100644 index 0000000000..36d0646138 --- /dev/null +++ b/types/lodash/max.d.ts @@ -0,0 +1,2 @@ +import { max } from "./index"; +export = max; diff --git a/types/lodash/max/index.d.ts b/types/lodash/max/index.d.ts deleted file mode 100644 index 8bce255b0e..0000000000 --- a/types/lodash/max/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { max } from "../index"; -export = max; diff --git a/types/lodash/maxBy.d.ts b/types/lodash/maxBy.d.ts new file mode 100644 index 0000000000..d483d95f95 --- /dev/null +++ b/types/lodash/maxBy.d.ts @@ -0,0 +1,2 @@ +import { maxBy } from "./index"; +export = maxBy; diff --git a/types/lodash/maxBy/index.d.ts b/types/lodash/maxBy/index.d.ts deleted file mode 100644 index 2a3f4f9e18..0000000000 --- a/types/lodash/maxBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { maxBy } from "../index"; -export = maxBy; diff --git a/types/lodash/mean.d.ts b/types/lodash/mean.d.ts new file mode 100644 index 0000000000..983ad77282 --- /dev/null +++ b/types/lodash/mean.d.ts @@ -0,0 +1,2 @@ +import { mean } from "./index"; +export = mean; diff --git a/types/lodash/mean/index.d.ts b/types/lodash/mean/index.d.ts deleted file mode 100644 index 0265e22a76..0000000000 --- a/types/lodash/mean/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { mean } from "../index"; -export = mean; diff --git a/types/lodash/meanBy.d.ts b/types/lodash/meanBy.d.ts new file mode 100644 index 0000000000..67aebbbe82 --- /dev/null +++ b/types/lodash/meanBy.d.ts @@ -0,0 +1,2 @@ +import { meanBy } from "./index"; +export = meanBy; diff --git a/types/lodash/meanBy/index.d.ts b/types/lodash/meanBy/index.d.ts deleted file mode 100644 index 58b90c7694..0000000000 --- a/types/lodash/meanBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { meanBy } from "../index"; -export = meanBy; diff --git a/types/lodash/memoize.d.ts b/types/lodash/memoize.d.ts new file mode 100644 index 0000000000..6ff535b91e --- /dev/null +++ b/types/lodash/memoize.d.ts @@ -0,0 +1,2 @@ +import { memoize } from "./index"; +export = memoize; diff --git a/types/lodash/memoize/index.d.ts b/types/lodash/memoize/index.d.ts deleted file mode 100644 index ce92f6eba1..0000000000 --- a/types/lodash/memoize/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { memoize } from "../index"; -export = memoize; diff --git a/types/lodash/merge.d.ts b/types/lodash/merge.d.ts new file mode 100644 index 0000000000..eb8bd95e8a --- /dev/null +++ b/types/lodash/merge.d.ts @@ -0,0 +1,2 @@ +import { merge } from "./index"; +export = merge; diff --git a/types/lodash/merge/index.d.ts b/types/lodash/merge/index.d.ts deleted file mode 100644 index a2d07fa045..0000000000 --- a/types/lodash/merge/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { merge } from "../index"; -export = merge; diff --git a/types/lodash/mergeWith.d.ts b/types/lodash/mergeWith.d.ts new file mode 100644 index 0000000000..a58dd908b4 --- /dev/null +++ b/types/lodash/mergeWith.d.ts @@ -0,0 +1,2 @@ +import { mergeWith } from "./index"; +export = mergeWith; diff --git a/types/lodash/mergeWith/index.d.ts b/types/lodash/mergeWith/index.d.ts deleted file mode 100644 index bd7b7b2be7..0000000000 --- a/types/lodash/mergeWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { mergeWith } from "../index"; -export = mergeWith; diff --git a/types/lodash/method.d.ts b/types/lodash/method.d.ts new file mode 100644 index 0000000000..cc3058870f --- /dev/null +++ b/types/lodash/method.d.ts @@ -0,0 +1,2 @@ +import { method } from "./index"; +export = method; diff --git a/types/lodash/method/index.d.ts b/types/lodash/method/index.d.ts deleted file mode 100644 index 38b265b19a..0000000000 --- a/types/lodash/method/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { method } from "../index"; -export = method; diff --git a/types/lodash/methodOf.d.ts b/types/lodash/methodOf.d.ts new file mode 100644 index 0000000000..af7f19aa6b --- /dev/null +++ b/types/lodash/methodOf.d.ts @@ -0,0 +1,2 @@ +import { methodOf } from "./index"; +export = methodOf; diff --git a/types/lodash/methodOf/index.d.ts b/types/lodash/methodOf/index.d.ts deleted file mode 100644 index 817f1518b2..0000000000 --- a/types/lodash/methodOf/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { methodOf } from "../index"; -export = methodOf; diff --git a/types/lodash/min.d.ts b/types/lodash/min.d.ts new file mode 100644 index 0000000000..e8ba597cd6 --- /dev/null +++ b/types/lodash/min.d.ts @@ -0,0 +1,2 @@ +import { min } from "./index"; +export = min; diff --git a/types/lodash/min/index.d.ts b/types/lodash/min/index.d.ts deleted file mode 100644 index 1b51b9d6de..0000000000 --- a/types/lodash/min/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { min } from "../index"; -export = min; diff --git a/types/lodash/minBy.d.ts b/types/lodash/minBy.d.ts new file mode 100644 index 0000000000..74860f9082 --- /dev/null +++ b/types/lodash/minBy.d.ts @@ -0,0 +1,2 @@ +import { minBy } from "./index"; +export = minBy; diff --git a/types/lodash/minBy/index.d.ts b/types/lodash/minBy/index.d.ts deleted file mode 100644 index 4c4b8fb3ae..0000000000 --- a/types/lodash/minBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { minBy } from "../index"; -export = minBy; diff --git a/types/lodash/mixin.d.ts b/types/lodash/mixin.d.ts new file mode 100644 index 0000000000..7984246792 --- /dev/null +++ b/types/lodash/mixin.d.ts @@ -0,0 +1,2 @@ +import { mixin } from "./index"; +export = mixin; diff --git a/types/lodash/mixin/index.d.ts b/types/lodash/mixin/index.d.ts deleted file mode 100644 index 7bd81f8005..0000000000 --- a/types/lodash/mixin/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { mixin } from "../index"; -export = mixin; diff --git a/types/lodash/negate.d.ts b/types/lodash/negate.d.ts new file mode 100644 index 0000000000..46d0596446 --- /dev/null +++ b/types/lodash/negate.d.ts @@ -0,0 +1,2 @@ +import { negate } from "./index"; +export = negate; diff --git a/types/lodash/negate/index.d.ts b/types/lodash/negate/index.d.ts deleted file mode 100644 index e538c5cd67..0000000000 --- a/types/lodash/negate/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { negate } from "../index"; -export = negate; diff --git a/types/lodash/noConflict.d.ts b/types/lodash/noConflict.d.ts new file mode 100644 index 0000000000..78b3c921b4 --- /dev/null +++ b/types/lodash/noConflict.d.ts @@ -0,0 +1,2 @@ +import { noConflict } from "./index"; +export = noConflict; diff --git a/types/lodash/noConflict/index.d.ts b/types/lodash/noConflict/index.d.ts deleted file mode 100644 index 228f39cae5..0000000000 --- a/types/lodash/noConflict/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { noConflict } from "../index"; -export = noConflict; diff --git a/types/lodash/noop.d.ts b/types/lodash/noop.d.ts new file mode 100644 index 0000000000..bfaeb880d0 --- /dev/null +++ b/types/lodash/noop.d.ts @@ -0,0 +1,2 @@ +import { noop } from "./index"; +export = noop; diff --git a/types/lodash/noop/index.d.ts b/types/lodash/noop/index.d.ts deleted file mode 100644 index eb4a36bb7c..0000000000 --- a/types/lodash/noop/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { noop } from "../index"; -export = noop; diff --git a/types/lodash/now.d.ts b/types/lodash/now.d.ts new file mode 100644 index 0000000000..00f807eb50 --- /dev/null +++ b/types/lodash/now.d.ts @@ -0,0 +1,2 @@ +import { now } from "./index"; +export = now; diff --git a/types/lodash/now/index.d.ts b/types/lodash/now/index.d.ts deleted file mode 100644 index b603059fb5..0000000000 --- a/types/lodash/now/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { now } from "../index"; -export = now; diff --git a/types/lodash/nth/index.d.ts b/types/lodash/nth/index.d.ts deleted file mode 100644 index 709c6df8b5..0000000000 --- a/types/lodash/nth/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { nth } from "../index"; -export = nth; diff --git a/types/lodash/nthArg.d.ts b/types/lodash/nthArg.d.ts new file mode 100644 index 0000000000..2729d70e08 --- /dev/null +++ b/types/lodash/nthArg.d.ts @@ -0,0 +1,2 @@ +import { nthArg } from "./index"; +export = nthArg; diff --git a/types/lodash/nthArg/index.d.ts b/types/lodash/nthArg/index.d.ts deleted file mode 100644 index 9fd0b4540c..0000000000 --- a/types/lodash/nthArg/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { nthArg } from "../index"; -export = nthArg; diff --git a/types/lodash/omit.d.ts b/types/lodash/omit.d.ts new file mode 100644 index 0000000000..5868a07bf9 --- /dev/null +++ b/types/lodash/omit.d.ts @@ -0,0 +1,2 @@ +import { omit } from "./index"; +export = omit; diff --git a/types/lodash/omit/index.d.ts b/types/lodash/omit/index.d.ts deleted file mode 100644 index 3c92d6293e..0000000000 --- a/types/lodash/omit/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { omit } from "../index"; -export = omit; diff --git a/types/lodash/omitBy.d.ts b/types/lodash/omitBy.d.ts new file mode 100644 index 0000000000..41bf6b48ac --- /dev/null +++ b/types/lodash/omitBy.d.ts @@ -0,0 +1,2 @@ +import { omitBy } from "./index"; +export = omitBy; diff --git a/types/lodash/omitBy/index.d.ts b/types/lodash/omitBy/index.d.ts deleted file mode 100644 index d92d14852e..0000000000 --- a/types/lodash/omitBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { omitBy } from "../index"; -export = omitBy; diff --git a/types/lodash/once.d.ts b/types/lodash/once.d.ts new file mode 100644 index 0000000000..4340e88050 --- /dev/null +++ b/types/lodash/once.d.ts @@ -0,0 +1,2 @@ +import { once } from "./index"; +export = once; diff --git a/types/lodash/once/index.d.ts b/types/lodash/once/index.d.ts deleted file mode 100644 index 369fcc08ac..0000000000 --- a/types/lodash/once/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { once } from "../index"; -export = once; diff --git a/types/lodash/orderBy.d.ts b/types/lodash/orderBy.d.ts new file mode 100644 index 0000000000..02320d506d --- /dev/null +++ b/types/lodash/orderBy.d.ts @@ -0,0 +1,2 @@ +import { orderBy } from "./index"; +export = orderBy; diff --git a/types/lodash/orderBy/index.d.ts b/types/lodash/orderBy/index.d.ts deleted file mode 100644 index 57dc0723d8..0000000000 --- a/types/lodash/orderBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { orderBy } from "../index"; -export = orderBy; diff --git a/types/lodash/over.d.ts b/types/lodash/over.d.ts new file mode 100644 index 0000000000..172c822bd8 --- /dev/null +++ b/types/lodash/over.d.ts @@ -0,0 +1,2 @@ +import { over } from "./index"; +export = over; diff --git a/types/lodash/over/index.d.ts b/types/lodash/over/index.d.ts deleted file mode 100644 index 0f92ad9429..0000000000 --- a/types/lodash/over/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { over } from "../index"; -export = over; diff --git a/types/lodash/overArgs.d.ts b/types/lodash/overArgs.d.ts new file mode 100644 index 0000000000..f8518f68d1 --- /dev/null +++ b/types/lodash/overArgs.d.ts @@ -0,0 +1,2 @@ +import { overArgs } from "./index"; +export = overArgs; diff --git a/types/lodash/overArgs/index.d.ts b/types/lodash/overArgs/index.d.ts deleted file mode 100644 index 07f93f9698..0000000000 --- a/types/lodash/overArgs/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { overArgs } from "../index"; -export = overArgs; diff --git a/types/lodash/overEvery.d.ts b/types/lodash/overEvery.d.ts new file mode 100644 index 0000000000..b8328fb520 --- /dev/null +++ b/types/lodash/overEvery.d.ts @@ -0,0 +1,2 @@ +import { overEvery } from "./index"; +export = overEvery; diff --git a/types/lodash/overEvery/index.d.ts b/types/lodash/overEvery/index.d.ts deleted file mode 100644 index 8533d45602..0000000000 --- a/types/lodash/overEvery/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { overEvery } from "../index"; -export = overEvery; diff --git a/types/lodash/overSome.d.ts b/types/lodash/overSome.d.ts new file mode 100644 index 0000000000..2f172581ca --- /dev/null +++ b/types/lodash/overSome.d.ts @@ -0,0 +1,2 @@ +import { overSome } from "./index"; +export = overSome; diff --git a/types/lodash/overSome/index.d.ts b/types/lodash/overSome/index.d.ts deleted file mode 100644 index 5d27576568..0000000000 --- a/types/lodash/overSome/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { overSome } from "../index"; -export = overSome; diff --git a/types/lodash/pad.d.ts b/types/lodash/pad.d.ts new file mode 100644 index 0000000000..552667ada9 --- /dev/null +++ b/types/lodash/pad.d.ts @@ -0,0 +1,2 @@ +import { pad } from "./index"; +export = pad; diff --git a/types/lodash/pad/index.d.ts b/types/lodash/pad/index.d.ts deleted file mode 100644 index 00cd386111..0000000000 --- a/types/lodash/pad/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pad } from "../index"; -export = pad; diff --git a/types/lodash/padEnd.d.ts b/types/lodash/padEnd.d.ts new file mode 100644 index 0000000000..c81a7b0e13 --- /dev/null +++ b/types/lodash/padEnd.d.ts @@ -0,0 +1,2 @@ +import { padEnd } from "./index"; +export = padEnd; diff --git a/types/lodash/padEnd/index.d.ts b/types/lodash/padEnd/index.d.ts deleted file mode 100644 index 6cc4425148..0000000000 --- a/types/lodash/padEnd/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { padEnd } from "../index"; -export = padEnd; diff --git a/types/lodash/padStart.d.ts b/types/lodash/padStart.d.ts new file mode 100644 index 0000000000..c119c3584d --- /dev/null +++ b/types/lodash/padStart.d.ts @@ -0,0 +1,2 @@ +import { padStart } from "./index"; +export = padStart; diff --git a/types/lodash/padStart/index.d.ts b/types/lodash/padStart/index.d.ts deleted file mode 100644 index e2d9f9bf86..0000000000 --- a/types/lodash/padStart/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { padStart } from "../index"; -export = padStart; diff --git a/types/lodash/parseInt.d.ts b/types/lodash/parseInt.d.ts new file mode 100644 index 0000000000..de59e7be9a --- /dev/null +++ b/types/lodash/parseInt.d.ts @@ -0,0 +1,2 @@ +import { parseInt } from "./index"; +export = parseInt; diff --git a/types/lodash/parseInt/index.d.ts b/types/lodash/parseInt/index.d.ts deleted file mode 100644 index 8efd3cb6fc..0000000000 --- a/types/lodash/parseInt/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { parseInt } from "../index"; -export = parseInt; diff --git a/types/lodash/partial.d.ts b/types/lodash/partial.d.ts new file mode 100644 index 0000000000..d764f6e057 --- /dev/null +++ b/types/lodash/partial.d.ts @@ -0,0 +1,2 @@ +import { partial } from "./index"; +export = partial; diff --git a/types/lodash/partial/index.d.ts b/types/lodash/partial/index.d.ts deleted file mode 100644 index 8c7ee10740..0000000000 --- a/types/lodash/partial/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { partial } from "../index"; -export = partial; diff --git a/types/lodash/partialRight.d.ts b/types/lodash/partialRight.d.ts new file mode 100644 index 0000000000..ed60160c62 --- /dev/null +++ b/types/lodash/partialRight.d.ts @@ -0,0 +1,2 @@ +import { partialRight } from "./index"; +export = partialRight; diff --git a/types/lodash/partialRight/index.d.ts b/types/lodash/partialRight/index.d.ts deleted file mode 100644 index c6f1c8acde..0000000000 --- a/types/lodash/partialRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { partialRight } from "../index"; -export = partialRight; diff --git a/types/lodash/partition.d.ts b/types/lodash/partition.d.ts new file mode 100644 index 0000000000..f26ab15a5a --- /dev/null +++ b/types/lodash/partition.d.ts @@ -0,0 +1,2 @@ +import { partition } from "./index"; +export = partition; diff --git a/types/lodash/partition/index.d.ts b/types/lodash/partition/index.d.ts deleted file mode 100644 index 1cd0cc12b3..0000000000 --- a/types/lodash/partition/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { partition } from "../index"; -export = partition; diff --git a/types/lodash/pick.d.ts b/types/lodash/pick.d.ts new file mode 100644 index 0000000000..6d346f8f6b --- /dev/null +++ b/types/lodash/pick.d.ts @@ -0,0 +1,2 @@ +import { pick } from "./index"; +export = pick; diff --git a/types/lodash/pick/index.d.ts b/types/lodash/pick/index.d.ts deleted file mode 100644 index 33d5b2fbe0..0000000000 --- a/types/lodash/pick/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pick } from "../index"; -export = pick; diff --git a/types/lodash/pickBy.d.ts b/types/lodash/pickBy.d.ts new file mode 100644 index 0000000000..5285ead8f7 --- /dev/null +++ b/types/lodash/pickBy.d.ts @@ -0,0 +1,2 @@ +import { pickBy } from "./index"; +export = pickBy; diff --git a/types/lodash/pickBy/index.d.ts b/types/lodash/pickBy/index.d.ts deleted file mode 100644 index 7b4da3a299..0000000000 --- a/types/lodash/pickBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pickBy } from "../index"; -export = pickBy; diff --git a/types/lodash/property.d.ts b/types/lodash/property.d.ts new file mode 100644 index 0000000000..3ff96f0e18 --- /dev/null +++ b/types/lodash/property.d.ts @@ -0,0 +1,2 @@ +import { property } from "./index"; +export = property; diff --git a/types/lodash/property/index.d.ts b/types/lodash/property/index.d.ts deleted file mode 100644 index 99d8057c4f..0000000000 --- a/types/lodash/property/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { property } from "../index"; -export = property; diff --git a/types/lodash/propertyOf.d.ts b/types/lodash/propertyOf.d.ts new file mode 100644 index 0000000000..27c628fa9d --- /dev/null +++ b/types/lodash/propertyOf.d.ts @@ -0,0 +1,2 @@ +import { propertyOf } from "./index"; +export = propertyOf; diff --git a/types/lodash/propertyOf/index.d.ts b/types/lodash/propertyOf/index.d.ts deleted file mode 100644 index 68e4a6ae85..0000000000 --- a/types/lodash/propertyOf/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { propertyOf } from "../index"; -export = propertyOf; diff --git a/types/lodash/pull.d.ts b/types/lodash/pull.d.ts new file mode 100644 index 0000000000..b496ebde8d --- /dev/null +++ b/types/lodash/pull.d.ts @@ -0,0 +1,2 @@ +import { pull } from "./index"; +export = pull; diff --git a/types/lodash/pull/index.d.ts b/types/lodash/pull/index.d.ts deleted file mode 100644 index 69696c43e1..0000000000 --- a/types/lodash/pull/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pull } from "../index"; -export = pull; diff --git a/types/lodash/pullAll.d.ts b/types/lodash/pullAll.d.ts new file mode 100644 index 0000000000..22c81c48af --- /dev/null +++ b/types/lodash/pullAll.d.ts @@ -0,0 +1,2 @@ +import { pullAll } from "./index"; +export = pullAll; diff --git a/types/lodash/pullAll/index.d.ts b/types/lodash/pullAll/index.d.ts deleted file mode 100644 index 32aa606b03..0000000000 --- a/types/lodash/pullAll/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pullAll } from "../index"; -export = pullAll; diff --git a/types/lodash/pullAllBy.d.ts b/types/lodash/pullAllBy.d.ts new file mode 100644 index 0000000000..e0629ce99c --- /dev/null +++ b/types/lodash/pullAllBy.d.ts @@ -0,0 +1,2 @@ +import { pullAllBy } from "./index"; +export = pullAllBy; diff --git a/types/lodash/pullAllBy/index.d.ts b/types/lodash/pullAllBy/index.d.ts deleted file mode 100644 index 4b8ff6da5b..0000000000 --- a/types/lodash/pullAllBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pullAllBy } from "../index"; -export = pullAllBy; diff --git a/types/lodash/pullAt.d.ts b/types/lodash/pullAt.d.ts new file mode 100644 index 0000000000..47be38253c --- /dev/null +++ b/types/lodash/pullAt.d.ts @@ -0,0 +1,2 @@ +import { pullAt } from "./index"; +export = pullAt; diff --git a/types/lodash/pullAt/index.d.ts b/types/lodash/pullAt/index.d.ts deleted file mode 100644 index 3019515a8e..0000000000 --- a/types/lodash/pullAt/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { pullAt } from "../index"; -export = pullAt; diff --git a/types/lodash/random.d.ts b/types/lodash/random.d.ts new file mode 100644 index 0000000000..a68cc27202 --- /dev/null +++ b/types/lodash/random.d.ts @@ -0,0 +1,2 @@ +import { random } from "./index"; +export = random; diff --git a/types/lodash/random/index.d.ts b/types/lodash/random/index.d.ts deleted file mode 100644 index 7116b7df74..0000000000 --- a/types/lodash/random/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { random } from "../index"; -export = random; diff --git a/types/lodash/range.d.ts b/types/lodash/range.d.ts new file mode 100644 index 0000000000..8f737ca5e0 --- /dev/null +++ b/types/lodash/range.d.ts @@ -0,0 +1,2 @@ +import { range } from "./index"; +export = range; diff --git a/types/lodash/range/index.d.ts b/types/lodash/range/index.d.ts deleted file mode 100644 index ba9ec7c4e2..0000000000 --- a/types/lodash/range/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { range } from "../index"; -export = range; diff --git a/types/lodash/rangeRight.d.ts b/types/lodash/rangeRight.d.ts new file mode 100644 index 0000000000..cabd0ed7c4 --- /dev/null +++ b/types/lodash/rangeRight.d.ts @@ -0,0 +1,2 @@ +import { rangeRight } from "./index"; +export = rangeRight; diff --git a/types/lodash/rangeRight/index.d.ts b/types/lodash/rangeRight/index.d.ts deleted file mode 100644 index 7cead2895f..0000000000 --- a/types/lodash/rangeRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { rangeRight } from "../index"; -export = rangeRight; diff --git a/types/lodash/rearg.d.ts b/types/lodash/rearg.d.ts new file mode 100644 index 0000000000..7684e867bf --- /dev/null +++ b/types/lodash/rearg.d.ts @@ -0,0 +1,2 @@ +import { rearg } from "./index"; +export = rearg; diff --git a/types/lodash/rearg/index.d.ts b/types/lodash/rearg/index.d.ts deleted file mode 100644 index 9fd61a68e0..0000000000 --- a/types/lodash/rearg/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { rearg } from "../index"; -export = rearg; diff --git a/types/lodash/reduce.d.ts b/types/lodash/reduce.d.ts new file mode 100644 index 0000000000..4765fcd909 --- /dev/null +++ b/types/lodash/reduce.d.ts @@ -0,0 +1,2 @@ +import { reduce } from "./index"; +export = reduce; diff --git a/types/lodash/reduce/index.d.ts b/types/lodash/reduce/index.d.ts deleted file mode 100644 index 0137ae329d..0000000000 --- a/types/lodash/reduce/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { reduce } from "../index"; -export = reduce; diff --git a/types/lodash/reduceRight.d.ts b/types/lodash/reduceRight.d.ts new file mode 100644 index 0000000000..1cfdb5f802 --- /dev/null +++ b/types/lodash/reduceRight.d.ts @@ -0,0 +1,2 @@ +import { reduceRight } from "./index"; +export = reduceRight; diff --git a/types/lodash/reduceRight/index.d.ts b/types/lodash/reduceRight/index.d.ts deleted file mode 100644 index 4853cbd33f..0000000000 --- a/types/lodash/reduceRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { reduceRight } from "../index"; -export = reduceRight; diff --git a/types/lodash/reject.d.ts b/types/lodash/reject.d.ts new file mode 100644 index 0000000000..aabc141319 --- /dev/null +++ b/types/lodash/reject.d.ts @@ -0,0 +1,2 @@ +import { reject } from "./index"; +export = reject; diff --git a/types/lodash/reject/index.d.ts b/types/lodash/reject/index.d.ts deleted file mode 100644 index a3829a3781..0000000000 --- a/types/lodash/reject/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { reject } from "../index"; -export = reject; diff --git a/types/lodash/remove.d.ts b/types/lodash/remove.d.ts new file mode 100644 index 0000000000..dca471886f --- /dev/null +++ b/types/lodash/remove.d.ts @@ -0,0 +1,2 @@ +import { remove } from "./index"; +export = remove; diff --git a/types/lodash/remove/index.d.ts b/types/lodash/remove/index.d.ts deleted file mode 100644 index 75f0141175..0000000000 --- a/types/lodash/remove/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { remove } from "../index"; -export = remove; diff --git a/types/lodash/repeat.d.ts b/types/lodash/repeat.d.ts new file mode 100644 index 0000000000..ca3c7fcb26 --- /dev/null +++ b/types/lodash/repeat.d.ts @@ -0,0 +1,2 @@ +import { repeat } from "./index"; +export = repeat; diff --git a/types/lodash/repeat/index.d.ts b/types/lodash/repeat/index.d.ts deleted file mode 100644 index 9c8b314c7d..0000000000 --- a/types/lodash/repeat/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { repeat } from "../index"; -export = repeat; diff --git a/types/lodash/replace.d.ts b/types/lodash/replace.d.ts new file mode 100644 index 0000000000..7015411267 --- /dev/null +++ b/types/lodash/replace.d.ts @@ -0,0 +1,2 @@ +import { replace } from "./index"; +export = replace; diff --git a/types/lodash/replace/index.d.ts b/types/lodash/replace/index.d.ts deleted file mode 100644 index 7ca7a89276..0000000000 --- a/types/lodash/replace/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { replace } from "../index"; -export = replace; diff --git a/types/lodash/rest.d.ts b/types/lodash/rest.d.ts new file mode 100644 index 0000000000..433a4fde72 --- /dev/null +++ b/types/lodash/rest.d.ts @@ -0,0 +1,2 @@ +import { rest } from "./index"; +export = rest; diff --git a/types/lodash/rest/index.d.ts b/types/lodash/rest/index.d.ts deleted file mode 100644 index 482d23ae13..0000000000 --- a/types/lodash/rest/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { rest } from "../index"; -export = rest; diff --git a/types/lodash/result.d.ts b/types/lodash/result.d.ts new file mode 100644 index 0000000000..65786428e3 --- /dev/null +++ b/types/lodash/result.d.ts @@ -0,0 +1,2 @@ +import { result } from "./index"; +export = result; diff --git a/types/lodash/result/index.d.ts b/types/lodash/result/index.d.ts deleted file mode 100644 index 86677691e2..0000000000 --- a/types/lodash/result/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { result } from "../index"; -export = result; diff --git a/types/lodash/reverse.d.ts b/types/lodash/reverse.d.ts new file mode 100644 index 0000000000..ecef17389c --- /dev/null +++ b/types/lodash/reverse.d.ts @@ -0,0 +1,2 @@ +import { reverse } from "./index"; +export = reverse; diff --git a/types/lodash/reverse/index.d.ts b/types/lodash/reverse/index.d.ts deleted file mode 100644 index 47783137c1..0000000000 --- a/types/lodash/reverse/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { reverse } from "../index"; -export = reverse; diff --git a/types/lodash/round.d.ts b/types/lodash/round.d.ts new file mode 100644 index 0000000000..ed2c179266 --- /dev/null +++ b/types/lodash/round.d.ts @@ -0,0 +1,2 @@ +import { round } from "./index"; +export = round; diff --git a/types/lodash/round/index.d.ts b/types/lodash/round/index.d.ts deleted file mode 100644 index 84d6bb4646..0000000000 --- a/types/lodash/round/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { round } from "../index"; -export = round; diff --git a/types/lodash/runInContext.d.ts b/types/lodash/runInContext.d.ts new file mode 100644 index 0000000000..9ee01f324f --- /dev/null +++ b/types/lodash/runInContext.d.ts @@ -0,0 +1,2 @@ +import { runInContext } from "./index"; +export = runInContext; diff --git a/types/lodash/runInContext/index.d.ts b/types/lodash/runInContext/index.d.ts deleted file mode 100644 index 4d14f9de1f..0000000000 --- a/types/lodash/runInContext/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { runInContext } from "../index"; -export = runInContext; diff --git a/types/lodash/sample.d.ts b/types/lodash/sample.d.ts new file mode 100644 index 0000000000..c225178692 --- /dev/null +++ b/types/lodash/sample.d.ts @@ -0,0 +1,2 @@ +import { sample } from "./index"; +export = sample; diff --git a/types/lodash/sample/index.d.ts b/types/lodash/sample/index.d.ts deleted file mode 100644 index 9c73951cb9..0000000000 --- a/types/lodash/sample/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sample } from "../index"; -export = sample; diff --git a/types/lodash/sampleSize.d.ts b/types/lodash/sampleSize.d.ts new file mode 100644 index 0000000000..0f1ed89ee7 --- /dev/null +++ b/types/lodash/sampleSize.d.ts @@ -0,0 +1,2 @@ +import { sampleSize } from "./index"; +export = sampleSize; diff --git a/types/lodash/sampleSize/index.d.ts b/types/lodash/sampleSize/index.d.ts deleted file mode 100644 index 0f4b02cd60..0000000000 --- a/types/lodash/sampleSize/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sampleSize } from "../index"; -export = sampleSize; diff --git a/types/lodash/scripts/generate-modules.ts b/types/lodash/scripts/generate-modules.ts index 33fdee7659..e6a4e72abb 100644 --- a/types/lodash/scripts/generate-modules.ts +++ b/types/lodash/scripts/generate-modules.ts @@ -8,35 +8,47 @@ import * as path from "path"; main().catch(console.error); -async function main() { - const all = new Set(allModuleNames()); +async function main(): Promise { + const all = allModuleNames(); + const allSet = new Set(allModuleNames()); const notOnNpm = new Set(modulesNotOnNpm()); for (const n of notOnNpm) { - if (!all.has(n)) { + if (!allSet.has(n)) { throw new Error(n); } } + const lodashEsDir = path.join("..", "..", "lodash-es"); + + // Generate lodash/tsconfig.json + fs.writeFileSync(path.join("..", "tsconfig.json"), lodashTsconfig(all)); + + // Generate lodash-es index and tsconfig + fs.writeFileSync(path.join(lodashEsDir, "index.d.ts"), lodashEsIndex(all)); + //`export {\n ${all.join(",\n ")}\n} from "lodash";\n`); + fs.writeFileSync(path.join(lodashEsDir, "tsconfig.json"), lodashEsTsconfig(all)); + for (const module of all) { console.log(module); // Generate local module - const localDir = path.join("..", module); - ensureDir(localDir); - fs.writeFileSync(path.join(localDir, "index.d.ts"), `import { ${module} } from "../index";\nexport = ${module};\n`); + fs.writeFileSync(path.join("..", `${module}.d.ts`), `import { ${module} } from "./index";\nexport = ${module};\n`); - // Generate non-local module + // Generate lodash-es module + fs.writeFileSync(path.join(lodashEsDir, `${module}.d.ts`), `import { ${module} } from "lodash";\nexport default ${module};\n`); + + // Generate `lodash.foo` module if (!notOnNpm.has(module)) { const dir = path.join("..", "..", `lodash.${module.toLowerCase()}`); ensureDir(dir); fs.writeFileSync(path.join(dir, "index.d.ts"), await globalDefinitionText(module)); - fs.writeFileSync(path.join(dir, "tsconfig.json"), tsconfig()); + fs.writeFileSync(path.join(dir, "tsconfig.json"), lodashDotFooTsconfig()); fs.writeFileSync(path.join(dir, "tslint.json"), tslint()); } } } -function ensureDir(dir: string) { +function ensureDir(dir: string): void { if (!fs.existsSync(dir)) { fs.mkdirSync(dir); } @@ -56,39 +68,79 @@ async function globalDefinitionText(moduleName: string): Promise { // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { ${moduleName} } from "lodash"; export = ${moduleName}; `.trim() + "\n"; } -function tsconfig() { - return JSON.stringify({ - "files": [ - "index.d.ts" +function compilerOptions(): object { + return { + "module": "commonjs", + "lib": [ + "es6" ], - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - } + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }; +}; + +function lodashEsIndex(moduleNames: ReadonlyArray): string { + return `// Type definitions for lodash-es 4.14 +// Project: http://lodash.com/ +// Definitions by: Stephen Lautier +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +export { + ${moduleNames.join(",\n ")} +} from "lodash"; +`; +} + +function lodashTsconfig(moduleNames: ReadonlyArray): string { + return JSON.stringify({ + compilerOptions: compilerOptions(), + files: [ + "index.d.ts", + "lodash-tests.ts", + ...moduleNames.map(m => `${m}.d.ts`), + ] }, undefined, 4); } -function tslint() { - return `{ "extends": "dtslint/dt.json" }\n`; +function lodashEsTsconfig(moduleNames: ReadonlyArray): string { + return JSON.stringify({ + compilerOptions: compilerOptions(), + files: [ + "index.d.ts", + "lodash-es-tests.ts", + ...moduleNames.map(m => `${m}.d.ts`), + ] + }, undefined, 4); } +function lodashDotFooTsconfig(): string { + return JSON.stringify({ + compilerOptions: compilerOptions(), + files: ["index.d.ts"], + }, undefined, 4); +} + +function tslint(): string { + return `{ "extends": "dtslint/dt.json" }\n`; +} function loadString(url: string): Promise { return new Promise((resolve, reject) => { @@ -103,7 +155,7 @@ function loadString(url: string): Promise { }) } -function modulesNotOnNpm() { +function modulesNotOnNpm(): string[] { return [ "chain", "each", @@ -119,7 +171,7 @@ function modulesNotOnNpm() { // Note: "fb" is not a usual module, so it is made by hand. -function allModuleNames() { +function allModuleNames(): string[] { return [ "add", "after", diff --git a/types/lodash/set.d.ts b/types/lodash/set.d.ts new file mode 100644 index 0000000000..09d0c24706 --- /dev/null +++ b/types/lodash/set.d.ts @@ -0,0 +1,2 @@ +import { set } from "./index"; +export = set; diff --git a/types/lodash/set/index.d.ts b/types/lodash/set/index.d.ts deleted file mode 100644 index 8a61f06eaa..0000000000 --- a/types/lodash/set/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { set } from "../index"; -export = set; diff --git a/types/lodash/setWith.d.ts b/types/lodash/setWith.d.ts new file mode 100644 index 0000000000..d4e319a051 --- /dev/null +++ b/types/lodash/setWith.d.ts @@ -0,0 +1,2 @@ +import { setWith } from "./index"; +export = setWith; diff --git a/types/lodash/setWith/index.d.ts b/types/lodash/setWith/index.d.ts deleted file mode 100644 index 358eab644e..0000000000 --- a/types/lodash/setWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { setWith } from "../index"; -export = setWith; diff --git a/types/lodash/shuffle.d.ts b/types/lodash/shuffle.d.ts new file mode 100644 index 0000000000..ff96f884bc --- /dev/null +++ b/types/lodash/shuffle.d.ts @@ -0,0 +1,2 @@ +import { shuffle } from "./index"; +export = shuffle; diff --git a/types/lodash/shuffle/index.d.ts b/types/lodash/shuffle/index.d.ts deleted file mode 100644 index 161b303cc6..0000000000 --- a/types/lodash/shuffle/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { shuffle } from "../index"; -export = shuffle; diff --git a/types/lodash/size.d.ts b/types/lodash/size.d.ts new file mode 100644 index 0000000000..13d492f390 --- /dev/null +++ b/types/lodash/size.d.ts @@ -0,0 +1,2 @@ +import { size } from "./index"; +export = size; diff --git a/types/lodash/size/index.d.ts b/types/lodash/size/index.d.ts deleted file mode 100644 index 8880bf0192..0000000000 --- a/types/lodash/size/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { size } from "../index"; -export = size; diff --git a/types/lodash/slice.d.ts b/types/lodash/slice.d.ts new file mode 100644 index 0000000000..311d2fa5d8 --- /dev/null +++ b/types/lodash/slice.d.ts @@ -0,0 +1,2 @@ +import { slice } from "./index"; +export = slice; diff --git a/types/lodash/slice/index.d.ts b/types/lodash/slice/index.d.ts deleted file mode 100644 index 0a01a3b37b..0000000000 --- a/types/lodash/slice/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { slice } from "../index"; -export = slice; diff --git a/types/lodash/snakeCase.d.ts b/types/lodash/snakeCase.d.ts new file mode 100644 index 0000000000..8245a7da1d --- /dev/null +++ b/types/lodash/snakeCase.d.ts @@ -0,0 +1,2 @@ +import { snakeCase } from "./index"; +export = snakeCase; diff --git a/types/lodash/snakeCase/index.d.ts b/types/lodash/snakeCase/index.d.ts deleted file mode 100644 index 83a69eed7d..0000000000 --- a/types/lodash/snakeCase/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { snakeCase } from "../index"; -export = snakeCase; diff --git a/types/lodash/some.d.ts b/types/lodash/some.d.ts new file mode 100644 index 0000000000..90ef478bbe --- /dev/null +++ b/types/lodash/some.d.ts @@ -0,0 +1,2 @@ +import { some } from "./index"; +export = some; diff --git a/types/lodash/some/index.d.ts b/types/lodash/some/index.d.ts deleted file mode 100644 index 737e5026a0..0000000000 --- a/types/lodash/some/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { some } from "../index"; -export = some; diff --git a/types/lodash/sortBy.d.ts b/types/lodash/sortBy.d.ts new file mode 100644 index 0000000000..5f3d4f2a7b --- /dev/null +++ b/types/lodash/sortBy.d.ts @@ -0,0 +1,2 @@ +import { sortBy } from "./index"; +export = sortBy; diff --git a/types/lodash/sortBy/index.d.ts b/types/lodash/sortBy/index.d.ts deleted file mode 100644 index f25a80ef63..0000000000 --- a/types/lodash/sortBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortBy } from "../index"; -export = sortBy; diff --git a/types/lodash/sortedIndex.d.ts b/types/lodash/sortedIndex.d.ts new file mode 100644 index 0000000000..c9c79114d0 --- /dev/null +++ b/types/lodash/sortedIndex.d.ts @@ -0,0 +1,2 @@ +import { sortedIndex } from "./index"; +export = sortedIndex; diff --git a/types/lodash/sortedIndex/index.d.ts b/types/lodash/sortedIndex/index.d.ts deleted file mode 100644 index 752e42308c..0000000000 --- a/types/lodash/sortedIndex/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedIndex } from "../index"; -export = sortedIndex; diff --git a/types/lodash/sortedIndexBy.d.ts b/types/lodash/sortedIndexBy.d.ts new file mode 100644 index 0000000000..fdbedac570 --- /dev/null +++ b/types/lodash/sortedIndexBy.d.ts @@ -0,0 +1,2 @@ +import { sortedIndexBy } from "./index"; +export = sortedIndexBy; diff --git a/types/lodash/sortedIndexBy/index.d.ts b/types/lodash/sortedIndexBy/index.d.ts deleted file mode 100644 index de6c51ad0f..0000000000 --- a/types/lodash/sortedIndexBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedIndexBy } from "../index"; -export = sortedIndexBy; diff --git a/types/lodash/sortedIndexOf.d.ts b/types/lodash/sortedIndexOf.d.ts new file mode 100644 index 0000000000..a076c4a40e --- /dev/null +++ b/types/lodash/sortedIndexOf.d.ts @@ -0,0 +1,2 @@ +import { sortedIndexOf } from "./index"; +export = sortedIndexOf; diff --git a/types/lodash/sortedIndexOf/index.d.ts b/types/lodash/sortedIndexOf/index.d.ts deleted file mode 100644 index 4ee1da9b33..0000000000 --- a/types/lodash/sortedIndexOf/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedIndexOf } from "../index"; -export = sortedIndexOf; diff --git a/types/lodash/sortedLastIndex.d.ts b/types/lodash/sortedLastIndex.d.ts new file mode 100644 index 0000000000..808c2c0ff2 --- /dev/null +++ b/types/lodash/sortedLastIndex.d.ts @@ -0,0 +1,2 @@ +import { sortedLastIndex } from "./index"; +export = sortedLastIndex; diff --git a/types/lodash/sortedLastIndex/index.d.ts b/types/lodash/sortedLastIndex/index.d.ts deleted file mode 100644 index 5a2d225624..0000000000 --- a/types/lodash/sortedLastIndex/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedLastIndex } from "../index"; -export = sortedLastIndex; diff --git a/types/lodash/sortedLastIndexBy.d.ts b/types/lodash/sortedLastIndexBy.d.ts new file mode 100644 index 0000000000..9f23b9b83f --- /dev/null +++ b/types/lodash/sortedLastIndexBy.d.ts @@ -0,0 +1,2 @@ +import { sortedLastIndexBy } from "./index"; +export = sortedLastIndexBy; diff --git a/types/lodash/sortedLastIndexBy/index.d.ts b/types/lodash/sortedLastIndexBy/index.d.ts deleted file mode 100644 index 18b961a312..0000000000 --- a/types/lodash/sortedLastIndexBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedLastIndexBy } from "../index"; -export = sortedLastIndexBy; diff --git a/types/lodash/sortedLastIndexOf.d.ts b/types/lodash/sortedLastIndexOf.d.ts new file mode 100644 index 0000000000..abdeba0246 --- /dev/null +++ b/types/lodash/sortedLastIndexOf.d.ts @@ -0,0 +1,2 @@ +import { sortedLastIndexOf } from "./index"; +export = sortedLastIndexOf; diff --git a/types/lodash/sortedLastIndexOf/index.d.ts b/types/lodash/sortedLastIndexOf/index.d.ts deleted file mode 100644 index 84970275ed..0000000000 --- a/types/lodash/sortedLastIndexOf/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedLastIndexOf } from "../index"; -export = sortedLastIndexOf; diff --git a/types/lodash/sortedUniq.d.ts b/types/lodash/sortedUniq.d.ts new file mode 100644 index 0000000000..257d35aeaa --- /dev/null +++ b/types/lodash/sortedUniq.d.ts @@ -0,0 +1,2 @@ +import { sortedUniq } from "./index"; +export = sortedUniq; diff --git a/types/lodash/sortedUniq/index.d.ts b/types/lodash/sortedUniq/index.d.ts deleted file mode 100644 index d4a19d27cb..0000000000 --- a/types/lodash/sortedUniq/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedUniq } from "../index"; -export = sortedUniq; diff --git a/types/lodash/sortedUniqBy.d.ts b/types/lodash/sortedUniqBy.d.ts new file mode 100644 index 0000000000..316156ec2a --- /dev/null +++ b/types/lodash/sortedUniqBy.d.ts @@ -0,0 +1,2 @@ +import { sortedUniqBy } from "./index"; +export = sortedUniqBy; diff --git a/types/lodash/sortedUniqBy/index.d.ts b/types/lodash/sortedUniqBy/index.d.ts deleted file mode 100644 index a8e310ad3f..0000000000 --- a/types/lodash/sortedUniqBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sortedUniqBy } from "../index"; -export = sortedUniqBy; diff --git a/types/lodash/split.d.ts b/types/lodash/split.d.ts new file mode 100644 index 0000000000..8879eb004d --- /dev/null +++ b/types/lodash/split.d.ts @@ -0,0 +1,2 @@ +import { split } from "./index"; +export = split; diff --git a/types/lodash/split/index.d.ts b/types/lodash/split/index.d.ts deleted file mode 100644 index 15e23e48d9..0000000000 --- a/types/lodash/split/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { split } from "../index"; -export = split; diff --git a/types/lodash/spread.d.ts b/types/lodash/spread.d.ts new file mode 100644 index 0000000000..4f816b2ab4 --- /dev/null +++ b/types/lodash/spread.d.ts @@ -0,0 +1,2 @@ +import { spread } from "./index"; +export = spread; diff --git a/types/lodash/spread/index.d.ts b/types/lodash/spread/index.d.ts deleted file mode 100644 index eb27ed2f74..0000000000 --- a/types/lodash/spread/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { spread } from "../index"; -export = spread; diff --git a/types/lodash/startCase.d.ts b/types/lodash/startCase.d.ts new file mode 100644 index 0000000000..c201a11c6d --- /dev/null +++ b/types/lodash/startCase.d.ts @@ -0,0 +1,2 @@ +import { startCase } from "./index"; +export = startCase; diff --git a/types/lodash/startCase/index.d.ts b/types/lodash/startCase/index.d.ts deleted file mode 100644 index 8a6b629293..0000000000 --- a/types/lodash/startCase/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { startCase } from "../index"; -export = startCase; diff --git a/types/lodash/startsWith.d.ts b/types/lodash/startsWith.d.ts new file mode 100644 index 0000000000..a18b54f584 --- /dev/null +++ b/types/lodash/startsWith.d.ts @@ -0,0 +1,2 @@ +import { startsWith } from "./index"; +export = startsWith; diff --git a/types/lodash/startsWith/index.d.ts b/types/lodash/startsWith/index.d.ts deleted file mode 100644 index 96410734dd..0000000000 --- a/types/lodash/startsWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { startsWith } from "../index"; -export = startsWith; diff --git a/types/lodash/subtract.d.ts b/types/lodash/subtract.d.ts new file mode 100644 index 0000000000..6502fe2f44 --- /dev/null +++ b/types/lodash/subtract.d.ts @@ -0,0 +1,2 @@ +import { subtract } from "./index"; +export = subtract; diff --git a/types/lodash/subtract/index.d.ts b/types/lodash/subtract/index.d.ts deleted file mode 100644 index 30e5c0f374..0000000000 --- a/types/lodash/subtract/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { subtract } from "../index"; -export = subtract; diff --git a/types/lodash/sum.d.ts b/types/lodash/sum.d.ts new file mode 100644 index 0000000000..4e01cb4aad --- /dev/null +++ b/types/lodash/sum.d.ts @@ -0,0 +1,2 @@ +import { sum } from "./index"; +export = sum; diff --git a/types/lodash/sum/index.d.ts b/types/lodash/sum/index.d.ts deleted file mode 100644 index d861fe54b4..0000000000 --- a/types/lodash/sum/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sum } from "../index"; -export = sum; diff --git a/types/lodash/sumBy.d.ts b/types/lodash/sumBy.d.ts new file mode 100644 index 0000000000..92c4342aad --- /dev/null +++ b/types/lodash/sumBy.d.ts @@ -0,0 +1,2 @@ +import { sumBy } from "./index"; +export = sumBy; diff --git a/types/lodash/sumBy/index.d.ts b/types/lodash/sumBy/index.d.ts deleted file mode 100644 index edfadab963..0000000000 --- a/types/lodash/sumBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { sumBy } from "../index"; -export = sumBy; diff --git a/types/lodash/tail.d.ts b/types/lodash/tail.d.ts new file mode 100644 index 0000000000..2d80b444b1 --- /dev/null +++ b/types/lodash/tail.d.ts @@ -0,0 +1,2 @@ +import { tail } from "./index"; +export = tail; diff --git a/types/lodash/tail/index.d.ts b/types/lodash/tail/index.d.ts deleted file mode 100644 index 7c16421431..0000000000 --- a/types/lodash/tail/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { tail } from "../index"; -export = tail; diff --git a/types/lodash/take.d.ts b/types/lodash/take.d.ts new file mode 100644 index 0000000000..be9912245d --- /dev/null +++ b/types/lodash/take.d.ts @@ -0,0 +1,2 @@ +import { take } from "./index"; +export = take; diff --git a/types/lodash/take/index.d.ts b/types/lodash/take/index.d.ts deleted file mode 100644 index 09acc7cc67..0000000000 --- a/types/lodash/take/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { take } from "../index"; -export = take; diff --git a/types/lodash/takeRight.d.ts b/types/lodash/takeRight.d.ts new file mode 100644 index 0000000000..9d78866478 --- /dev/null +++ b/types/lodash/takeRight.d.ts @@ -0,0 +1,2 @@ +import { takeRight } from "./index"; +export = takeRight; diff --git a/types/lodash/takeRight/index.d.ts b/types/lodash/takeRight/index.d.ts deleted file mode 100644 index f5f0829506..0000000000 --- a/types/lodash/takeRight/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { takeRight } from "../index"; -export = takeRight; diff --git a/types/lodash/takeRightWhile.d.ts b/types/lodash/takeRightWhile.d.ts new file mode 100644 index 0000000000..3b293de7ae --- /dev/null +++ b/types/lodash/takeRightWhile.d.ts @@ -0,0 +1,2 @@ +import { takeRightWhile } from "./index"; +export = takeRightWhile; diff --git a/types/lodash/takeRightWhile/index.d.ts b/types/lodash/takeRightWhile/index.d.ts deleted file mode 100644 index 3b3a4c5264..0000000000 --- a/types/lodash/takeRightWhile/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { takeRightWhile } from "../index"; -export = takeRightWhile; diff --git a/types/lodash/takeWhile.d.ts b/types/lodash/takeWhile.d.ts new file mode 100644 index 0000000000..088234a8a0 --- /dev/null +++ b/types/lodash/takeWhile.d.ts @@ -0,0 +1,2 @@ +import { takeWhile } from "./index"; +export = takeWhile; diff --git a/types/lodash/takeWhile/index.d.ts b/types/lodash/takeWhile/index.d.ts deleted file mode 100644 index 2cd57257e2..0000000000 --- a/types/lodash/takeWhile/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { takeWhile } from "../index"; -export = takeWhile; diff --git a/types/lodash/tap.d.ts b/types/lodash/tap.d.ts new file mode 100644 index 0000000000..e15a13cf43 --- /dev/null +++ b/types/lodash/tap.d.ts @@ -0,0 +1,2 @@ +import { tap } from "./index"; +export = tap; diff --git a/types/lodash/tap/index.d.ts b/types/lodash/tap/index.d.ts deleted file mode 100644 index 26c6c1dfd8..0000000000 --- a/types/lodash/tap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { tap } from "../index"; -export = tap; diff --git a/types/lodash/template.d.ts b/types/lodash/template.d.ts new file mode 100644 index 0000000000..854e7539bd --- /dev/null +++ b/types/lodash/template.d.ts @@ -0,0 +1,2 @@ +import { template } from "./index"; +export = template; diff --git a/types/lodash/template/index.d.ts b/types/lodash/template/index.d.ts deleted file mode 100644 index 898eb4b44e..0000000000 --- a/types/lodash/template/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { template } from "../index"; -export = template; diff --git a/types/lodash/throttle.d.ts b/types/lodash/throttle.d.ts new file mode 100644 index 0000000000..2650896a0a --- /dev/null +++ b/types/lodash/throttle.d.ts @@ -0,0 +1,2 @@ +import { throttle } from "./index"; +export = throttle; diff --git a/types/lodash/throttle/index.d.ts b/types/lodash/throttle/index.d.ts deleted file mode 100644 index ba7f353aeb..0000000000 --- a/types/lodash/throttle/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { throttle } from "../index"; -export = throttle; diff --git a/types/lodash/thru.d.ts b/types/lodash/thru.d.ts new file mode 100644 index 0000000000..0447e1271e --- /dev/null +++ b/types/lodash/thru.d.ts @@ -0,0 +1,2 @@ +import { thru } from "./index"; +export = thru; diff --git a/types/lodash/thru/index.d.ts b/types/lodash/thru/index.d.ts deleted file mode 100644 index c23ea4f7f8..0000000000 --- a/types/lodash/thru/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { thru } from "../index"; -export = thru; diff --git a/types/lodash/times.d.ts b/types/lodash/times.d.ts new file mode 100644 index 0000000000..7fda4de03b --- /dev/null +++ b/types/lodash/times.d.ts @@ -0,0 +1,2 @@ +import { times } from "./index"; +export = times; diff --git a/types/lodash/times/index.d.ts b/types/lodash/times/index.d.ts deleted file mode 100644 index 53ce4b64da..0000000000 --- a/types/lodash/times/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { times } from "../index"; -export = times; diff --git a/types/lodash/toArray.d.ts b/types/lodash/toArray.d.ts new file mode 100644 index 0000000000..dd94c8a967 --- /dev/null +++ b/types/lodash/toArray.d.ts @@ -0,0 +1,2 @@ +import { toArray } from "./index"; +export = toArray; diff --git a/types/lodash/toArray/index.d.ts b/types/lodash/toArray/index.d.ts deleted file mode 100644 index a78ca2b2cd..0000000000 --- a/types/lodash/toArray/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toArray } from "../index"; -export = toArray; diff --git a/types/lodash/toFinite/index.d.ts b/types/lodash/toFinite/index.d.ts deleted file mode 100644 index f0317af649..0000000000 --- a/types/lodash/toFinite/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toFinite } from "../index"; -export = toFinite; diff --git a/types/lodash/toInteger.d.ts b/types/lodash/toInteger.d.ts new file mode 100644 index 0000000000..021a9c0891 --- /dev/null +++ b/types/lodash/toInteger.d.ts @@ -0,0 +1,2 @@ +import { toInteger } from "./index"; +export = toInteger; diff --git a/types/lodash/toInteger/index.d.ts b/types/lodash/toInteger/index.d.ts deleted file mode 100644 index 90415a1155..0000000000 --- a/types/lodash/toInteger/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toInteger } from "../index"; -export = toInteger; diff --git a/types/lodash/toLength.d.ts b/types/lodash/toLength.d.ts new file mode 100644 index 0000000000..41a4098c2e --- /dev/null +++ b/types/lodash/toLength.d.ts @@ -0,0 +1,2 @@ +import { toLength } from "./index"; +export = toLength; diff --git a/types/lodash/toLength/index.d.ts b/types/lodash/toLength/index.d.ts deleted file mode 100644 index 1efae9b628..0000000000 --- a/types/lodash/toLength/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toLength } from "../index"; -export = toLength; diff --git a/types/lodash/toLower.d.ts b/types/lodash/toLower.d.ts new file mode 100644 index 0000000000..766c173ee6 --- /dev/null +++ b/types/lodash/toLower.d.ts @@ -0,0 +1,2 @@ +import { toLower } from "./index"; +export = toLower; diff --git a/types/lodash/toLower/index.d.ts b/types/lodash/toLower/index.d.ts deleted file mode 100644 index 9a8690312f..0000000000 --- a/types/lodash/toLower/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toLower } from "../index"; -export = toLower; diff --git a/types/lodash/toNumber.d.ts b/types/lodash/toNumber.d.ts new file mode 100644 index 0000000000..a6c5e1fc0d --- /dev/null +++ b/types/lodash/toNumber.d.ts @@ -0,0 +1,2 @@ +import { toNumber } from "./index"; +export = toNumber; diff --git a/types/lodash/toNumber/index.d.ts b/types/lodash/toNumber/index.d.ts deleted file mode 100644 index 59c0521e63..0000000000 --- a/types/lodash/toNumber/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toNumber } from "../index"; -export = toNumber; diff --git a/types/lodash/toPairs.d.ts b/types/lodash/toPairs.d.ts new file mode 100644 index 0000000000..4a7846ed29 --- /dev/null +++ b/types/lodash/toPairs.d.ts @@ -0,0 +1,2 @@ +import { toPairs } from "./index"; +export = toPairs; diff --git a/types/lodash/toPairs/index.d.ts b/types/lodash/toPairs/index.d.ts deleted file mode 100644 index 500242710c..0000000000 --- a/types/lodash/toPairs/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toPairs } from "../index"; -export = toPairs; diff --git a/types/lodash/toPairsIn.d.ts b/types/lodash/toPairsIn.d.ts new file mode 100644 index 0000000000..82d71b3f49 --- /dev/null +++ b/types/lodash/toPairsIn.d.ts @@ -0,0 +1,2 @@ +import { toPairsIn } from "./index"; +export = toPairsIn; diff --git a/types/lodash/toPairsIn/index.d.ts b/types/lodash/toPairsIn/index.d.ts deleted file mode 100644 index 4d7f61b9dd..0000000000 --- a/types/lodash/toPairsIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toPairsIn } from "../index"; -export = toPairsIn; diff --git a/types/lodash/toPath.d.ts b/types/lodash/toPath.d.ts new file mode 100644 index 0000000000..ff354e5d32 --- /dev/null +++ b/types/lodash/toPath.d.ts @@ -0,0 +1,2 @@ +import { toPath } from "./index"; +export = toPath; diff --git a/types/lodash/toPath/index.d.ts b/types/lodash/toPath/index.d.ts deleted file mode 100644 index 23912d9437..0000000000 --- a/types/lodash/toPath/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toPath } from "../index"; -export = toPath; diff --git a/types/lodash/toPlainObject.d.ts b/types/lodash/toPlainObject.d.ts new file mode 100644 index 0000000000..0561ab6cd8 --- /dev/null +++ b/types/lodash/toPlainObject.d.ts @@ -0,0 +1,2 @@ +import { toPlainObject } from "./index"; +export = toPlainObject; diff --git a/types/lodash/toPlainObject/index.d.ts b/types/lodash/toPlainObject/index.d.ts deleted file mode 100644 index 3a9298e1e3..0000000000 --- a/types/lodash/toPlainObject/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toPlainObject } from "../index"; -export = toPlainObject; diff --git a/types/lodash/toSafeInteger.d.ts b/types/lodash/toSafeInteger.d.ts new file mode 100644 index 0000000000..6bb24d8952 --- /dev/null +++ b/types/lodash/toSafeInteger.d.ts @@ -0,0 +1,2 @@ +import { toSafeInteger } from "./index"; +export = toSafeInteger; diff --git a/types/lodash/toSafeInteger/index.d.ts b/types/lodash/toSafeInteger/index.d.ts deleted file mode 100644 index 4838cd8eba..0000000000 --- a/types/lodash/toSafeInteger/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toSafeInteger } from "../index"; -export = toSafeInteger; diff --git a/types/lodash/toString.d.ts b/types/lodash/toString.d.ts new file mode 100644 index 0000000000..7765d108af --- /dev/null +++ b/types/lodash/toString.d.ts @@ -0,0 +1,2 @@ +import { toString } from "./index"; +export = toString; diff --git a/types/lodash/toString/index.d.ts b/types/lodash/toString/index.d.ts deleted file mode 100644 index bfc2d699df..0000000000 --- a/types/lodash/toString/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toString } from "../index"; -export = toString; diff --git a/types/lodash/toUpper.d.ts b/types/lodash/toUpper.d.ts new file mode 100644 index 0000000000..af43041229 --- /dev/null +++ b/types/lodash/toUpper.d.ts @@ -0,0 +1,2 @@ +import { toUpper } from "./index"; +export = toUpper; diff --git a/types/lodash/toUpper/index.d.ts b/types/lodash/toUpper/index.d.ts deleted file mode 100644 index d191b6cb23..0000000000 --- a/types/lodash/toUpper/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { toUpper } from "../index"; -export = toUpper; diff --git a/types/lodash/transform.d.ts b/types/lodash/transform.d.ts new file mode 100644 index 0000000000..05e6543410 --- /dev/null +++ b/types/lodash/transform.d.ts @@ -0,0 +1,2 @@ +import { transform } from "./index"; +export = transform; diff --git a/types/lodash/transform/index.d.ts b/types/lodash/transform/index.d.ts deleted file mode 100644 index 266d50f504..0000000000 --- a/types/lodash/transform/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { transform } from "../index"; -export = transform; diff --git a/types/lodash/trim.d.ts b/types/lodash/trim.d.ts new file mode 100644 index 0000000000..7d0bf90b77 --- /dev/null +++ b/types/lodash/trim.d.ts @@ -0,0 +1,2 @@ +import { trim } from "./index"; +export = trim; diff --git a/types/lodash/trim/index.d.ts b/types/lodash/trim/index.d.ts deleted file mode 100644 index 0a6e07d1c3..0000000000 --- a/types/lodash/trim/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { trim } from "../index"; -export = trim; diff --git a/types/lodash/trimEnd.d.ts b/types/lodash/trimEnd.d.ts new file mode 100644 index 0000000000..b80c844814 --- /dev/null +++ b/types/lodash/trimEnd.d.ts @@ -0,0 +1,2 @@ +import { trimEnd } from "./index"; +export = trimEnd; diff --git a/types/lodash/trimEnd/index.d.ts b/types/lodash/trimEnd/index.d.ts deleted file mode 100644 index c01d487ffa..0000000000 --- a/types/lodash/trimEnd/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { trimEnd } from "../index"; -export = trimEnd; diff --git a/types/lodash/trimStart.d.ts b/types/lodash/trimStart.d.ts new file mode 100644 index 0000000000..a040712eb1 --- /dev/null +++ b/types/lodash/trimStart.d.ts @@ -0,0 +1,2 @@ +import { trimStart } from "./index"; +export = trimStart; diff --git a/types/lodash/trimStart/index.d.ts b/types/lodash/trimStart/index.d.ts deleted file mode 100644 index 478d4f8fb5..0000000000 --- a/types/lodash/trimStart/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { trimStart } from "../index"; -export = trimStart; diff --git a/types/lodash/truncate.d.ts b/types/lodash/truncate.d.ts new file mode 100644 index 0000000000..0ae065b303 --- /dev/null +++ b/types/lodash/truncate.d.ts @@ -0,0 +1,2 @@ +import { truncate } from "./index"; +export = truncate; diff --git a/types/lodash/truncate/index.d.ts b/types/lodash/truncate/index.d.ts deleted file mode 100644 index 0d8b7d96a2..0000000000 --- a/types/lodash/truncate/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { truncate } from "../index"; -export = truncate; diff --git a/types/lodash/tsconfig.json b/types/lodash/tsconfig.json index e1f7296a79..8fdd6ddff3 100644 --- a/types/lodash/tsconfig.json +++ b/types/lodash/tsconfig.json @@ -1,303 +1,8 @@ { - "files": [ - "index.d.ts", - "lodash-tests.ts", - "add/index.d.ts", - "after/index.d.ts", - "ary/index.d.ts", - "assign/index.d.ts", - "assignIn/index.d.ts", - "assignInWith/index.d.ts", - "assignWith/index.d.ts", - "at/index.d.ts", - "attempt/index.d.ts", - "before/index.d.ts", - "bind/index.d.ts", - "bindAll/index.d.ts", - "bindKey/index.d.ts", - "camelCase/index.d.ts", - "capitalize/index.d.ts", - "castArray/index.d.ts", - "ceil/index.d.ts", - "divide/index.d.ts", - "chain/index.d.ts", - "chunk/index.d.ts", - "clamp/index.d.ts", - "clone/index.d.ts", - "cloneDeep/index.d.ts", - "cloneDeepWith/index.d.ts", - "cloneWith/index.d.ts", - "compact/index.d.ts", - "concat/index.d.ts", - "constant/index.d.ts", - "countBy/index.d.ts", - "create/index.d.ts", - "curry/index.d.ts", - "curryRight/index.d.ts", - "debounce/index.d.ts", - "deburr/index.d.ts", - "defaults/index.d.ts", - "defaultsDeep/index.d.ts", - "defer/index.d.ts", - "delay/index.d.ts", - "difference/index.d.ts", - "differenceBy/index.d.ts", - "differenceWith/index.d.ts", - "drop/index.d.ts", - "dropRight/index.d.ts", - "dropRightWhile/index.d.ts", - "dropWhile/index.d.ts", - "each/index.d.ts", - "eachRight/index.d.ts", - "endsWith/index.d.ts", - "eq/index.d.ts", - "escape/index.d.ts", - "escapeRegExp/index.d.ts", - "every/index.d.ts", - "extend/index.d.ts", - "extendWith/index.d.ts", - "fb/index.d.ts", - "fill/index.d.ts", - "filter/index.d.ts", - "find/index.d.ts", - "findIndex/index.d.ts", - "findKey/index.d.ts", - "findLast/index.d.ts", - "findLastIndex/index.d.ts", - "findLastKey/index.d.ts", - "first/index.d.ts", - "flatMap/index.d.ts", - "flatten/index.d.ts", - "flattenDeep/index.d.ts", - "flattenDepth/index.d.ts", - "flip/index.d.ts", - "floor/index.d.ts", - "flow/index.d.ts", - "flowRight/index.d.ts", - "forEach/index.d.ts", - "forEachRight/index.d.ts", - "forIn/index.d.ts", - "forInRight/index.d.ts", - "forOwn/index.d.ts", - "forOwnRight/index.d.ts", - "fromPairs/index.d.ts", - "functions/index.d.ts", - "functionsIn/index.d.ts", - "get/index.d.ts", - "groupBy/index.d.ts", - "gt/index.d.ts", - "gte/index.d.ts", - "has/index.d.ts", - "hasIn/index.d.ts", - "head/index.d.ts", - "identity/index.d.ts", - "includes/index.d.ts", - "indexOf/index.d.ts", - "initial/index.d.ts", - "inRange/index.d.ts", - "intersection/index.d.ts", - "intersectionBy/index.d.ts", - "intersectionWith/index.d.ts", - "invert/index.d.ts", - "invertBy/index.d.ts", - "invoke/index.d.ts", - "invokeMap/index.d.ts", - "isArguments/index.d.ts", - "isArray/index.d.ts", - "isArrayBuffer/index.d.ts", - "isArrayLike/index.d.ts", - "isArrayLikeObject/index.d.ts", - "isBoolean/index.d.ts", - "isBuffer/index.d.ts", - "isDate/index.d.ts", - "isElement/index.d.ts", - "isEmpty/index.d.ts", - "isEqual/index.d.ts", - "isEqualWith/index.d.ts", - "isError/index.d.ts", - "isFinite/index.d.ts", - "isFunction/index.d.ts", - "isInteger/index.d.ts", - "isLength/index.d.ts", - "isMap/index.d.ts", - "isMatch/index.d.ts", - "isMatchWith/index.d.ts", - "isNaN/index.d.ts", - "isNative/index.d.ts", - "isNil/index.d.ts", - "isNull/index.d.ts", - "isNumber/index.d.ts", - "isObject/index.d.ts", - "isObjectLike/index.d.ts", - "isPlainObject/index.d.ts", - "isRegExp/index.d.ts", - "isSafeInteger/index.d.ts", - "isSet/index.d.ts", - "isString/index.d.ts", - "isSymbol/index.d.ts", - "isTypedArray/index.d.ts", - "isUndefined/index.d.ts", - "isWeakMap/index.d.ts", - "isWeakSet/index.d.ts", - "iteratee/index.d.ts", - "join/index.d.ts", - "kebabCase/index.d.ts", - "keyBy/index.d.ts", - "keys/index.d.ts", - "keysIn/index.d.ts", - "last/index.d.ts", - "lastIndexOf/index.d.ts", - "lowerCase/index.d.ts", - "lowerFirst/index.d.ts", - "lt/index.d.ts", - "lte/index.d.ts", - "map/index.d.ts", - "mapKeys/index.d.ts", - "mapValues/index.d.ts", - "matches/index.d.ts", - "matchesProperty/index.d.ts", - "max/index.d.ts", - "maxBy/index.d.ts", - "mean/index.d.ts", - "meanBy/index.d.ts", - "memoize/index.d.ts", - "merge/index.d.ts", - "mergeWith/index.d.ts", - "method/index.d.ts", - "methodOf/index.d.ts", - "min/index.d.ts", - "minBy/index.d.ts", - "mixin/index.d.ts", - "negate/index.d.ts", - "noConflict/index.d.ts", - "noop/index.d.ts", - "now/index.d.ts", - "nth/index.d.ts", - "nthArg/index.d.ts", - "omit/index.d.ts", - "omitBy/index.d.ts", - "once/index.d.ts", - "orderBy/index.d.ts", - "over/index.d.ts", - "overArgs/index.d.ts", - "overEvery/index.d.ts", - "overSome/index.d.ts", - "pad/index.d.ts", - "padEnd/index.d.ts", - "padStart/index.d.ts", - "parseInt/index.d.ts", - "partial/index.d.ts", - "partialRight/index.d.ts", - "partition/index.d.ts", - "pick/index.d.ts", - "pickBy/index.d.ts", - "property/index.d.ts", - "propertyOf/index.d.ts", - "pull/index.d.ts", - "pullAll/index.d.ts", - "pullAllBy/index.d.ts", - "pullAt/index.d.ts", - "random/index.d.ts", - "range/index.d.ts", - "rangeRight/index.d.ts", - "rearg/index.d.ts", - "reduce/index.d.ts", - "reduceRight/index.d.ts", - "reject/index.d.ts", - "remove/index.d.ts", - "repeat/index.d.ts", - "replace/index.d.ts", - "rest/index.d.ts", - "result/index.d.ts", - "reverse/index.d.ts", - "round/index.d.ts", - "runInContext/index.d.ts", - "sample/index.d.ts", - "sampleSize/index.d.ts", - "set/index.d.ts", - "setWith/index.d.ts", - "shuffle/index.d.ts", - "size/index.d.ts", - "slice/index.d.ts", - "snakeCase/index.d.ts", - "some/index.d.ts", - "sortBy/index.d.ts", - "sortedIndex/index.d.ts", - "sortedIndexBy/index.d.ts", - "sortedIndexOf/index.d.ts", - "sortedLastIndex/index.d.ts", - "sortedLastIndexBy/index.d.ts", - "sortedLastIndexOf/index.d.ts", - "sortedUniq/index.d.ts", - "sortedUniqBy/index.d.ts", - "split/index.d.ts", - "spread/index.d.ts", - "startCase/index.d.ts", - "startsWith/index.d.ts", - "subtract/index.d.ts", - "sum/index.d.ts", - "sumBy/index.d.ts", - "tail/index.d.ts", - "take/index.d.ts", - "takeRight/index.d.ts", - "takeRightWhile/index.d.ts", - "takeWhile/index.d.ts", - "tap/index.d.ts", - "template/index.d.ts", - "throttle/index.d.ts", - "thru/index.d.ts", - "times/index.d.ts", - "toArray/index.d.ts", - "toFinite/index.d.ts", - "toInteger/index.d.ts", - "toLength/index.d.ts", - "toLower/index.d.ts", - "toNumber/index.d.ts", - "toPairs/index.d.ts", - "toPairsIn/index.d.ts", - "toPath/index.d.ts", - "toPlainObject/index.d.ts", - "toSafeInteger/index.d.ts", - "toString/index.d.ts", - "toUpper/index.d.ts", - "transform/index.d.ts", - "trim/index.d.ts", - "trimEnd/index.d.ts", - "trimStart/index.d.ts", - "truncate/index.d.ts", - "unary/index.d.ts", - "unescape/index.d.ts", - "union/index.d.ts", - "unionBy/index.d.ts", - "unionWith/index.d.ts", - "uniq/index.d.ts", - "uniqBy/index.d.ts", - "uniqueId/index.d.ts", - "uniqWith/index.d.ts", - "unset/index.d.ts", - "unzip/index.d.ts", - "unzipWith/index.d.ts", - "update/index.d.ts", - "upperCase/index.d.ts", - "upperFirst/index.d.ts", - "values/index.d.ts", - "valuesIn/index.d.ts", - "without/index.d.ts", - "words/index.d.ts", - "wrap/index.d.ts", - "xor/index.d.ts", - "xorBy/index.d.ts", - "xorWith/index.d.ts", - "zip/index.d.ts", - "zipObject/index.d.ts", - "zipObjectDeep/index.d.ts", - "zipWith/index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, @@ -309,5 +14,294 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } -} + }, + "files": [ + "index.d.ts", + "lodash-tests.ts", + "add.d.ts", + "after.d.ts", + "ary.d.ts", + "assign.d.ts", + "assignIn.d.ts", + "assignInWith.d.ts", + "assignWith.d.ts", + "at.d.ts", + "attempt.d.ts", + "before.d.ts", + "bind.d.ts", + "bindAll.d.ts", + "bindKey.d.ts", + "camelCase.d.ts", + "capitalize.d.ts", + "castArray.d.ts", + "ceil.d.ts", + "chain.d.ts", + "chunk.d.ts", + "clamp.d.ts", + "clone.d.ts", + "cloneDeep.d.ts", + "cloneDeepWith.d.ts", + "cloneWith.d.ts", + "compact.d.ts", + "concat.d.ts", + "constant.d.ts", + "countBy.d.ts", + "create.d.ts", + "curry.d.ts", + "curryRight.d.ts", + "debounce.d.ts", + "deburr.d.ts", + "defaults.d.ts", + "defaultsDeep.d.ts", + "defer.d.ts", + "delay.d.ts", + "difference.d.ts", + "differenceBy.d.ts", + "differenceWith.d.ts", + "drop.d.ts", + "dropRight.d.ts", + "dropRightWhile.d.ts", + "dropWhile.d.ts", + "each.d.ts", + "eachRight.d.ts", + "endsWith.d.ts", + "eq.d.ts", + "escape.d.ts", + "escapeRegExp.d.ts", + "every.d.ts", + "extend.d.ts", + "extendWith.d.ts", + "fill.d.ts", + "filter.d.ts", + "find.d.ts", + "findIndex.d.ts", + "findKey.d.ts", + "findLast.d.ts", + "findLastIndex.d.ts", + "findLastKey.d.ts", + "first.d.ts", + "flatMap.d.ts", + "flatten.d.ts", + "flattenDeep.d.ts", + "flattenDepth.d.ts", + "flip.d.ts", + "floor.d.ts", + "flow.d.ts", + "flowRight.d.ts", + "forEach.d.ts", + "forEachRight.d.ts", + "forIn.d.ts", + "forInRight.d.ts", + "forOwn.d.ts", + "forOwnRight.d.ts", + "fromPairs.d.ts", + "functions.d.ts", + "functionsIn.d.ts", + "get.d.ts", + "groupBy.d.ts", + "gt.d.ts", + "gte.d.ts", + "has.d.ts", + "hasIn.d.ts", + "head.d.ts", + "identity.d.ts", + "inRange.d.ts", + "includes.d.ts", + "indexOf.d.ts", + "initial.d.ts", + "intersection.d.ts", + "intersectionBy.d.ts", + "intersectionWith.d.ts", + "invert.d.ts", + "invertBy.d.ts", + "invoke.d.ts", + "invokeMap.d.ts", + "isArguments.d.ts", + "isArray.d.ts", + "isArrayBuffer.d.ts", + "isArrayLike.d.ts", + "isArrayLikeObject.d.ts", + "isBoolean.d.ts", + "isBuffer.d.ts", + "isDate.d.ts", + "isElement.d.ts", + "isEmpty.d.ts", + "isEqual.d.ts", + "isEqualWith.d.ts", + "isError.d.ts", + "isFinite.d.ts", + "isFunction.d.ts", + "isInteger.d.ts", + "isLength.d.ts", + "isMap.d.ts", + "isMatch.d.ts", + "isMatchWith.d.ts", + "isNaN.d.ts", + "isNative.d.ts", + "isNil.d.ts", + "isNull.d.ts", + "isNumber.d.ts", + "isObject.d.ts", + "isObjectLike.d.ts", + "isPlainObject.d.ts", + "isRegExp.d.ts", + "isSafeInteger.d.ts", + "isSet.d.ts", + "isString.d.ts", + "isSymbol.d.ts", + "isTypedArray.d.ts", + "isUndefined.d.ts", + "isWeakMap.d.ts", + "isWeakSet.d.ts", + "iteratee.d.ts", + "join.d.ts", + "kebabCase.d.ts", + "keyBy.d.ts", + "keys.d.ts", + "keysIn.d.ts", + "last.d.ts", + "lastIndexOf.d.ts", + "lowerCase.d.ts", + "lowerFirst.d.ts", + "lt.d.ts", + "lte.d.ts", + "map.d.ts", + "mapKeys.d.ts", + "mapValues.d.ts", + "matches.d.ts", + "matchesProperty.d.ts", + "max.d.ts", + "maxBy.d.ts", + "mean.d.ts", + "meanBy.d.ts", + "memoize.d.ts", + "merge.d.ts", + "mergeWith.d.ts", + "method.d.ts", + "methodOf.d.ts", + "min.d.ts", + "minBy.d.ts", + "mixin.d.ts", + "negate.d.ts", + "noConflict.d.ts", + "noop.d.ts", + "now.d.ts", + "nthArg.d.ts", + "omit.d.ts", + "omitBy.d.ts", + "once.d.ts", + "orderBy.d.ts", + "over.d.ts", + "overArgs.d.ts", + "overEvery.d.ts", + "overSome.d.ts", + "pad.d.ts", + "padEnd.d.ts", + "padStart.d.ts", + "parseInt.d.ts", + "partial.d.ts", + "partialRight.d.ts", + "partition.d.ts", + "pick.d.ts", + "pickBy.d.ts", + "property.d.ts", + "propertyOf.d.ts", + "pull.d.ts", + "pullAll.d.ts", + "pullAllBy.d.ts", + "pullAt.d.ts", + "random.d.ts", + "range.d.ts", + "rangeRight.d.ts", + "rearg.d.ts", + "reduce.d.ts", + "reduceRight.d.ts", + "reject.d.ts", + "remove.d.ts", + "repeat.d.ts", + "replace.d.ts", + "rest.d.ts", + "result.d.ts", + "reverse.d.ts", + "round.d.ts", + "runInContext.d.ts", + "sample.d.ts", + "sampleSize.d.ts", + "set.d.ts", + "setWith.d.ts", + "shuffle.d.ts", + "size.d.ts", + "slice.d.ts", + "snakeCase.d.ts", + "some.d.ts", + "sortBy.d.ts", + "sortedIndex.d.ts", + "sortedIndexBy.d.ts", + "sortedIndexOf.d.ts", + "sortedLastIndex.d.ts", + "sortedLastIndexBy.d.ts", + "sortedLastIndexOf.d.ts", + "sortedUniq.d.ts", + "sortedUniqBy.d.ts", + "split.d.ts", + "spread.d.ts", + "startCase.d.ts", + "startsWith.d.ts", + "subtract.d.ts", + "sum.d.ts", + "sumBy.d.ts", + "tail.d.ts", + "take.d.ts", + "takeRight.d.ts", + "takeRightWhile.d.ts", + "takeWhile.d.ts", + "tap.d.ts", + "template.d.ts", + "throttle.d.ts", + "thru.d.ts", + "times.d.ts", + "toArray.d.ts", + "toInteger.d.ts", + "toLength.d.ts", + "toLower.d.ts", + "toNumber.d.ts", + "toPairs.d.ts", + "toPairsIn.d.ts", + "toPath.d.ts", + "toPlainObject.d.ts", + "toSafeInteger.d.ts", + "toString.d.ts", + "toUpper.d.ts", + "transform.d.ts", + "trim.d.ts", + "trimEnd.d.ts", + "trimStart.d.ts", + "truncate.d.ts", + "unary.d.ts", + "unescape.d.ts", + "union.d.ts", + "unionBy.d.ts", + "unionWith.d.ts", + "uniq.d.ts", + "uniqBy.d.ts", + "uniqWith.d.ts", + "uniqueId.d.ts", + "unset.d.ts", + "unzip.d.ts", + "unzipWith.d.ts", + "update.d.ts", + "upperCase.d.ts", + "upperFirst.d.ts", + "values.d.ts", + "valuesIn.d.ts", + "without.d.ts", + "words.d.ts", + "wrap.d.ts", + "xor.d.ts", + "xorBy.d.ts", + "xorWith.d.ts", + "zip.d.ts", + "zipObject.d.ts", + "zipWith.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash/unary.d.ts b/types/lodash/unary.d.ts new file mode 100644 index 0000000000..44569978f7 --- /dev/null +++ b/types/lodash/unary.d.ts @@ -0,0 +1,2 @@ +import { unary } from "./index"; +export = unary; diff --git a/types/lodash/unary/index.d.ts b/types/lodash/unary/index.d.ts deleted file mode 100644 index 2ffc81ae86..0000000000 --- a/types/lodash/unary/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unary } from "../index"; -export = unary; diff --git a/types/lodash/unescape.d.ts b/types/lodash/unescape.d.ts new file mode 100644 index 0000000000..71ba85d89f --- /dev/null +++ b/types/lodash/unescape.d.ts @@ -0,0 +1,2 @@ +import { unescape } from "./index"; +export = unescape; diff --git a/types/lodash/unescape/index.d.ts b/types/lodash/unescape/index.d.ts deleted file mode 100644 index a830cd17b6..0000000000 --- a/types/lodash/unescape/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unescape } from "../index"; -export = unescape; diff --git a/types/lodash/union.d.ts b/types/lodash/union.d.ts new file mode 100644 index 0000000000..7b12e92f6d --- /dev/null +++ b/types/lodash/union.d.ts @@ -0,0 +1,2 @@ +import { union } from "./index"; +export = union; diff --git a/types/lodash/union/index.d.ts b/types/lodash/union/index.d.ts deleted file mode 100644 index 4372f5b359..0000000000 --- a/types/lodash/union/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { union } from "../index"; -export = union; diff --git a/types/lodash/unionBy.d.ts b/types/lodash/unionBy.d.ts new file mode 100644 index 0000000000..0cb199245f --- /dev/null +++ b/types/lodash/unionBy.d.ts @@ -0,0 +1,2 @@ +import { unionBy } from "./index"; +export = unionBy; diff --git a/types/lodash/unionBy/index.d.ts b/types/lodash/unionBy/index.d.ts deleted file mode 100644 index 92e877b02a..0000000000 --- a/types/lodash/unionBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unionBy } from "../index"; -export = unionBy; diff --git a/types/lodash/unionWith.d.ts b/types/lodash/unionWith.d.ts new file mode 100644 index 0000000000..9888092f8d --- /dev/null +++ b/types/lodash/unionWith.d.ts @@ -0,0 +1,2 @@ +import { unionWith } from "./index"; +export = unionWith; diff --git a/types/lodash/unionWith/index.d.ts b/types/lodash/unionWith/index.d.ts deleted file mode 100644 index cc13611e47..0000000000 --- a/types/lodash/unionWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unionWith } from "../index"; -export = unionWith; diff --git a/types/lodash/uniq.d.ts b/types/lodash/uniq.d.ts new file mode 100644 index 0000000000..6c105ac3ea --- /dev/null +++ b/types/lodash/uniq.d.ts @@ -0,0 +1,2 @@ +import { uniq } from "./index"; +export = uniq; diff --git a/types/lodash/uniq/index.d.ts b/types/lodash/uniq/index.d.ts deleted file mode 100644 index 2a900a0547..0000000000 --- a/types/lodash/uniq/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { uniq } from "../index"; -export = uniq; diff --git a/types/lodash/uniqBy.d.ts b/types/lodash/uniqBy.d.ts new file mode 100644 index 0000000000..7101b0e306 --- /dev/null +++ b/types/lodash/uniqBy.d.ts @@ -0,0 +1,2 @@ +import { uniqBy } from "./index"; +export = uniqBy; diff --git a/types/lodash/uniqBy/index.d.ts b/types/lodash/uniqBy/index.d.ts deleted file mode 100644 index 849bf7c291..0000000000 --- a/types/lodash/uniqBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { uniqBy } from "../index"; -export = uniqBy; diff --git a/types/lodash/uniqWith.d.ts b/types/lodash/uniqWith.d.ts new file mode 100644 index 0000000000..72c3f8fc13 --- /dev/null +++ b/types/lodash/uniqWith.d.ts @@ -0,0 +1,2 @@ +import { uniqWith } from "./index"; +export = uniqWith; diff --git a/types/lodash/uniqWith/index.d.ts b/types/lodash/uniqWith/index.d.ts deleted file mode 100644 index a889f887e9..0000000000 --- a/types/lodash/uniqWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { uniqWith } from "../index"; -export = uniqWith; diff --git a/types/lodash/uniqueId.d.ts b/types/lodash/uniqueId.d.ts new file mode 100644 index 0000000000..4ea55f92f3 --- /dev/null +++ b/types/lodash/uniqueId.d.ts @@ -0,0 +1,2 @@ +import { uniqueId } from "./index"; +export = uniqueId; diff --git a/types/lodash/uniqueId/index.d.ts b/types/lodash/uniqueId/index.d.ts deleted file mode 100644 index 6ce0280474..0000000000 --- a/types/lodash/uniqueId/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { uniqueId } from "../index"; -export = uniqueId; diff --git a/types/lodash/unset.d.ts b/types/lodash/unset.d.ts new file mode 100644 index 0000000000..1eac8ddb72 --- /dev/null +++ b/types/lodash/unset.d.ts @@ -0,0 +1,2 @@ +import { unset } from "./index"; +export = unset; diff --git a/types/lodash/unset/index.d.ts b/types/lodash/unset/index.d.ts deleted file mode 100644 index b06997a103..0000000000 --- a/types/lodash/unset/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unset } from "../index"; -export = unset; diff --git a/types/lodash/unzip.d.ts b/types/lodash/unzip.d.ts new file mode 100644 index 0000000000..7e320a27f2 --- /dev/null +++ b/types/lodash/unzip.d.ts @@ -0,0 +1,2 @@ +import { unzip } from "./index"; +export = unzip; diff --git a/types/lodash/unzip/index.d.ts b/types/lodash/unzip/index.d.ts deleted file mode 100644 index 4900372c9e..0000000000 --- a/types/lodash/unzip/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unzip } from "../index"; -export = unzip; diff --git a/types/lodash/unzipWith.d.ts b/types/lodash/unzipWith.d.ts new file mode 100644 index 0000000000..2bf5394b29 --- /dev/null +++ b/types/lodash/unzipWith.d.ts @@ -0,0 +1,2 @@ +import { unzipWith } from "./index"; +export = unzipWith; diff --git a/types/lodash/unzipWith/index.d.ts b/types/lodash/unzipWith/index.d.ts deleted file mode 100644 index 28aad1a417..0000000000 --- a/types/lodash/unzipWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { unzipWith } from "../index"; -export = unzipWith; diff --git a/types/lodash/update.d.ts b/types/lodash/update.d.ts new file mode 100644 index 0000000000..d072c0fe94 --- /dev/null +++ b/types/lodash/update.d.ts @@ -0,0 +1,2 @@ +import { update } from "./index"; +export = update; diff --git a/types/lodash/update/index.d.ts b/types/lodash/update/index.d.ts deleted file mode 100644 index cba70b1b80..0000000000 --- a/types/lodash/update/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { update } from "../index"; -export = update; diff --git a/types/lodash/upperCase.d.ts b/types/lodash/upperCase.d.ts new file mode 100644 index 0000000000..c33598a935 --- /dev/null +++ b/types/lodash/upperCase.d.ts @@ -0,0 +1,2 @@ +import { upperCase } from "./index"; +export = upperCase; diff --git a/types/lodash/upperCase/index.d.ts b/types/lodash/upperCase/index.d.ts deleted file mode 100644 index 6ff442cc20..0000000000 --- a/types/lodash/upperCase/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { upperCase } from "../index"; -export = upperCase; diff --git a/types/lodash/upperFirst.d.ts b/types/lodash/upperFirst.d.ts new file mode 100644 index 0000000000..1f1b2a798a --- /dev/null +++ b/types/lodash/upperFirst.d.ts @@ -0,0 +1,2 @@ +import { upperFirst } from "./index"; +export = upperFirst; diff --git a/types/lodash/upperFirst/index.d.ts b/types/lodash/upperFirst/index.d.ts deleted file mode 100644 index b8d53837aa..0000000000 --- a/types/lodash/upperFirst/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { upperFirst } from "../index"; -export = upperFirst; diff --git a/types/lodash/values.d.ts b/types/lodash/values.d.ts new file mode 100644 index 0000000000..2015ebf8ac --- /dev/null +++ b/types/lodash/values.d.ts @@ -0,0 +1,2 @@ +import { values } from "./index"; +export = values; diff --git a/types/lodash/values/index.d.ts b/types/lodash/values/index.d.ts deleted file mode 100644 index fb10161bb7..0000000000 --- a/types/lodash/values/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { values } from "../index"; -export = values; diff --git a/types/lodash/valuesIn.d.ts b/types/lodash/valuesIn.d.ts new file mode 100644 index 0000000000..6f8d6a3efa --- /dev/null +++ b/types/lodash/valuesIn.d.ts @@ -0,0 +1,2 @@ +import { valuesIn } from "./index"; +export = valuesIn; diff --git a/types/lodash/valuesIn/index.d.ts b/types/lodash/valuesIn/index.d.ts deleted file mode 100644 index 11fcc6500d..0000000000 --- a/types/lodash/valuesIn/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { valuesIn } from "../index"; -export = valuesIn; diff --git a/types/lodash/without.d.ts b/types/lodash/without.d.ts new file mode 100644 index 0000000000..bbdfe163e5 --- /dev/null +++ b/types/lodash/without.d.ts @@ -0,0 +1,2 @@ +import { without } from "./index"; +export = without; diff --git a/types/lodash/without/index.d.ts b/types/lodash/without/index.d.ts deleted file mode 100644 index 0fa415a090..0000000000 --- a/types/lodash/without/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { without } from "../index"; -export = without; diff --git a/types/lodash/words.d.ts b/types/lodash/words.d.ts new file mode 100644 index 0000000000..22da6cb943 --- /dev/null +++ b/types/lodash/words.d.ts @@ -0,0 +1,2 @@ +import { words } from "./index"; +export = words; diff --git a/types/lodash/words/index.d.ts b/types/lodash/words/index.d.ts deleted file mode 100644 index 6a76947ca1..0000000000 --- a/types/lodash/words/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { words } from "../index"; -export = words; diff --git a/types/lodash/wrap.d.ts b/types/lodash/wrap.d.ts new file mode 100644 index 0000000000..3c20f28ed2 --- /dev/null +++ b/types/lodash/wrap.d.ts @@ -0,0 +1,2 @@ +import { wrap } from "./index"; +export = wrap; diff --git a/types/lodash/wrap/index.d.ts b/types/lodash/wrap/index.d.ts deleted file mode 100644 index 63f068b94d..0000000000 --- a/types/lodash/wrap/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { wrap } from "../index"; -export = wrap; diff --git a/types/lodash/xor.d.ts b/types/lodash/xor.d.ts new file mode 100644 index 0000000000..894735c45d --- /dev/null +++ b/types/lodash/xor.d.ts @@ -0,0 +1,2 @@ +import { xor } from "./index"; +export = xor; diff --git a/types/lodash/xor/index.d.ts b/types/lodash/xor/index.d.ts deleted file mode 100644 index 9c2e0ea17b..0000000000 --- a/types/lodash/xor/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { xor } from "../index"; -export = xor; diff --git a/types/lodash/xorBy.d.ts b/types/lodash/xorBy.d.ts new file mode 100644 index 0000000000..6a08c6a874 --- /dev/null +++ b/types/lodash/xorBy.d.ts @@ -0,0 +1,2 @@ +import { xorBy } from "./index"; +export = xorBy; diff --git a/types/lodash/xorBy/index.d.ts b/types/lodash/xorBy/index.d.ts deleted file mode 100644 index 4a2621d592..0000000000 --- a/types/lodash/xorBy/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { xorBy } from "../index"; -export = xorBy; diff --git a/types/lodash/xorWith.d.ts b/types/lodash/xorWith.d.ts new file mode 100644 index 0000000000..7cdcaf339f --- /dev/null +++ b/types/lodash/xorWith.d.ts @@ -0,0 +1,2 @@ +import { xorWith } from "./index"; +export = xorWith; diff --git a/types/lodash/xorWith/index.d.ts b/types/lodash/xorWith/index.d.ts deleted file mode 100644 index 33e897a1f2..0000000000 --- a/types/lodash/xorWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { xorWith } from "../index"; -export = xorWith; diff --git a/types/lodash/zip.d.ts b/types/lodash/zip.d.ts new file mode 100644 index 0000000000..e7467cdf96 --- /dev/null +++ b/types/lodash/zip.d.ts @@ -0,0 +1,2 @@ +import { zip } from "./index"; +export = zip; diff --git a/types/lodash/zip/index.d.ts b/types/lodash/zip/index.d.ts deleted file mode 100644 index ea074ac268..0000000000 --- a/types/lodash/zip/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { zip } from "../index"; -export = zip; diff --git a/types/lodash/zipObject.d.ts b/types/lodash/zipObject.d.ts new file mode 100644 index 0000000000..ad049fd153 --- /dev/null +++ b/types/lodash/zipObject.d.ts @@ -0,0 +1,2 @@ +import { zipObject } from "./index"; +export = zipObject; diff --git a/types/lodash/zipObject/index.d.ts b/types/lodash/zipObject/index.d.ts deleted file mode 100644 index b1577579b1..0000000000 --- a/types/lodash/zipObject/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { zipObject } from "../index"; -export = zipObject; diff --git a/types/lodash/zipObjectDeep/index.d.ts b/types/lodash/zipObjectDeep/index.d.ts deleted file mode 100644 index a155901bb5..0000000000 --- a/types/lodash/zipObjectDeep/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { zipObjectDeep } from "../index"; -export = zipObjectDeep; \ No newline at end of file diff --git a/types/lodash/zipWith.d.ts b/types/lodash/zipWith.d.ts new file mode 100644 index 0000000000..48693742fb --- /dev/null +++ b/types/lodash/zipWith.d.ts @@ -0,0 +1,2 @@ +import { zipWith } from "./index"; +export = zipWith; diff --git a/types/lodash/zipWith/index.d.ts b/types/lodash/zipWith/index.d.ts deleted file mode 100644 index bf808f690b..0000000000 --- a/types/lodash/zipWith/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { zipWith } from "../index"; -export = zipWith; From 71e42e2b629dca13d55eec1f06da0729f95addda Mon Sep 17 00:00:00 2001 From: Masanori Ohgita Date: Wed, 9 Aug 2017 06:08:13 +0900 Subject: [PATCH 150/166] [rfc2047] Add type definitions for v2.0.x (#18686) --- types/rfc2047/index.d.ts | 18 ++++++++++++++++++ types/rfc2047/rfc2047-tests.ts | 4 ++++ types/rfc2047/tsconfig.json | 22 ++++++++++++++++++++++ types/rfc2047/tslint.json | 1 + 4 files changed, 45 insertions(+) create mode 100644 types/rfc2047/index.d.ts create mode 100644 types/rfc2047/rfc2047-tests.ts create mode 100644 types/rfc2047/tsconfig.json create mode 100644 types/rfc2047/tslint.json diff --git a/types/rfc2047/index.d.ts b/types/rfc2047/index.d.ts new file mode 100644 index 0000000000..224ec8bbd0 --- /dev/null +++ b/types/rfc2047/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for rfc2047 2.0 +// Project: https://github.com/One-com/rfc2047 +// Definitions by: Masanori Ohgita +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * Decode + * @param {string} encodedText Encoded Text + * @return {string} Decoded Text + */ +export function decode(encodedText: string): string; + +/** + * Encode + * @param {string} decodedText Decoded Text + * @return {string} Encoded Text + */ +export function encode(decodedText: string): string; diff --git a/types/rfc2047/rfc2047-tests.ts b/types/rfc2047/rfc2047-tests.ts new file mode 100644 index 0000000000..f795fe76b2 --- /dev/null +++ b/types/rfc2047/rfc2047-tests.ts @@ -0,0 +1,4 @@ +import * as rfc2047 from "rfc2047"; + +rfc2047.decode(""); // $ExpectType string +rfc2047.encode(""); // $ExpectType string diff --git a/types/rfc2047/tsconfig.json b/types/rfc2047/tsconfig.json new file mode 100644 index 0000000000..ddcd538656 --- /dev/null +++ b/types/rfc2047/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "rfc2047-tests.ts" + ] +} diff --git a/types/rfc2047/tslint.json b/types/rfc2047/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/rfc2047/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From c441df954e9b2f3114a302a8decd13ec458cd754 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:09:01 +0200 Subject: [PATCH 151/166] [p-throttle] introduce typings (#18675) --- types/p-throttle/index.d.ts | 47 ++++++++++++++++++++++++++++ types/p-throttle/p-throttle-tests.ts | 47 ++++++++++++++++++++++++++++ types/p-throttle/tsconfig.json | 22 +++++++++++++ types/p-throttle/tslint.json | 1 + 4 files changed, 117 insertions(+) create mode 100644 types/p-throttle/index.d.ts create mode 100644 types/p-throttle/p-throttle-tests.ts create mode 100644 types/p-throttle/tsconfig.json create mode 100644 types/p-throttle/tslint.json diff --git a/types/p-throttle/index.d.ts b/types/p-throttle/index.d.ts new file mode 100644 index 0000000000..ae331e1ca2 --- /dev/null +++ b/types/p-throttle/index.d.ts @@ -0,0 +1,47 @@ +// Type definitions for p-throttle 1.1 +// Project: https://github.com/sindresorhus/p-throttle#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pThrottle; + +declare function pThrottle(fn: () => PromiseLike | R, limit: number, interval: number): (() => Promise) & { abort(): void; }; +declare function pThrottle(fn: (arg1: T1) => PromiseLike | R, limit: number, interval: number): ((arg1: T1) => Promise) & { abort(): void; }; +declare function pThrottle(fn: (arg1: T1, arg2: T2) => PromiseLike | R, limit: number, interval: number): ((arg1: T1, arg2: T2) => Promise) & { abort(): void; }; +declare function pThrottle(fn: (arg1: T1, arg2: T2, arg3: T3) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3) => Promise) & { abort(): void; }; +declare function pThrottle(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise) & { abort(): void; }; +declare function pThrottle(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise) & { abort(): void; }; +declare function pThrottle(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise) & { abort(): void; }; +declare function pThrottle( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7) => Promise) & { abort(): void; }; +declare function pThrottle( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8) => Promise) & { abort(): void; }; +declare function pThrottle( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9) => Promise) & { abort(): void; }; +declare function pThrottle( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10) => PromiseLike | R, + limit: number, + interval: number): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10) => Promise) & { abort(): void; }; +declare function pThrottle(fn: (...args: any[]) => PromiseLike | R, limit: number, interval: number): ((...args: any[]) => Promise) & { abort(): void; }; + +declare namespace pThrottle { + class AbortError extends Error { + readonly name: 'AbortError'; + + constructor(); + } +} diff --git a/types/p-throttle/p-throttle-tests.ts b/types/p-throttle/p-throttle-tests.ts new file mode 100644 index 0000000000..713d445e6b --- /dev/null +++ b/types/p-throttle/p-throttle-tests.ts @@ -0,0 +1,47 @@ +import pThrottle = require('p-throttle'); + +const now = Date.now(); + +const throttled = pThrottle((i: number) => { + const secDiff = ((Date.now() - now) / 1000).toFixed(); + return Promise.resolve(`${i}: ${secDiff}s`); +}, 2, 1000); + +for (let i = 1; i <= 6; i++) { + throttled(i).then(res => { + const str: string = res; + }); +} + +throttled.abort(); + +pThrottle(() => true, 2, 3).abort(); +pThrottle(() => true, 2, 3)(); +pThrottle((n: number, s: string) => true, 2, 3).abort(); +pThrottle((n: number, s: string) => true, 2, 3)(1, 's'); +pThrottle((n: number, s: string, b: boolean) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean) => true, 2, 3)(1, 's', true); +pThrottle((n: number, s: string, b: boolean, n2: number) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number) => true, 2, 3)(1, 's', true, 1); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string) => true, 2, 3)(1, 's', true, 1, 's'); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean) => true, 2, 3)(1, 's', true, 1, 's', false); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number) => true, 2, 3)(1, 's', true, 1, 's', false, 1); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number) => true, 2, 3)(1, 's', true, 1, 's', false, 1, 2); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number) => true, 2, 3)(1, 's', true, 1, 's', false, 1, 2, 3); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number, n6: number) => true, 2, 3).abort(); +pThrottle((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number, n6: number) => true, 2, 3)(1, 's', true, 1, 's', false, 1, 2, 3, 4); +pThrottle( + (n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number, n6: number, s3: string) => true, + 2, + 3).abort(); +pThrottle( + (n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number, n6: number, s3: string) => true, + 2, + 3)(1, 's', true, 1, 's', false, 1, 2, 3, 4, 'as'); + +throw new pThrottle.AbortError(); diff --git a/types/p-throttle/tsconfig.json b/types/p-throttle/tsconfig.json new file mode 100644 index 0000000000..5344df0c1c --- /dev/null +++ b/types/p-throttle/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-throttle-tests.ts" + ] +} diff --git a/types/p-throttle/tslint.json b/types/p-throttle/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-throttle/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 0c30eb38eed6033b9e6579ef8b8509111cf2dd3f Mon Sep 17 00:00:00 2001 From: Bradley Menchl Date: Tue, 8 Aug 2017 17:10:14 -0400 Subject: [PATCH 152/166] Add react-geosuggest types (#18674) --- types/react-geosuggest/index.d.ts | 79 +++++++++++++++++++ .../react-geosuggest-tests.tsx | 78 ++++++++++++++++++ types/react-geosuggest/tsconfig.json | 23 ++++++ types/react-geosuggest/tslint.json | 1 + 4 files changed, 181 insertions(+) create mode 100644 types/react-geosuggest/index.d.ts create mode 100644 types/react-geosuggest/react-geosuggest-tests.tsx create mode 100644 types/react-geosuggest/tsconfig.json create mode 100644 types/react-geosuggest/tslint.json diff --git a/types/react-geosuggest/index.d.ts b/types/react-geosuggest/index.d.ts new file mode 100644 index 0000000000..d98c66d5ca --- /dev/null +++ b/types/react-geosuggest/index.d.ts @@ -0,0 +1,79 @@ +// Type definitions for react-geosuggest 2.3 +// Project: https://github.com/ubilabs/react-geosuggest +// Definitions by: Brad Menchl +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +/// + +import { Component, InputHTMLAttributes } from "react"; + +export default class Geosuggest extends Component { + focus(): void; + blur(): void; + update(value: string): void; + clear(): void; +} + +export interface GeosuggestProps extends InputHTMLAttributes { + placeholder?: string; + initialValue?: string; + className?: string; + style?: Styles; + inputClassName?: string; + disabled?: boolean; + location?: google.maps.LatLng; + radius?: number; + bounds?: google.maps.LatLngBounds; + country?: string | string[]; + types?: QueryType[]; + fixtures?: Fixture[]; + maxFixtures?: number; + googleMaps?: typeof google.maps; + ignoreTab?: boolean; + queryDelay?: number; + highlightMatch?: boolean; + onFocus?(): void; + onBlur?(value: any): void; + onChange?(value: any): void; + onKeyDown?(event: any): void; + onKeyPress?(event: any): void; + onSuggestSelect?(suggest: Suggest): void; + onActivateSuggest?(suggest: Suggest): void; + onSuggestNoResults?(userInput: string): void; + getSuggestLabel?(googleSuggest: google.maps.places.AutocompletePrediction): string; + renderSuggestItem?(googleSuggest: google.maps.places.AutocompletePrediction): any; + skipSuggest?(googleSuggest: google.maps.places.AutocompletePrediction): boolean; + autoActivateFirstSuggest?: boolean; + label?: string; + suggestsClassName?: string; + suggestsHiddenClassName?: string; + suggestsItemClassName?: string; + suggestsItemActiveClassName?: string; + autoComplete?: string; +} + +export interface Styles { + input?: Record; + suggestItem?: Record; + suggests?: Record; +} + +export type QueryType + = 'establishment' + | 'geocode' + | '(cities)' + | '(regions)'; + +export interface Fixture { + className?: string; + label: string; + location?: google.maps.LatLng; +} + +export interface Suggest { + gmaps?: google.maps.GeocoderResult; + label: string; + location: {lat: string, lng: string}; + placeId: string; +} diff --git a/types/react-geosuggest/react-geosuggest-tests.tsx b/types/react-geosuggest/react-geosuggest-tests.tsx new file mode 100644 index 0000000000..ae8925965a --- /dev/null +++ b/types/react-geosuggest/react-geosuggest-tests.tsx @@ -0,0 +1,78 @@ +import * as React from "react"; +import Geosuggest, { Suggest, Styles } from "react-geosuggest"; + +const fixtures = [ + {label: "New York", location: new google.maps.LatLng(40.7033127, -73.979681)}, + {label: "Rio", location: new google.maps.LatLng(-22.066452, -42.9232368)}, + {label: "Tokyo", location: new google.maps.LatLng(35.673343, 139.710388)}, +]; + +const styles: Styles = { + input: {color: "blue"}, + suggests: {width: 4}, + suggestItem: {display: "flex"}, +}; + +function onFocus() {} +function onActivateSuggest(suggest: Suggest) {} +function getSuggestLabel(suggest: google.maps.places.AutocompletePrediction) { return 'label'; } +function renderSuggestItem(suggest: google.maps.places.AutocompletePrediction) { return
HELLO WORLD
; } +function skipSuggest(suggest: google.maps.places.AutocompletePrediction) { return false; } +function onBlur(value: string) {} +function onKeyDown(event: any) {} +function onKeyPress(event: any) {} +function onChange(value: string) {} +function onSuggestSelect(suggest: Suggest) {} +function onSuggestNoResults(userInput: string) {} + +class ReactGeosuggest extends React.Component { + private geosuggest: any; + + render() { + return ( +
+ this.geosuggest = el} + renderSuggestItem={renderSuggestItem} + skipSuggest={skipSuggest} + style={styles} + suggestsClassName="suggestsClassName" + suggestsHiddenClassName="suggestsHiddenClassName" + suggestsItemActiveClassName="suggestsItemActiveClassName" + suggestsItemClassName="suggestsItemClassName" + types={["geocode", "(regions)"]} + /> + + + + +
+ ); + } +} diff --git a/types/react-geosuggest/tsconfig.json b/types/react-geosuggest/tsconfig.json new file mode 100644 index 0000000000..3828f89f27 --- /dev/null +++ b/types/react-geosuggest/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", "dom" + ], + "jsx": "react", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-geosuggest-tests.tsx" + ] +} diff --git a/types/react-geosuggest/tslint.json b/types/react-geosuggest/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-geosuggest/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 85b9cc459fd2b6703339ba54ad029eefe963e4dd Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:11:30 +0200 Subject: [PATCH 153/166] [p-retry] introduce typings, [retry] export options interfaces, linting (#18671) --- types/p-retry/index.d.ts | 18 +++++++ types/p-retry/p-retry-tests.ts | 16 ++++++ types/p-retry/tsconfig.json | 22 ++++++++ types/p-retry/tslint.json | 1 + types/retry/index.d.ts | 91 +++++++++++++++++++--------------- types/retry/retry-tests.ts | 53 ++++++++++---------- types/retry/tslint.json | 15 +----- 7 files changed, 135 insertions(+), 81 deletions(-) create mode 100644 types/p-retry/index.d.ts create mode 100644 types/p-retry/p-retry-tests.ts create mode 100644 types/p-retry/tsconfig.json create mode 100644 types/p-retry/tslint.json diff --git a/types/p-retry/index.d.ts b/types/p-retry/index.d.ts new file mode 100644 index 0000000000..30a3b23542 --- /dev/null +++ b/types/p-retry/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for p-retry 1.0 +// Project: https://github.com/sindresorhus/p-retry#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { OperationOptions } from 'retry'; + +export = pRetry; + +declare function pRetry(input: (attemptCount: number) => PromiseLike | T, options?: OperationOptions): Promise; + +declare namespace pRetry { + class AbortError extends Error { + readonly name: 'AbortError'; + readonly originalError: Error; + constructor(message: string | Error); + } +} diff --git a/types/p-retry/p-retry-tests.ts b/types/p-retry/p-retry-tests.ts new file mode 100644 index 0000000000..72962d553e --- /dev/null +++ b/types/p-retry/p-retry-tests.ts @@ -0,0 +1,16 @@ +import pRetry = require('p-retry'); +import fetch from 'node-fetch'; + +const run = () => fetch('https://sindresorhus.com/unicorn') + .then(response => { + // abort retrying if the resource doesn't exist + if (response.status === 404) { + throw new pRetry.AbortError(response.statusText); + } + + return response.text(); + }); + +pRetry(run, {retries: 5}).then(result => { + const str: string = result; +}); diff --git a/types/p-retry/tsconfig.json b/types/p-retry/tsconfig.json new file mode 100644 index 0000000000..68f27fc4b2 --- /dev/null +++ b/types/p-retry/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-retry-tests.ts" + ] +} diff --git a/types/p-retry/tslint.json b/types/p-retry/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-retry/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/retry/index.d.ts b/types/retry/index.d.ts index 09dc603dd7..cc5e8b57ee 100644 --- a/types/retry/index.d.ts +++ b/types/retry/index.d.ts @@ -15,10 +15,7 @@ export interface RetryOperation { * * @return {void} */ - attempt(callback: (current: number) => void, options?: { - timeout?: number - callback?: () => void - }): void + attempt(callback: (current: number) => void, options?: AttemptOptions): void; /** * Returns false when no error value is given, or the maximum amount of retries has been reached. @@ -28,14 +25,14 @@ export interface RetryOperation { * * @return {boolean} */ - retry(err?: Error): boolean + retry(err?: Error): boolean; /** * The number of attempts it took to call the retrying function before it was successful. * * @return {number} */ - attempts(): number + attempts(): number; /** * A reference to the error object that occured most frequently. @@ -43,20 +40,26 @@ export interface RetryOperation { * * @return {(Error|null)} If no errors occured so far the value will be null. */ - mainError(): Error | null + mainError(): Error | null; /** * Returns an array of all errors that have been passed to RetryOperation.retry() so far. * * @return {Error[]} */ - errors(): Error[] + errors(): Error[]; /** * Stops the operation being retried. Useful for aborting the operation on a fatal error etc. */ - stop(): void + stop(): void; } + +export interface AttemptOptions { + timeout?: number; + callback?(): void; +} + /** * Create a new RetryOperation object. * @@ -70,15 +73,17 @@ export interface RetryOperation { * * @return {RetryOperation} */ -export function operation(options?: { - retries?: number - factor?: number - minTimeout?: number - maxTimeout?: number - randomize?: boolean - forever?: boolean - unref?: boolean -}): RetryOperation +export function operation(options?: OperationOptions): RetryOperation; + +export interface OperationOptions { + retries?: number; + factor?: number; + minTimeout?: number; + maxTimeout?: number; + randomize?: boolean; + forever?: boolean; + unref?: boolean; +} /** * Get an array with timeouts and their return values in milliseconds. @@ -91,13 +96,15 @@ export function operation(options?: { * * @return {number[]} */ -export function timeouts(options?: { - retries?: number - factor?: number - minTimeout?: number - maxTimeout?: number - randomize?: boolean -}): number[] +export function timeouts(options?: TimeoutsOptions): number[]; + +export interface TimeoutsOptions { + retries?: number; + factor?: number; + minTimeout?: number; + maxTimeout?: number; + randomize?: boolean; +} /** * Create a new timeout (in milliseconds) based on the given parameters. @@ -110,12 +117,14 @@ export function timeouts(options?: { * * @return {number} timeout */ -export function createTimeout(attempt: number, options?: { - factor?: number - minTimeout?: number - maxTimeout?: number - randomize?: boolean -}): number +export function createTimeout(attempt: number, options?: CreateTimeoutOptions): number; + +export interface CreateTimeoutOptions { + factor?: number; + minTimeout?: number; + maxTimeout?: number; + randomize?: boolean; +} /** * Wrap all functions of the object with retry. @@ -132,12 +141,14 @@ export function createTimeout(attempt: number, options?: { * * @return {void} */ -export function wrap(object: object, options?: { - retries?: number - factor?: number - minTimeout?: number - maxTimeout?: number - randomize?: boolean - forever?: boolean - unref?: boolean // tslint:disable-next-line:align -}, methods?: string[]): void +export function wrap(object: object, options?: WrapOptions, methods?: string[]): void; + +export interface WrapOptions { + retries?: number; + factor?: number; + minTimeout?: number; + maxTimeout?: number; + randomize?: boolean; + forever?: boolean; + unref?: boolean; +} diff --git a/types/retry/retry-tests.ts b/types/retry/retry-tests.ts index 1754d1ca62..bb5eb35976 100644 --- a/types/retry/retry-tests.ts +++ b/types/retry/retry-tests.ts @@ -1,14 +1,14 @@ -import retry = require('retry') +import retry = require('retry'); // Option values -const att = 4 -const ret = 2 -const fac = 1.5 -const min = 2000 -const max = 4000 -const rnd = false -const evr = false -const unr = false +const att = 4; +const ret = 2; +const fac = 1.5; +const min = 2000; +const max = 4000; +const rnd = false; +const evr = false; +const unr = false; // Options themselves const operationOptions = { @@ -19,14 +19,14 @@ const operationOptions = { randomize: rnd, forever: evr, unref: unr, -} +}; const timeoutOptions = { factor: fac, minTimeout: min, maxTimeout: max, randomize: rnd, -} +}; const timeoutsOptions = { retries: ret, @@ -34,40 +34,39 @@ const timeoutsOptions = { minTimeout: min, maxTimeout: max, randomize: rnd, -} +}; // Class to be wrapped later on class Foo { - public bar() { + bar() { // } - public baz() { + baz() { // } } -const operation = retry.operation(operationOptions) +const operation = retry.operation(operationOptions); operation.attempt((current) => { - const err = Math.random() >= 0.5 ? new Error('Happens to the best of us') : undefined + const err = Math.random() >= 0.5 ? new Error('Happens to the best of us') : undefined; - const retry = operation.retry(err) + const retry = operation.retry(err); if (retry) { - const after = operation.attempts() - } - else { - const errors = operation.errors() + const after = operation.attempts(); + } else { + const errors = operation.errors(); - const main = operation.mainError() + const main = operation.mainError(); } - operation.stop() -}) + operation.stop(); +}); -const timeout = retry.createTimeout(att, timeoutOptions) +const timeout = retry.createTimeout(att, timeoutOptions); -const timeouts = retry.timeouts(timeoutsOptions) +const timeouts = retry.timeouts(timeoutsOptions); -const wrap = retry.wrap(new Foo(), operationOptions, ['bar']) +const wrap = retry.wrap(new Foo(), operationOptions, ['bar']); diff --git a/types/retry/tslint.json b/types/retry/tslint.json index d2a13a49cb..3db14f85ea 100644 --- a/types/retry/tslint.json +++ b/types/retry/tslint.json @@ -1,14 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "member-access": true, - "prefer-method-signature": false, - "semicolon": false, - "one-line": { - "options": [ - "check-open-brace", - "check-whitespace" - ] - } - } -} +{ "extends": "dtslint/dt.json" } From 04d8fd056ab684b39090a894a235f3412bc2b953 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:15:32 +0200 Subject: [PATCH 154/166] [p-reduce] introduce typings (#18662) --- types/p-reduce/index.d.ts | 11 +++++++++++ types/p-reduce/p-reduce-tests.ts | 27 +++++++++++++++++++++++++++ types/p-reduce/tsconfig.json | 22 ++++++++++++++++++++++ types/p-reduce/tslint.json | 1 + 4 files changed, 61 insertions(+) create mode 100644 types/p-reduce/index.d.ts create mode 100644 types/p-reduce/p-reduce-tests.ts create mode 100644 types/p-reduce/tsconfig.json create mode 100644 types/p-reduce/tslint.json diff --git a/types/p-reduce/index.d.ts b/types/p-reduce/index.d.ts new file mode 100644 index 0000000000..6434eda06a --- /dev/null +++ b/types/p-reduce/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for p-reduce 1.0 +// Project: https://github.com/sindresorhus/p-reduce#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export = pReduce; + +declare function pReduce(input: Iterable | T>, + reducer: (previousValue: U, currentValue: T, index: number) => Promise | U, + initialValue?: U): Promise; diff --git a/types/p-reduce/p-reduce-tests.ts b/types/p-reduce/p-reduce-tests.ts new file mode 100644 index 0000000000..38b0223273 --- /dev/null +++ b/types/p-reduce/p-reduce-tests.ts @@ -0,0 +1,27 @@ +import pReduce = require('p-reduce'); + +const names = [ + Promise.resolve('sindresorhus'), + 'Addy Osmani', + 'Pascal Hartig', + 'Stephen Sawchuk' +]; + +pReduce(names, (total, name) => { + return Promise.resolve(total + 1); +}, 0).then(count => { + const num: number = count; +}); + +const names2 = [ + Promise.resolve('sindresorhus'), + 'Addy Osmani', + 'Pascal Hartig', + 5 +]; + +pReduce(names2, (allNames, name) => { + return Promise.resolve(allNames + ',' + name); +}, '').then(allNames => { + const str: string = allNames; +}); diff --git a/types/p-reduce/tsconfig.json b/types/p-reduce/tsconfig.json new file mode 100644 index 0000000000..0ae339a232 --- /dev/null +++ b/types/p-reduce/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-reduce-tests.ts" + ] +} diff --git a/types/p-reduce/tslint.json b/types/p-reduce/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-reduce/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 04f255624c3293981c71c65676124e62506f2a83 Mon Sep 17 00:00:00 2001 From: milosd92 Date: Tue, 8 Aug 2017 23:16:05 +0200 Subject: [PATCH 155/166] [snazzy-info-window] Add type definitions (#18659) --- types/snazzy-info-window/index.d.ts | 317 ++++++++++++++++++ .../snazzy-info-window-tests.ts | 170 ++++++++++ types/snazzy-info-window/tsconfig.json | 23 ++ types/snazzy-info-window/tslint.json | 1 + 4 files changed, 511 insertions(+) create mode 100644 types/snazzy-info-window/index.d.ts create mode 100644 types/snazzy-info-window/snazzy-info-window-tests.ts create mode 100644 types/snazzy-info-window/tsconfig.json create mode 100644 types/snazzy-info-window/tslint.json diff --git a/types/snazzy-info-window/index.d.ts b/types/snazzy-info-window/index.d.ts new file mode 100644 index 0000000000..6519305896 --- /dev/null +++ b/types/snazzy-info-window/index.d.ts @@ -0,0 +1,317 @@ +// Type definitions for snazzy-info-window 1.1 +// Project: https://github.com/atmist/snazzy-info-window +// Definitions by: Milos Danilov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace SnazzyInfoWindow { + type PlacementOptions = + 'top' | 'bottom' | 'left' | 'right'; + + interface Offset { + top?: string; + bottom?: string; + left?: string; + right?: string; + } + + interface EdgeOffset { + top?: number; + bottom?: number; + left?: number; + right?: number; + } + + interface Border { + width: string; + color?: string; + } + + interface Shadow { + h?: string; + v?: string; + blur?: string; + spread?: string; + opacity?: string; + color: string; + } + + interface Callbacks { + /** + * Called before the info window attempts to open. + * Return false to cancel the open. + */ + beforeOpen?(): boolean | void; + + /** + * Called when the info window is opening. + * This occurs at the end of the OverlayView onAdd() implementation. + * At this point the info window is added to the DOM but is not drawn yet. + */ + open?(): boolean | void; + + /** + * Called when the info window has opened. + * This occurs at the end of the OverlayView draw() implementation. + * At this point the info window is added to the DOM and should be visible. + */ + afterOpen?(): boolean | void; + + /** + * Called before the info window attempts to close. + * Return false to cancel the close. + */ + beforeClose?(): boolean | void; + + /** + * Called when the info window is closing. + * This occurs at the beginning of the OverlayView onRemove() implementation. + * At this point the info window is still in the DOM. + */ + close?(): boolean | void; + + /** + * Called after the info window has closed. + * This occurs at the end of the OverlayView onRemove() implementation. + * At this point the info window should be removed from the DOM. + */ + afterClose?(): boolean | void; + } + + interface InfoWindowOptions { + /** + * The Google Maps marker associated to this info window. + */ + marker?: google.maps.Marker; + + /** + * The text or DOM Element to insert into the info window body. + */ + content?: string | HTMLElement; + + /** + * Choose where you want the info window to be displayed, relative to the marker. + */ + placement?: PlacementOptions; + + /** + * The Google Map associated to this info window. + * Only required if you are not using a marker. + */ + map?: google.maps.Map; + + /** + * The latitude and longitude where the info window is anchored. + * The offset will default to 0px when using this option. + * Only required if you are not using a marker. + */ + position?: google.maps.LatLng | google.maps.LatLngLiteral; + + /** + * An optional CSS class to assign to the wrapper container of the info window. + * Can be used for applying custom CSS to the info window. + */ + wrapperClass?: string; + + /** + * The max width in pixels of the info window. + * @example 200 + */ + maxWidth?: number; + + /** + * The max height in pixels of the info window. + * @example 200 + */ + maxHeight?: number; + + /** + * The offset from the marker. + * This value should be different for each placement. + * By default the offset is configured for the default Google Maps marker. + * + * @example + * offset: { + * top: '10px', + * left: '20px' + * } + * + */ + offset?: Offset; + + /** + * The offset from the map edge in pixels which is used when panning an info window into view. + * + * @example + * edgeOffset: { + * top: 20, + * right: 20, + * bottom: 20, + * left: 20 + * } + */ + edgeOffset?: EdgeOffset; + + /** + * The color to use for the background of the info window. + * Possible Values: Any valid CSS color value. + * @example '#FF0000', 'blue' + */ + backgroundColor?: string; + + /** + * A custom padding size around the content of the info window. + * Possible Values: Any valid CSS size value. + * @example '10px', '2em', '5%' + */ + padding?: string; + + /** + * A custom border around the info window. + * Set to false to completely remove the border. + * The units used for border should be the same as pointer. + * @example + * border: { + * width: '10px', + * color: '#FF0000' + * } + */ + border?: Border | boolean; + + /** + * A custom CSS border radius property to specify the rounded corners of the info window. + * @example '2px 20px' + */ + borderRadius?: string; + + /** + * The font color to use for the content inside the body of the info window. + * Possible Values: Any valid CSS color value. + * @example '#FF0000', 'blue' + */ + fontColor?: string; + + /** + * The font size to use for the content inside the body of the info window. + * Possible Values: Any valid CSS font size value. + */ + fontSize?: string; + + /** + * The height of the pointer from the info window to the marker. + * Set to false to completely remove the pointer. + * The units used for pointer should be the same as border. + * Possible Values: Any valid CSS size value. + * @example '10px' + */ + pointer?: string | boolean; + + /** + * The CSS properties for the shadow of the info window. + * Set to false to completely remove the shadow. + * @default + * shadow: { + * h: '0px', + * v: '3px', + * blur: '6px', + * spread: '0px', + * opacity: 0.5, + * color: '#000' + * } + */ + shadow?: Shadow | boolean; + + /** + * Determines if the info window will open when the marker is clicked. + * An internal listener is added to the Google Maps click event which calls the open() method. + * @default true + */ + openOnMarkerClick?: boolean; + + /** + * Determines if the info window will close when the map is clicked. + * An internal listener is added to the Google Maps click event which calls the close() method. + * This will not activate on the Google Maps drag event when the user is panning the map. + * @default true + */ + closeOnMapClick?: boolean; + + /** + * Determines if the info window will close when any other Snazzy Info Window is opened. + * @default false + */ + closeWhenOthersOpen?: boolean; + + /** + * Determines if the info window will show a close button. + * @default true + */ + showCloseButton?: boolean; + + /** + * The text or DOM Element to replace the default close button. + * No click handler or positioning is added to your markup if you use this option. + */ + closeButtonMarkup?: boolean; + + /** + * Determines if the info window will be panned into view when opened. + * @default true + */ + panOnOpen?: boolean; + + /** + * All callbacks are optional and can access the info window instance via this. + */ + callbacks?: Callbacks; + } +} + +declare class SnazzyInfoWindow extends google.maps.OverlayView { + constructor(opts: SnazzyInfoWindow.InfoWindowOptions); + + /** + * Will attempt to open the info window. + */ + open(): void; + + /** + * Will attempt to close the info window. + */ + close(): void; + + /** + * Determines if the info window is open. + */ + isOpen(): boolean; + + /** + * Will destroy the info window. + * If the info window is open it will be forced closed bypassing the regular beforeClose callback. + * All Google Map event listeners associated to this info window will be removed. + */ + destroy(): void; + + /** + * Set the content in the info window. + * This can be called at any time. + * @param content string od DOM element + */ + setContent(content: string | HTMLElement): void; + + /** + * Set the position of the info window. + * A valid Google Map instance must be associated to the info window. + * This could be either through the marker or map option. + * @param latLng + */ + setPosition(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void; + + /** + * Will return the DOM Element for the wrapper container of the info window. + */ + getWrapper(): HTMLElement; +} + +export = SnazzyInfoWindow; diff --git a/types/snazzy-info-window/snazzy-info-window-tests.ts b/types/snazzy-info-window/snazzy-info-window-tests.ts new file mode 100644 index 0000000000..a980675887 --- /dev/null +++ b/types/snazzy-info-window/snazzy-info-window-tests.ts @@ -0,0 +1,170 @@ +import SnazzyInfoWindow = require('snazzy-info-window'); +import jQuery = require('jquery'); +import Handlebars = require('handlebars'); + +const simple = () => { + let myMap = new google.maps.Map($('.map-canvas')[0], { + zoom: 14, + center: new google.maps.LatLng(40.72, -74) + }); + + let myMarker = new google.maps.Marker({ + map: myMap, + position: new google.maps.LatLng(40.72, -74) + }); + + let info = new SnazzyInfoWindow({ + marker: myMarker, + content: 'Your snazzy content.' + }); + + info.open(); +}; + +// Multiple markers + +const multipleMarkers = () => { + interface Placement { + type: SnazzyInfoWindow.PlacementOptions; + LatLng: { + lat: number, + lng: number + }; + } + + let mapCenter = { lat: 40.72, lng: -74 }; + let myMap = new google.maps.Map($('.map-canvas')[0], { + zoom: 14, + center: mapCenter + }); + + const offsetCenter = (dx: number, dy: number) => { + return { lat: mapCenter.lat + dx, lng: mapCenter.lng + dy }; + }; + + let dx = 0.003; + let placements: Placement[] = [ + { type: 'top', LatLng: offsetCenter(dx, 0) }, + { type: 'right', LatLng: offsetCenter(0, dx) }, + { type: 'bottom', LatLng: offsetCenter(-dx, 0) }, + { type: 'left', LatLng: offsetCenter(0, -dx) } + ]; + + $.each(placements, (i: number, e: Placement) => { + let myMarker = new google.maps.Marker({ + map: myMap, + draggable: true, + position: e.LatLng + }); + + let a = e.type; + let info = new SnazzyInfoWindow({ + marker: myMarker, + placement: e.type, + content: e.type, + panOnOpen: false, + }); + info.open(); + }); +}; + +// Dynamic Content + +const dynamicContent = () => { + let myMap = new google.maps.Map($('.map-canvas')[0], { + zoom: 14, + center: new google.maps.LatLng(40.72, -74) + }); + let myMarker = new google.maps.Marker({ + map: myMap, + position: new google.maps.LatLng(40.72, -74), + draggable: true + }); + + Handlebars.registerHelper('formatDate', (date: Date) => { + return date && date.toLocaleTimeString(); + }); + + let template = Handlebars.compile($('#marker-content-template').html()); + + let interval: number = 0; + let info = new SnazzyInfoWindow({ + marker: myMarker, + callbacks: { + beforeOpen() { + info.setContent('loading...'); + }, + afterOpen() { + interval = setInterval(() => { + info.setContent(template({ + date: new Date() + })); + }, 1000); + }, + afterClose() { + if (interval) { + clearInterval(interval); + } + } + } + }); + info.open(); +}; + +// Set position + +const setPosition = () => { + let myMap = new google.maps.Map($('.map-canvas')[0], { + zoom: 14, + center: new google.maps.LatLng(40.72, -74), + clickableIcons: false + }); + + let info = new SnazzyInfoWindow({ + map: myMap, + position: new google.maps.LatLng(40.72, -74), + closeOnMapClick: false, + content: 'Click anywhere on the map to change my position!' + }); + + myMap.addListener('click', e => { + info.setPosition(e.latLng); + if (!info.isOpen()) { + info.open(); + } + }); + info.open(); +}; + +const jsStyling = () => { + let myMap = new google.maps.Map($('.map-canvas')[0], { + zoom: 14, + center: new google.maps.LatLng(40.721, -73.991) + }); + + let myMarker = new google.maps.Marker({ + map: myMap, + position: new google.maps.LatLng(40.72, -74) + }); + + let info = new SnazzyInfoWindow({ + marker: myMarker, + placement: 'right', + offset: { + left: '20px' + }, + content: '
STYLING
' + + '
WITH
' + + '
JAVASCRIPT
', + showCloseButton: false, + closeOnMapClick: false, + padding: '48px', + backgroundColor: 'rgba(0, 0, 0, 0.7)', + border: false, + borderRadius: '0px', + shadow: false, + fontColor: '#fff', + fontSize: '15px' + }); + info.open(); +}; diff --git a/types/snazzy-info-window/tsconfig.json b/types/snazzy-info-window/tsconfig.json new file mode 100644 index 0000000000..195d2a5dc0 --- /dev/null +++ b/types/snazzy-info-window/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "snazzy-info-window-tests.ts" + ] +} diff --git a/types/snazzy-info-window/tslint.json b/types/snazzy-info-window/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/snazzy-info-window/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 993a6a41747aae13fc7854d5ff74bfdb1132c621 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:16:30 +0200 Subject: [PATCH 156/166] [p-every] introduce typings (#18654) * [p-every] introduce typings * [p-every] remove unnecessary TypeScript version restriction * [p-every] rename first param to match docs --- types/p-every/index.d.ts | 16 ++++++++++++++++ types/p-every/p-every-tests.ts | 26 ++++++++++++++++++++++++++ types/p-every/tsconfig.json | 22 ++++++++++++++++++++++ types/p-every/tslint.json | 1 + 4 files changed, 65 insertions(+) create mode 100644 types/p-every/index.d.ts create mode 100644 types/p-every/p-every-tests.ts create mode 100644 types/p-every/tsconfig.json create mode 100644 types/p-every/tslint.json diff --git a/types/p-every/index.d.ts b/types/p-every/index.d.ts new file mode 100644 index 0000000000..57b41f0a4e --- /dev/null +++ b/types/p-every/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for p-every 1.0 +// Project: https://github.com/kevva/p-every#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pEvery; + +declare function pEvery(input: Iterable | T>, + testFn: (element: T, index: number) => boolean | Promise, + options?: pEvery.Options): Promise; + +declare namespace pEvery { + interface Options { + concurrency?: number; + } +} diff --git a/types/p-every/p-every-tests.ts b/types/p-every/p-every-tests.ts new file mode 100644 index 0000000000..df06fdf899 --- /dev/null +++ b/types/p-every/p-every-tests.ts @@ -0,0 +1,26 @@ +import pEvery = require('p-every'); + +const places = [ + Promise.resolve('Norway'), + 'Bangkok, Thailand', + 'Berlin, Germany', + 'Tokyo, Japan' +]; + +pEvery(places, x => Promise.resolve(true)).then(result => { + const bool: boolean = result; +}); + +const places2 = [ + Promise.resolve('Norway'), + 'Bangkok, Thailand', + 'Berlin, Germany', + 5 +]; + +pEvery(places2, x => { + const strnum: string | number = x; + return Promise.resolve(true); +}, {concurrency: 2}).then(result => { + const bool: boolean = result; +}); diff --git a/types/p-every/tsconfig.json b/types/p-every/tsconfig.json new file mode 100644 index 0000000000..ff676d0105 --- /dev/null +++ b/types/p-every/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-every-tests.ts" + ] +} diff --git a/types/p-every/tslint.json b/types/p-every/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-every/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 1c6c9da401a4b574533742d91b525e897f8e5ab2 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:17:19 +0200 Subject: [PATCH 157/166] [p-some] introduce typings (#18652) --- types/p-some/index.d.ts | 21 +++++++++++++++++++++ types/p-some/p-some-tests.ts | 34 ++++++++++++++++++++++++++++++++++ types/p-some/tsconfig.json | 22 ++++++++++++++++++++++ types/p-some/tslint.json | 1 + 4 files changed, 78 insertions(+) create mode 100644 types/p-some/index.d.ts create mode 100644 types/p-some/p-some-tests.ts create mode 100644 types/p-some/tsconfig.json create mode 100644 types/p-some/tslint.json diff --git a/types/p-some/index.d.ts b/types/p-some/index.d.ts new file mode 100644 index 0000000000..6855018c7e --- /dev/null +++ b/types/p-some/index.d.ts @@ -0,0 +1,21 @@ +// Type definitions for p-some 2.0 +// Project: https://github.com/sindresorhus/p-some#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import AggregateErrorModule = require('aggregate-error'); + +export = pSome; + +declare function pSome(values: Array> | Iterable>, options: pSome.Options): Promise; + +type Value = T | PromiseLike; + +declare namespace pSome { + interface Options { + count: number; + filter?(value: T): boolean; + } + + const AggregateError: typeof AggregateErrorModule; +} diff --git a/types/p-some/p-some-tests.ts b/types/p-some/p-some-tests.ts new file mode 100644 index 0000000000..0b8a7c8148 --- /dev/null +++ b/types/p-some/p-some-tests.ts @@ -0,0 +1,34 @@ +import got = require('got'); +import pSome = require('p-some'); + +pSome([ + got.head('github.com').then(() => 'github'), + got.head('google.com').then(() => 'google'), + got.head('twitter.com').then(() => 'twitter'), + got.head('medium.com').then(() => 'medium') +], {count: 2}).then(([first, second]) => { + console.log(first, second); +}); + +pSome([ + got.head('github.com').then(() => 1), + got.head('google.com').then(() => 'google'), +], {count: 2}).then(([first, second]) => { + const str: string | number = first; +}); + +pSome(new Set([ + got.head('github.com').then(() => 'github'), + got.head('google.com').then(() => 'google'), + got.head('twitter.com').then(() => 'twitter'), + got.head('medium.com').then(() => 'medium') +]), { + count: 3, + filter(str: string) { + return false; + } +}).then(first => { + let str: string[] = first; +}); + +throw new pSome.AggregateError([]); diff --git a/types/p-some/tsconfig.json b/types/p-some/tsconfig.json new file mode 100644 index 0000000000..1cf89e7d11 --- /dev/null +++ b/types/p-some/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-some-tests.ts" + ] +} diff --git a/types/p-some/tslint.json b/types/p-some/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-some/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 2fc13d9e70be882fcfbffc203fcc09ba0551ca25 Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Wed, 9 Aug 2017 05:17:49 +0800 Subject: [PATCH 158/166] [webpack-bunde-analyzer] Add type definitions (#18651) --- types/webpack-bundle-analyzer/index.d.ts | 80 +++++++++++++++++++ types/webpack-bundle-analyzer/tsconfig.json | 22 +++++ types/webpack-bundle-analyzer/tslint.json | 1 + .../webpack-bundle-analyzer-tests.ts | 25 ++++++ 4 files changed, 128 insertions(+) create mode 100644 types/webpack-bundle-analyzer/index.d.ts create mode 100644 types/webpack-bundle-analyzer/tsconfig.json create mode 100644 types/webpack-bundle-analyzer/tslint.json create mode 100644 types/webpack-bundle-analyzer/webpack-bundle-analyzer-tests.ts diff --git a/types/webpack-bundle-analyzer/index.d.ts b/types/webpack-bundle-analyzer/index.d.ts new file mode 100644 index 0000000000..c563a9e3cf --- /dev/null +++ b/types/webpack-bundle-analyzer/index.d.ts @@ -0,0 +1,80 @@ +// Type definitions for webpack-bundle-analyzer 2.9 +// Project: https://github.com/th0r/webpack-bundle-analyzer +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as webpack from 'webpack'; + +export namespace BundleAnalyzerPlugin { + interface Options { + /** + * Can be "server", "static" or "disabled". + * Defaults to "server". + * In "server" mode analyzer will start HTTP server to show bundle report. + * In "static" mode single HTML file with bundle report will be generated. + * In "disabled" mode you can use this plugin to just generate Webpack Stats JSON file by setting "generateStatsFile" to true. + */ + analyzerMode?: 'server' | 'static' | 'disabled'; + + /** + * Host that will be used in `server` mode to start HTTP server. + * Defaults to 127.0.0.1 + */ + analyzerHost?: string; + + /** + * Port that will be used in `server` mode to start HTTP server. + * Defaults to 8888 + */ + analyzerPort?: number; + + /** + * Path to bundle report file that will be generated in "static" mode. + * Relative to bundles output directory. + * Defaults to "report.html" + */ + reportFilename?: string; + + /** + * Module sizes to show in report by default. + * Should be one of "stat", "parsed" or "gzip". + * Defaults to "parsed" + */ + defaultSizes?: 'parsed' | 'stat' | 'gzip'; + + /** + * Automatically open report in default browser. + * Defaults to true + */ + openAnalyzer?: boolean; + + /** + * If true, Webpack Stats JSON file will be generated in bundles output directory. + * Defaults to false + */ + generateStatsFile?: boolean; + + /** + * Name of Webpack Stats JSON file that will be generated if generateStatsFile is true. + * Relative to bundles output directory. + * Defaults to "stats.json" + */ + statsFilename?: string; + + /** + * Options for stats.toJson() method. + * For example you can exclude sources of your modules from stats file with "source: false" option. + */ + statsOptions?: null | webpack.Stats.ToJsonOptionsObject; + + /** + * Log level. Can be "info", "warn", "error" or "silent". + * Defaults to "info" + */ + logLevel?: 'info' | 'warn' | 'error' | 'silent'; + } +} + +export class BundleAnalyzerPlugin extends webpack.Plugin { + constructor(options?: BundleAnalyzerPlugin.Options); +} diff --git a/types/webpack-bundle-analyzer/tsconfig.json b/types/webpack-bundle-analyzer/tsconfig.json new file mode 100644 index 0000000000..257de048ef --- /dev/null +++ b/types/webpack-bundle-analyzer/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "webpack-bundle-analyzer-tests.ts" + ] +} diff --git a/types/webpack-bundle-analyzer/tslint.json b/types/webpack-bundle-analyzer/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/webpack-bundle-analyzer/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/webpack-bundle-analyzer/webpack-bundle-analyzer-tests.ts b/types/webpack-bundle-analyzer/webpack-bundle-analyzer-tests.ts new file mode 100644 index 0000000000..0b5fcabcc7 --- /dev/null +++ b/types/webpack-bundle-analyzer/webpack-bundle-analyzer-tests.ts @@ -0,0 +1,25 @@ +import * as webpack from 'webpack'; +import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; + +const config: webpack.Configuration = { + plugins: [ + new BundleAnalyzerPlugin(), + new BundleAnalyzerPlugin({ + analyzerMode: 'static' + }), + new BundleAnalyzerPlugin({ + analyzerMode: 'server', + analyzerHost: '127.0.0.1', + analyzerPort: 8888, + reportFilename: 'report.html', + defaultSizes: 'parsed', + openAnalyzer: true, + generateStatsFile: true, + statsFilename: 'stats.json', + statsOptions: { + source: false + }, + logLevel: 'info' + }) + ] +}; From 01427d69a6dc469d8d3a128643b8260fcdf7128f Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Wed, 9 Aug 2017 05:20:30 +0800 Subject: [PATCH 159/166] [assets-webpack-plugin] Add type definitions (#18650) --- .../assets-webpack-plugin-tests.ts | 25 ++++++ types/assets-webpack-plugin/index.d.ts | 76 +++++++++++++++++++ types/assets-webpack-plugin/tsconfig.json | 22 ++++++ types/assets-webpack-plugin/tslint.json | 1 + 4 files changed, 124 insertions(+) create mode 100644 types/assets-webpack-plugin/assets-webpack-plugin-tests.ts create mode 100644 types/assets-webpack-plugin/index.d.ts create mode 100644 types/assets-webpack-plugin/tsconfig.json create mode 100644 types/assets-webpack-plugin/tslint.json diff --git a/types/assets-webpack-plugin/assets-webpack-plugin-tests.ts b/types/assets-webpack-plugin/assets-webpack-plugin-tests.ts new file mode 100644 index 0000000000..6851f853f2 --- /dev/null +++ b/types/assets-webpack-plugin/assets-webpack-plugin-tests.ts @@ -0,0 +1,25 @@ +import * as webpack from 'webpack'; +import * as AssetsPlugin from 'assets-webpack-plugin'; + +const config: webpack.Configuration = { + plugins: [ + new AssetsPlugin(), + new AssetsPlugin({ + filename: 'assets.json' + }), + new AssetsPlugin({ + filename: 'assets.json', + fullPath: false, + includeManifest: true, + path: '/foo/bar', + prettyPrint: true, + processOutput: (assets) => ( + 'window.assets = ' + JSON.stringify(assets) + ), + update: true, + metadata: { + meta: 'data' + }, + }) + ] +}; diff --git a/types/assets-webpack-plugin/index.d.ts b/types/assets-webpack-plugin/index.d.ts new file mode 100644 index 0000000000..660fbc6052 --- /dev/null +++ b/types/assets-webpack-plugin/index.d.ts @@ -0,0 +1,76 @@ +// Type definitions for assets-webpack-plugin 3.5 +// Project: https://github.com/sporto/assets-webpack-plugin +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import * as webpack from 'webpack'; + +declare namespace AssetsWebpackPlugin { + interface Assets { + [name: string]: { + [ext: string]: string; + }; + } + + type ProcessOutputFn = (assets: Assets) => string; + + interface Options { + /** + * Name for the created json file. + * "webpack-assets.json" by default + */ + filename?: string; + + /** + * If false the output will not include the full path of the generated file. + * true by default + */ + fullPath?: boolean; + + /** + * Inserts the manifest javascript as a text property in your assets. + * Accepts the name of your manifest chunk. + * A manifest is the last CommonChunk that only contains the webpack bootstrap code. + * This is useful for production use when you want to inline the manifest + * in your HTML skeleton for long-term caching. + * false by default + */ + includeManifest?: boolean; + + /** + * Inject metadata into the output file. All values will be injected into the key "metadata" + */ + metadata?: object; + + /** + * Path where to save the created JSON file. + * Defaults to the current directory + */ + path?: string; + + /** + * Whether to format the JSON output for readability. + * false by default + */ + prettyPrint?: boolean; + + /** + * Formats the assets output. + * Defaults to JSON.stringify + */ + processOutput?: ProcessOutputFn; + + /** + * When set to true, the output JSON file will be updated instead of overwritten. + * false by default + */ + update?: boolean; + } +} + +declare class AssetsWebpackPlugin extends webpack.Plugin { + constructor(options?: AssetsWebpackPlugin.Options); +} + +export = AssetsWebpackPlugin; diff --git a/types/assets-webpack-plugin/tsconfig.json b/types/assets-webpack-plugin/tsconfig.json new file mode 100644 index 0000000000..0d71c8ce0b --- /dev/null +++ b/types/assets-webpack-plugin/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "assets-webpack-plugin-tests.ts" + ] +} diff --git a/types/assets-webpack-plugin/tslint.json b/types/assets-webpack-plugin/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/assets-webpack-plugin/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From c2ce1e4aba538a16efc52f207ecbb6499ad76fcf Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:21:22 +0200 Subject: [PATCH 160/166] [p-one] introduce typings (#18661) --- types/p-one/index.d.ts | 16 ++++++++++++++++ types/p-one/p-one-tests.ts | 26 ++++++++++++++++++++++++++ types/p-one/tsconfig.json | 22 ++++++++++++++++++++++ types/p-one/tslint.json | 1 + 4 files changed, 65 insertions(+) create mode 100644 types/p-one/index.d.ts create mode 100644 types/p-one/p-one-tests.ts create mode 100644 types/p-one/tsconfig.json create mode 100644 types/p-one/tslint.json diff --git a/types/p-one/index.d.ts b/types/p-one/index.d.ts new file mode 100644 index 0000000000..14408b4cd7 --- /dev/null +++ b/types/p-one/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for p-one 1.0 +// Project: https://github.com/kevva/p-one#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pOne; + +declare function pOne(input: Iterable | T>, + testFn: (element: T, index: number) => boolean | Promise, + options?: pOne.Options): Promise; + +declare namespace pOne { + interface Options { + concurrency?: number; + } +} diff --git a/types/p-one/p-one-tests.ts b/types/p-one/p-one-tests.ts new file mode 100644 index 0000000000..99c2536dec --- /dev/null +++ b/types/p-one/p-one-tests.ts @@ -0,0 +1,26 @@ +import pOne = require('p-one'); + +const places = [ + Promise.resolve('Norway'), + 'Bangkok, Thailand', + 'Berlin, Germany', + 'Tokyo, Japan' +]; + +pOne(places, x => Promise.resolve(true)).then(result => { + const bool: boolean = result; +}); + +const places2 = [ + Promise.resolve('Norway'), + 'Bangkok, Thailand', + 'Berlin, Germany', + 5 +]; + +pOne(places2, x => { + const strnum: string | number = x; + return Promise.resolve(true); +}, {concurrency: 2}).then(result => { + const bool: boolean = result; +}); diff --git a/types/p-one/tsconfig.json b/types/p-one/tsconfig.json new file mode 100644 index 0000000000..4b4e97dcc9 --- /dev/null +++ b/types/p-one/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-one-tests.ts" + ] +} diff --git a/types/p-one/tslint.json b/types/p-one/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-one/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 26223f00d77ef877b4a4b656bdcad3274b2bd312 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 8 Aug 2017 23:21:43 +0200 Subject: [PATCH 161/166] [p-debounce] introduce typings (#18678) --- types/p-debounce/index.d.ts | 45 ++++++++++++++++++++++++++++ types/p-debounce/p-debounce-tests.ts | 26 ++++++++++++++++ types/p-debounce/tsconfig.json | 22 ++++++++++++++ types/p-debounce/tslint.json | 1 + 4 files changed, 94 insertions(+) create mode 100644 types/p-debounce/index.d.ts create mode 100644 types/p-debounce/p-debounce-tests.ts create mode 100644 types/p-debounce/tsconfig.json create mode 100644 types/p-debounce/tslint.json diff --git a/types/p-debounce/index.d.ts b/types/p-debounce/index.d.ts new file mode 100644 index 0000000000..4a18903762 --- /dev/null +++ b/types/p-debounce/index.d.ts @@ -0,0 +1,45 @@ +// Type definitions for p-debounce 1.0 +// Project: https://github.com/sindresorhus/p-debounce#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = pDebounce; + +declare function pDebounce(fn: () => PromiseLike | R, wait: number, options?: pDebounce.Options): (() => Promise) & { abort(): void; }; +declare function pDebounce(fn: (arg1: T1) => PromiseLike | R, wait: number, options?: pDebounce.Options): ((arg1: T1) => Promise) & { abort(): void; }; +declare function pDebounce(fn: (arg1: T1, arg2: T2) => PromiseLike | R, wait: number, options?: pDebounce.Options): ((arg1: T1, arg2: T2) => Promise) & { abort(): void; }; +declare function pDebounce(fn: (arg1: T1, arg2: T2, arg3: T3) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3) => Promise) & { abort(): void; }; +declare function pDebounce(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise) & { abort(): void; }; +declare function pDebounce(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise) & { abort(): void; }; +declare function pDebounce(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise) & { abort(): void; }; +declare function pDebounce( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7) => Promise) & { abort(): void; }; +declare function pDebounce( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8) => Promise) & { abort(): void; }; +declare function pDebounce( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9) => Promise) & { abort(): void; }; +declare function pDebounce( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10) => PromiseLike | R, + wait: number, + options?: pDebounce.Options): ((arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10) => Promise) & { abort(): void; }; +declare function pDebounce(fn: (...args: any[]) => PromiseLike | R, wait: number, options?: pDebounce.Options): ((...args: any[]) => Promise) & { abort(): void; }; + +declare namespace pDebounce { + interface Options { + leading?: boolean; + } +} diff --git a/types/p-debounce/p-debounce-tests.ts b/types/p-debounce/p-debounce-tests.ts new file mode 100644 index 0000000000..5e7b7a49ac --- /dev/null +++ b/types/p-debounce/p-debounce-tests.ts @@ -0,0 +1,26 @@ +import pDebounce = require('p-debounce'); + +const expensiveCall = (input: number) => Promise.resolve(input); + +const debouncedFn = pDebounce(expensiveCall, 200); +const debouncedFn2 = pDebounce(expensiveCall, 200, {leading: true}); + +for (const i of [1, 2, 3]) { + debouncedFn(i).then(i => { + const num: number = i; + }); +} + +pDebounce(() => true, 2)(); +pDebounce((n: number, s: string) => true, 2)(1, 's'); +pDebounce((n: number, s: string, b: boolean) => true, 2)(1, 's', true); +pDebounce((n: number, s: string, b: boolean, n2: number) => true, 2)(1, 's', true, 1); +pDebounce((n: number, s: string, b: boolean, n2: number, s2: string) => true, 2)(1, 's', true, 1, 's'); +pDebounce((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean) => true, 2)(1, 's', true, 1, 's', false); +pDebounce((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number) => true, 2)(1, 's', true, 1, 's', false, 1); +pDebounce((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number) => true, 2)(1, 's', true, 1, 's', false, 1, 2); +pDebounce((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number) => true, 2)(1, 's', true, 1, 's', false, 1, 2, 3); +pDebounce((n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number, n6: number) => true, 2)(1, 's', true, 1, 's', false, 1, 2, 3, 4); +pDebounce( + (n: number, s: string, b: boolean, n2: number, s2: string, b2: boolean, n3: number, n4: number, n5: number, n6: number, s3: string) => true, + 2)(1, 's', true, 1, 's', false, 1, 2, 3, 4, 'as'); diff --git a/types/p-debounce/tsconfig.json b/types/p-debounce/tsconfig.json new file mode 100644 index 0000000000..f2057a00e0 --- /dev/null +++ b/types/p-debounce/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "p-debounce-tests.ts" + ] +} diff --git a/types/p-debounce/tslint.json b/types/p-debounce/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/p-debounce/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 4bcdebd32e7b645a49c4e5195fbe607d71c76031 Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Wed, 9 Aug 2017 00:22:46 +0300 Subject: [PATCH 162/166] Added pick-weight (#18693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Created definitions & tests for pick-weight 🎲 * Fix no-single-module --- types/pick-weight/index.d.ts | 11 +++++++++++ types/pick-weight/pick-weight-tests.ts | 6 ++++++ types/pick-weight/tsconfig.json | 22 ++++++++++++++++++++++ types/pick-weight/tslint.json | 1 + 4 files changed, 40 insertions(+) create mode 100644 types/pick-weight/index.d.ts create mode 100644 types/pick-weight/pick-weight-tests.ts create mode 100644 types/pick-weight/tsconfig.json create mode 100644 types/pick-weight/tslint.json diff --git a/types/pick-weight/index.d.ts b/types/pick-weight/index.d.ts new file mode 100644 index 0000000000..f91da7ee72 --- /dev/null +++ b/types/pick-weight/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for pick-weight 1.0 +// Project: https://github.com/mock-end/pick-weight#readme +// Definitions by: Roberts Slisans +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// Dummy function allows to avoid hard to kill or fix tslint warning +// (exporting pluginFunc will make this a non-importable module) +declare function weighted(arr: T[], weights: number[]): T; +// Let allows typescript to still use ES2015 style imports +declare let y: typeof weighted; +export = y; diff --git a/types/pick-weight/pick-weight-tests.ts b/types/pick-weight/pick-weight-tests.ts new file mode 100644 index 0000000000..5707b1c598 --- /dev/null +++ b/types/pick-weight/pick-weight-tests.ts @@ -0,0 +1,6 @@ +import * as weight from "pick-weight"; + +const x = weight(["a", "b", "c"], [1, 2, 3]); + +// Can only be applied since inferred type is string +x === "string"; diff --git a/types/pick-weight/tsconfig.json b/types/pick-weight/tsconfig.json new file mode 100644 index 0000000000..493177c8f6 --- /dev/null +++ b/types/pick-weight/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pick-weight-tests.ts" + ] +} diff --git a/types/pick-weight/tslint.json b/types/pick-weight/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pick-weight/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 8072e7b840dd637d7c33813d695e4958a58e9c44 Mon Sep 17 00:00:00 2001 From: coderslagoon Date: Tue, 8 Aug 2017 14:23:09 -0700 Subject: [PATCH 163/166] typings for private-ip (#18683) --- types/private-ip/index.d.ts | 7 +++++++ types/private-ip/private-ip-tests.ts | 7 +++++++ types/private-ip/tsconfig.json | 22 ++++++++++++++++++++++ types/private-ip/tslint.json | 1 + 4 files changed, 37 insertions(+) create mode 100644 types/private-ip/index.d.ts create mode 100644 types/private-ip/private-ip-tests.ts create mode 100644 types/private-ip/tsconfig.json create mode 100644 types/private-ip/tslint.json diff --git a/types/private-ip/index.d.ts b/types/private-ip/index.d.ts new file mode 100644 index 0000000000..abd94e62a4 --- /dev/null +++ b/types/private-ip/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for private-ip 1.0 +// Project: https://github.com/frenchbread/private-ip#readme +// Definitions by: coderslagoon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = isIpPrivate; +declare function isIpPrivate(ip: string): boolean; diff --git a/types/private-ip/private-ip-tests.ts b/types/private-ip/private-ip-tests.ts new file mode 100644 index 0000000000..fec2dab68f --- /dev/null +++ b/types/private-ip/private-ip-tests.ts @@ -0,0 +1,7 @@ +import isIpPrivate = require("private-ip"); + +isIpPrivate("127.0.0.1"); +// => true + +isIpPrivate("13.59.213.165"); +// => false diff --git a/types/private-ip/tsconfig.json b/types/private-ip/tsconfig.json new file mode 100644 index 0000000000..6a04db5f95 --- /dev/null +++ b/types/private-ip/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "private-ip-tests.ts" + ] +} diff --git a/types/private-ip/tslint.json b/types/private-ip/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/private-ip/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From a608fa5c55abbb645adcf0469e0715d0eca29e72 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 9 Aug 2017 00:24:39 +0300 Subject: [PATCH 164/166] new definition for 'react-virtual-keyboardl' (#18517) * new definition for 'react-virtual-keyboardl' * err * err * err * add examples from https://www.npmjs.com/package/react-virtual-keyboard * err --- types/react-virtual-keyboard/index.d.ts | 31 +++++++++++++++++++ .../react-virtual-keyboard-tests.tsx | 21 +++++++++++++ types/react-virtual-keyboard/tsconfig.json | 24 ++++++++++++++ types/react-virtual-keyboard/tslint.json | 1 + 4 files changed, 77 insertions(+) create mode 100644 types/react-virtual-keyboard/index.d.ts create mode 100644 types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx create mode 100644 types/react-virtual-keyboard/tsconfig.json create mode 100644 types/react-virtual-keyboard/tslint.json diff --git a/types/react-virtual-keyboard/index.d.ts b/types/react-virtual-keyboard/index.d.ts new file mode 100644 index 0000000000..20e8669c6d --- /dev/null +++ b/types/react-virtual-keyboard/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for react-virtual-keyboard 1.0 +// Project: https://www.npmjs.com/package/react-virtual-keyboard +// Definitions by: Bogdan Surai +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +import { Component } from "react"; +import { KeyboardOptions, NavigateOptions } from "virtual-keyboard"; + +export interface ReactKeyboardOptions extends KeyboardOptions { + accepted?: undefined; // You should use KeyboardProps.onAccepted event. +} + +export type kbEvents = (event?: string | Event, keyboard?: Element, el?: Element) => void; + +export interface KeyboardProps { + name?: string; + value?: string; + options?: ReactKeyboardOptions; + onAccepted?: kbEvents; + onChange?: kbEvents; + callbackParent?: kbEvents; + placeholder?: string; +} + +export interface KeyboardState { + value: string; + className: string; +} + +export default class Keyboard extends Component { } diff --git a/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx b/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx new file mode 100644 index 0000000000..eaa1b9d80e --- /dev/null +++ b/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx @@ -0,0 +1,21 @@ +import * as React from "react"; +import Keyboard from "react-virtual-keyboard"; +import { ReactKeyboardOptions } from "react-virtual-keyboard"; + +export interface KbState { + textarea: string; +} + +export default class MyKeyboard extends React.Component<{}, KbState> { + onTextareaChanged = (newState: string) => { + this.setState({ textarea: newState }); + } + + render() { + return (); + } +} diff --git a/types/react-virtual-keyboard/tsconfig.json b/types/react-virtual-keyboard/tsconfig.json new file mode 100644 index 0000000000..bd14b36324 --- /dev/null +++ b/types/react-virtual-keyboard/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts", + "react-virtual-keyboard-tests.tsx" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "jsx": "react", + "forceConsistentCasingInFileNames": true + } +} diff --git a/types/react-virtual-keyboard/tslint.json b/types/react-virtual-keyboard/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/react-virtual-keyboard/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file From f6e30f1669065efca3e70c5c228505ffc60675b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Goetz?= Date: Tue, 8 Aug 2017 23:43:27 +0200 Subject: [PATCH 165/166] Add scope?: string to Td HTML attributes (#18381) This attribute exists on both and but is present only in currently: https://www.w3schools.com/tags/att_td_scope.asp --- types/react/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 261b8886d1..27f25ec6b0 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2911,6 +2911,7 @@ declare namespace React { colSpan?: number; headers?: string; rowSpan?: number; + scope?: string; } interface ThHTMLAttributes extends HTMLAttributes { From 7f30cbcfe956b5294ecf78deb3dfde46bac1102a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miika=20H=C3=A4nninen?= Date: Wed, 9 Aug 2017 00:46:39 +0300 Subject: [PATCH 166/166] Fix unfold step function return type (#18692) --- types/ramda/index.d.ts | 4 ++-- types/ramda/ramda-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index bcc5b732b0..5a8ea8f332 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1833,8 +1833,8 @@ declare namespace R { * to stop iteration or an array of length 2 containing the value to add to the resulting * list and the seed to be used in the next call to the iterator function. */ - unfold(fn: (seed: T) => TResult[] | boolean, seed: T): TResult[]; - unfold(fn: (seed: T) => TResult[] | boolean): (seed: T) => TResult[]; + unfold(fn: (seed: T) => [TResult, T] | false, seed: T): TResult[]; + unfold(fn: (seed: T) => [TResult, T] | false): (seed: T) => TResult[]; /** * Combines two lists into a set (i.e. no duplicates) composed of the diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 9dcdb4220e..b5fe8d0e5a 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -391,7 +391,7 @@ R.times(i, 5); R.take(2, [1, 2, 3, 4]); // => [1, 2] }); (() => { - function f(n: number) { + function f(n: number): false | [number, number] { return n > 50 ? false : [-n, n + 10]; }