diff --git a/types/backbone/backbone-tests.ts b/types/backbone/backbone-tests.ts
index 7bf31f0a7b..1772ec5b89 100644
--- a/types/backbone/backbone-tests.ts
+++ b/types/backbone/backbone-tests.ts
@@ -180,6 +180,8 @@ function test_collection() {
var alphabetical = books.sortBy((book: Book): number => null);
+ var copy = books.clone();
+
let one: Book;
let models: Book[];
let bool: boolean;
diff --git a/types/backbone/index.d.ts b/types/backbone/index.d.ts
index 6475ba1e4a..04f3024e98 100644
--- a/types/backbone/index.d.ts
+++ b/types/backbone/index.d.ts
@@ -235,6 +235,7 @@ declare namespace Backbone {
**/
get(id: number|string|Model): TModel;
has(key: number|string|Model): boolean;
+ clone(): this;
create(attributes: any, options?: ModelSaveOptions): TModel;
pluck(attribute: string): any[];
push(model: TModel, options?: AddOptions): TModel;
diff --git a/types/enzyme/index.d.ts b/types/enzyme/index.d.ts
index 2b679d5f7b..bfd714fd22 100644
--- a/types/enzyme/index.d.ts
+++ b/types/enzyme/index.d.ts
@@ -54,22 +54,22 @@ export interface CommonWrapper
{
/**
* Returns whether or not the current wrapper has a node anywhere in it's render tree that looks like the one passed in.
*/
- contains(node: ReactElement | string): boolean;
+ contains(node: ReactElement | Array> | string): boolean;
/**
* Returns whether or not a given react element exists in the shallow render tree.
*/
- containsMatchingElement(node: ReactElement): boolean;
+ containsMatchingElement(node: ReactElement | Array>): boolean;
/**
* Returns whether or not all the given react elements exists in the shallow render tree
*/
- containsAllMatchingElements(nodes: Array>): boolean;
+ containsAllMatchingElements(nodes: Array> | Array>>): boolean;
/**
* Returns whether or not one of the given react elements exists in the shallow render tree.
*/
- containsAnyMatchingElements(nodes: Array>): boolean;
+ containsAnyMatchingElements(nodes: Array> | Array>>): boolean;
/**
* Returns whether or not the current render tree is equal to the given node, based on the expected value.
diff --git a/types/express-formidable/express-formidable-tests.ts b/types/express-formidable/express-formidable-tests.ts
index 91f9e34519..f508f0be95 100644
--- a/types/express-formidable/express-formidable-tests.ts
+++ b/types/express-formidable/express-formidable-tests.ts
@@ -3,7 +3,12 @@ import expform = require("express-formidable");
const app = express();
-app.use("/form1", expform());
+app.use("/form1", expform(), (req, res, next) => {
+ console.log(req.fields);
+ console.log(req.files);
+ next();
+});
+
app.use("/form2", expform({
encoding: "utf-8",
uploadDir: "./uploads",
diff --git a/types/express-formidable/index.d.ts b/types/express-formidable/index.d.ts
index f2228d2b0f..75a34d0350 100644
--- a/types/express-formidable/index.d.ts
+++ b/types/express-formidable/index.d.ts
@@ -1,10 +1,21 @@
-// Type definitions for express-formidable 1.0.0
+// Type definitions for express-formidable 1.0
// Project: https://github.com/noraesae/express-formidable
-// Definitions by: Torkild Dyvik Olsen
+// Definitions by: Torkild Dyvik Olsen , Evan Shortiss
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
-import { RequestHandler } from "express";
+import * as express from "express";
+import { Fields, Files } from "formidable";
+
+// Extend the express request object with attached formidable files and fields
+declare global {
+ namespace Express {
+ interface Request {
+ fields?: Fields;
+ files?: Files;
+ }
+ }
+}
interface ExpressFormidableOptions {
encoding?: string;
@@ -17,6 +28,8 @@ interface ExpressFormidableOptions {
multiples?: boolean;
}
-declare function ExpressFormidable(options?: ExpressFormidableOptions): RequestHandler;
+declare function ExpressFormidable(options?: ExpressFormidableOptions): express.RequestHandler;
+
+declare namespace ExpressFormidable {}
export = ExpressFormidable;
diff --git a/types/express-formidable/tsconfig.json b/types/express-formidable/tsconfig.json
index 9deeebd96f..45a7b6c12b 100644
--- a/types/express-formidable/tsconfig.json
+++ b/types/express-formidable/tsconfig.json
@@ -20,4 +20,4 @@
"index.d.ts",
"express-formidable-tests.ts"
]
-}
\ No newline at end of file
+}
diff --git a/types/express-formidable/tslint.json b/types/express-formidable/tslint.json
index a41bf5d19a..f93cf8562a 100644
--- a/types/express-formidable/tslint.json
+++ b/types/express-formidable/tslint.json
@@ -1,79 +1,3 @@
{
- "extends": "dtslint/dt.json",
- "rules": {
- "adjacent-overload-signatures": false,
- "array-type": false,
- "arrow-return-shorthand": false,
- "ban-types": false,
- "callable-types": false,
- "comment-format": false,
- "dt-header": false,
- "eofline": false,
- "export-just-namespace": false,
- "import-spacing": false,
- "interface-name": false,
- "interface-over-type-literal": false,
- "jsdoc-format": false,
- "max-line-length": false,
- "member-access": false,
- "new-parens": false,
- "no-any-union": false,
- "no-boolean-literal-compare": false,
- "no-conditional-assignment": false,
- "no-consecutive-blank-lines": false,
- "no-construct": false,
- "no-declare-current-package": false,
- "no-duplicate-imports": false,
- "no-duplicate-variable": false,
- "no-empty-interface": false,
- "no-for-in-array": false,
- "no-inferrable-types": false,
- "no-internal-module": false,
- "no-irregular-whitespace": false,
- "no-mergeable-namespace": false,
- "no-misused-new": false,
- "no-namespace": false,
- "no-object-literal-type-assertion": false,
- "no-padding": false,
- "no-redundant-jsdoc": false,
- "no-redundant-jsdoc-2": false,
- "no-redundant-undefined": false,
- "no-reference-import": false,
- "no-relative-import-in-test": false,
- "no-self-import": false,
- "no-single-declare-module": false,
- "no-string-throw": false,
- "no-unnecessary-callback-wrapper": false,
- "no-unnecessary-class": false,
- "no-unnecessary-generics": false,
- "no-unnecessary-qualifier": false,
- "no-unnecessary-type-assertion": false,
- "no-useless-files": false,
- "no-var-keyword": false,
- "no-var-requires": false,
- "no-void-expression": false,
- "no-trailing-whitespace": false,
- "object-literal-key-quotes": false,
- "object-literal-shorthand": false,
- "one-line": false,
- "one-variable-per-declaration": false,
- "only-arrow-functions": false,
- "prefer-conditional-expression": false,
- "prefer-const": false,
- "prefer-declare-function": false,
- "prefer-for-of": false,
- "prefer-method-signature": false,
- "prefer-template": false,
- "radix": false,
- "semicolon": false,
- "space-before-function-paren": false,
- "space-within-parens": false,
- "strict-export-declare-modifiers": false,
- "trim-file": false,
- "triple-equals": false,
- "typedef-whitespace": false,
- "unified-signatures": false,
- "void-return": false,
- "whitespace": false
- }
+ "extends": "dtslint/dt.json"
}
diff --git a/types/find/find-tests.ts b/types/find/find-tests.ts
new file mode 100644
index 0000000000..c6c1cd04f5
--- /dev/null
+++ b/types/find/find-tests.ts
@@ -0,0 +1,32 @@
+import * as find from "find";
+
+const stringPattern = ".d.ts";
+const regexPattern = /ts(config|lint)\.json/;
+const rootDir = ".";
+
+const emptyCb = (): void => { };
+const errorCb = (err: Error): void => { };
+const stringArrayCallback = (paths: string[]): void => { };
+const singleStringCb = (paths: string): void => { };
+
+find.file(rootDir, (dirs: string[]): void => { }).error(emptyCb); // $ExpectType void
+find.file(rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
+find.file(stringPattern, rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
+find.file(regexPattern, rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
+find.fileSync(rootDir); // $ExpectType string[]
+find.fileSync(stringPattern, rootDir); // $ExpectType string[]
+find.fileSync(regexPattern, rootDir); // $ExpectType string[]
+find.eachFile(rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
+find.eachFile(stringPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
+find.eachFile(regexPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
+
+find.dir(stringPattern, rootDir, (dirs: string[]): void => { }).error(emptyCb); // $ExpectType void
+find.dir(stringPattern, rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
+find.dir(regexPattern, rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
+find.dir(rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
+find.dirSync(rootDir); // $ExpectType string[]
+find.dirSync(stringPattern, rootDir); // $ExpectType string[]
+find.dirSync(regexPattern, rootDir); // $ExpectType string[]
+find.eachDir(rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
+find.eachDir(stringPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
+find.eachDir(regexPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
diff --git a/types/find/index.d.ts b/types/find/index.d.ts
new file mode 100644
index 0000000000..61166669db
--- /dev/null
+++ b/types/find/index.d.ts
@@ -0,0 +1,116 @@
+// Type definitions for find 0.2
+// Project: https://github.com/yuanchuan/find#readme
+// Definitions by: Andrey Lalev
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+export interface AsyncFindStream {
+ /**
+ * Handling errors in asynchronous interfaces.
+ * @param callback The callback that is called upon an error
+ */
+ error(callback: (() => void) | ((err: Error) => void)): void;
+}
+
+export interface FindEachStream {
+ /**
+ * Handling errors in asynchronous interfaces.
+ * @param callback The callback that is called upon an error
+ */
+ error(callback: (() => void) | ((err: Error) => void)): FindEachStream;
+
+ /**
+ * Detect end in find.eachfile and find.eachdir.
+ * @param callback The callback called at the end of find.eachfile and find.eachdir
+ */
+ end(callback: () => void): FindEachStream;
+}
+
+/**
+ * Find all files in a given directory asynchronously.
+ * @param root The root directory
+ * @param callback A callback that accepts an array of the found files
+ */
+export function file(root: string, callback: (files: string[]) => void): AsyncFindStream;
+
+/**
+ * Find all files that match a glob pattern in a given directory asynchronously.
+ * @param pattern The pattern to filter the files with
+ * @param root The root directory
+ * @param callback A callback that accepts an array of the found files
+ */
+export function file(pattern: string | RegExp, root: string, callback: (files: string[]) => void): AsyncFindStream;
+
+/**
+ * Find all files in a given directory asynchronously.
+ * @param root The root directory
+ * @param callback A callback that accepts each file separately
+ */
+export function eachFile(root: string, callback: (file: string) => void): FindEachStream;
+
+/**
+ * Find all files that match a glob pattern in a given directory asynchronously.
+ * @param pattern The pattern to filter the files with
+ * @param root The root directory
+ * @param callback A callback that accepts an array of the found files
+ */
+export function eachFile(pattern: string | RegExp, root: string, callback: (file: string) => void): FindEachStream;
+
+/**
+ * Find all files in a given directory synchronously.
+ * @param root The root directory
+ * @returns The files that have been found
+ */
+export function fileSync(root: string): string[];
+
+/**
+ * Find all files that match a glob pattern in a given directory synchronously.
+ * @param pattern The pattern to filter the files with
+ * @param root The root directory
+ * @returns The files that have been found
+ */
+export function fileSync(pattern: string | RegExp, root: string): string[];
+
+/**
+ * Find all directories in a given directory asynchronously.
+ * @param root The root directory
+ * @param callback A callback that accepts an array of the found directories
+ */
+export function dir(root: string, callback: (directories: string[]) => void): AsyncFindStream;
+
+/**
+ * Find all directories that match a glob pattern in a given directory asynchronously.
+ * @param pattern The pattern to filter the directories with
+ * @param root The root directory
+ * @param callback A callback that accepts an array of the found directories
+ */
+export function dir(pattern: RegExp | string, root: string, callback: (directories: string[]) => void): AsyncFindStream;
+
+/**
+ * Find all directories in a given directory synchronously.
+ * @param root The root directory
+ * @returns The directories that have been found
+ */
+export function dirSync(root: string): string[];
+
+/**
+ * Find all directories that match a glob pattern in a given directory synchronously.
+ * @param pattern The pattern to filter the directories with
+ * @param root The root directory
+ * @returns The directories that have been found
+ */
+export function dirSync(pattern: string | RegExp, root: string): string[];
+
+/**
+ * Find all directories in a given directory asynchronously.
+ * @param root The root directory
+ * @param callback A callback that accepts each of the found directories separately
+ */
+export function eachDir(root: string, callback: (directory: string) => void): FindEachStream;
+
+/**
+ * Find all directories that match a glob pattern in a given directory asynchronously.
+ * @param pattern The pattern to filter the directories with
+ * @param root The root directory
+ * @param callback A callback that accepts each of the found directories separately
+ */
+export function eachDir(pattern: string | RegExp, root: string, callback: (directory: string) => void): FindEachStream;
diff --git a/types/find/tsconfig.json b/types/find/tsconfig.json
new file mode 100644
index 0000000000..e231e78ff5
--- /dev/null
+++ b/types/find/tsconfig.json
@@ -0,0 +1,23 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "lib": [
+ "es6"
+ ],
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "strictNullChecks": true,
+ "strictFunctionTypes": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "find-tests.ts"
+ ]
+}
diff --git a/types/find/tslint.json b/types/find/tslint.json
new file mode 100644
index 0000000000..3db14f85ea
--- /dev/null
+++ b/types/find/tslint.json
@@ -0,0 +1 @@
+{ "extends": "dtslint/dt.json" }
diff --git a/types/graphql/execution/execute.d.ts b/types/graphql/execution/execute.d.ts
index 6d02b82124..c8ee7d9215 100644
--- a/types/graphql/execution/execute.d.ts
+++ b/types/graphql/execution/execute.d.ts
@@ -28,11 +28,13 @@ export interface ExecutionContext {
/**
* The result of execution. `data` is the result of executing the
- * query, `errors` is null if no errors occurred, and is a
+ * query, `extensions` represents additional metadata, `errors` is
+ * null if no errors occurred, and is a
* non-empty array if an error occurred.
*/
export interface ExecutionResult {
data?: { [key: string]: any };
+ extensions?: { [key: string]: any };
errors?: GraphQLError[];
}
diff --git a/types/graphql/index.d.ts b/types/graphql/index.d.ts
index b65245a33e..74d9224242 100644
--- a/types/graphql/index.d.ts
+++ b/types/graphql/index.d.ts
@@ -8,6 +8,7 @@
// Mikhail Novikov
// Ivan Goncharov
// Hagai Cohen
+// Ricardo Portugal
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
diff --git a/types/gulp-clean-dest/gulp-clean-dest-tests.ts b/types/gulp-clean-dest/gulp-clean-dest-tests.ts
new file mode 100644
index 0000000000..22a14f7487
--- /dev/null
+++ b/types/gulp-clean-dest/gulp-clean-dest-tests.ts
@@ -0,0 +1,10 @@
+import cleanDest = require("gulp-clean-dest");
+
+const someDir = ".";
+
+// $ExpectType ReadWriteStream
+cleanDest(someDir);
+cleanDest(someDir, {});
+cleanDest(someDir, { cwd: someDir });
+cleanDest(someDir, { extension: ".ts" });
+cleanDest(someDir, { cwd: someDir, extension: ".ts" });
diff --git a/types/gulp-clean-dest/index.d.ts b/types/gulp-clean-dest/index.d.ts
new file mode 100644
index 0000000000..bbb33abad0
--- /dev/null
+++ b/types/gulp-clean-dest/index.d.ts
@@ -0,0 +1,29 @@
+// Type definitions for gulp-clean-dest 0.2
+// Project: https://github.com/clark800/gulp-clean-dest
+// Definitions by: Andrey Lalev
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+///
+
+declare namespace gulpCleanDest {
+ interface Options {
+ /**
+ * The working directory the folder is relative to.
+ */
+ cwd?: string;
+
+ /**
+ * Extension of the destination files. Useful if it differs from the original.
+ */
+ extension?: string;
+ }
+}
+
+/**
+ * Removes files from the dest directory prior to building.
+ * @param destination The name of the dest directory
+ * @param options Options for the cleaning process
+ */
+declare function gulpCleanDest(destination: string, options?: gulpCleanDest.Options): NodeJS.ReadWriteStream;
+
+export = gulpCleanDest;
diff --git a/types/gulp-clean-dest/tsconfig.json b/types/gulp-clean-dest/tsconfig.json
new file mode 100644
index 0000000000..777c860568
--- /dev/null
+++ b/types/gulp-clean-dest/tsconfig.json
@@ -0,0 +1,23 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "lib": [
+ "es6"
+ ],
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "strictNullChecks": true,
+ "strictFunctionTypes": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "gulp-clean-dest-tests.ts"
+ ]
+}
diff --git a/types/gulp-clean-dest/tslint.json b/types/gulp-clean-dest/tslint.json
new file mode 100644
index 0000000000..3db14f85ea
--- /dev/null
+++ b/types/gulp-clean-dest/tslint.json
@@ -0,0 +1 @@
+{ "extends": "dtslint/dt.json" }
diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts
index 22cecf47e8..f038846d22 100644
--- a/types/lodash/index.d.ts
+++ b/types/lodash/index.d.ts
@@ -581,64 +581,77 @@ declare namespace _ {
* @param iteratee The iteratee invoked per element.
* @returns Returns the new array of filtered values.
*/
- differenceBy(
- array: List | null | undefined,
- values?: List,
- iteratee?: ValueIteratee
- ): T[];
+ differenceBy(
+ array: List | null | undefined,
+ values: List,
+ iteratee: ValueIteratee
+ ): T1[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ array: List | null | undefined,
+ values1: List,
+ values2: List,
+ iteratee: ValueIteratee
+ ): T1[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ array: List | null | undefined,
+ values1: List,
+ values2: List,
+ values3: List,
+ iteratee: ValueIteratee
+ ): T1[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ array: List | null | undefined,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ iteratee: ValueIteratee
+ ): T1[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ array: List | null | undefined,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ values5: List,
+ iteratee: ValueIteratee
+ ): T1[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ array: List | null | undefined,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ values5: List,
+ ...values: Array | ValueIteratee>
+ ): T1[];
/**
* @see _.differenceBy
*/
differenceBy(
array: List | null | undefined,
- values1: List,
- values2: List,
- iteratee?: ValueIteratee
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- array: List | null | undefined,
- values1: List,
- values2: List,
- values3: List,
- iteratee?: ValueIteratee
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- array: List | null | undefined,
- values1: List,
- values2: List,
- values3: List,
- values4: List,
- iteratee?: ValueIteratee
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- array: List | null | undefined,
- values1: List,
- values2: List,
- values3: List,
- values4: List,
- values5: List,
- iteratee?: ValueIteratee
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- array: List | null | undefined,
- ...values: Array | ValueIteratee>
+ ...values: Array>
): T[];
}
@@ -646,64 +659,77 @@ declare namespace _ {
/**
* @see _.differenceBy
*/
- differenceBy(
- this: LoDashImplicitWrapper | null | undefined>,
- values?: List,
- iteratee?: ValueIteratee
- ): LoDashImplicitWrapper;
+ differenceBy(
+ this: LoDashImplicitWrapper | null | undefined>,
+ values: List,
+ iteratee: ValueIteratee
+ ): LoDashImplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashImplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ iteratee: ValueIteratee
+ ): LoDashImplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashImplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ iteratee: ValueIteratee
+ ): LoDashImplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashImplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ iteratee: ValueIteratee
+ ): LoDashImplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashImplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ values5: List,
+ iteratee: ValueIteratee
+ ): LoDashImplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashImplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ values5: List,
+ ...values: Array | ValueIteratee>
+ ): LoDashImplicitWrapper;
/**
* @see _.differenceBy
*/
differenceBy(
this: LoDashImplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- iteratee?: ValueIteratee
- ): LoDashImplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- this: LoDashImplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- values3: List,
- iteratee?: ValueIteratee
- ): LoDashImplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- this: LoDashImplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- values3: List,
- values4: List,
- iteratee?: ValueIteratee
- ): LoDashImplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- this: LoDashImplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- values3: List,
- values4: List,
- values5: List,
- iteratee?: ValueIteratee
- ): LoDashImplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- this: LoDashImplicitWrapper | null | undefined>,
- ...values: Array | ValueIteratee>
+ ...values: Array>
): LoDashImplicitWrapper;
}
@@ -711,64 +737,77 @@ declare namespace _ {
/**
* @see _.differenceBy
*/
- differenceBy(
- this: LoDashExplicitWrapper | null | undefined>,
- values?: List,
- iteratee?: ValueIteratee
- ): LoDashExplicitWrapper;
+ differenceBy(
+ this: LoDashExplicitWrapper | null | undefined>,
+ values: List,
+ iteratee: ValueIteratee
+ ): LoDashExplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashExplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ iteratee: ValueIteratee
+ ): LoDashExplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashExplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ iteratee: ValueIteratee
+ ): LoDashExplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashExplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ iteratee: ValueIteratee
+ ): LoDashExplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashExplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ values5: List,
+ iteratee: ValueIteratee
+ ): LoDashExplicitWrapper;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy(
+ this: LoDashExplicitWrapper | null | undefined>,
+ values1: List,
+ values2: List,
+ values3: List,
+ values4: List,
+ values5: List,
+ ...values: Array | ValueIteratee>
+ ): LoDashExplicitWrapper;
/**
* @see _.differenceBy
*/
differenceBy(
this: LoDashExplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- iteratee?: ValueIteratee
- ): LoDashExplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- this: LoDashExplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- values3: List,
- iteratee?: ValueIteratee
- ): LoDashExplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy(
- this: LoDashExplicitWrapper | null | undefined>,
- values1: List,
- values2: List,
- values3: List,
- values4: List,
- iteratee?: ValueIteratee
- ): LoDashExplicitWrapper;
-
- /**
- * @see _.differenceBy
- */
- differenceBy