Lint lodash (#13158)

* Formatting fixes
* Replace `T[]|List<T>` with `List<T>`, since that's a supertype to `T[]`.
* Replace `T|T[]` with `Many<T>` for convenience
This commit is contained in:
Andy
2016-12-27 17:33:18 -05:00
committed by GitHub
parent 13048015ca
commit 93afca9217
5 changed files with 541 additions and 591 deletions

View File

@@ -1,7 +1,2 @@
// Type definitions for Lo-Dash 4.14
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as _ from "../index"
import * as _ from "../index";
export = _;

View File

@@ -66,6 +66,7 @@ function allModuleNames() {
"every",
"extend",
"extendWith",
"fb",
"fill",
"filter",
"find",
@@ -168,6 +169,7 @@ function allModuleNames() {
"max",
"maxBy",
"mean",
"meanBy",
"memoize",
"merge",
"mergeWith",

1108
lodash/index.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,3 @@
// Type definitions for Lo-Dash 4.14
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as _ from "../index"
import * as _ from "../index";
declare const meanBy: typeof _.meanBy;
export = meanBy;

8
lodash/tslint.json Normal file
View File

@@ -0,0 +1,8 @@
{
"extends": "../tslint.json",
"rules": {
"forbidden-types": false,
"no-empty-interface": false,
"unified-signatures": false
}
}