mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
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:
7
lodash/fb/index.d.ts
vendored
7
lodash/fb/index.d.ts
vendored
@@ -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 = _;
|
||||
|
||||
@@ -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
1108
lodash/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
7
lodash/meanBy/index.d.ts
vendored
7
lodash/meanBy/index.d.ts
vendored
@@ -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
8
lodash/tslint.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../tslint.json",
|
||||
"rules": {
|
||||
"forbidden-types": false,
|
||||
"no-empty-interface": false,
|
||||
"unified-signatures": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user