types/lodash/readme.md
index.d.ts: this is the main file that will be imported when people do import _ from "lodash".
It references files for the lodash types.fp.d.ts: like index.d.ts, but for the functional programming variant of lodash.
See https://github.com/lodash/lodash/wiki/FP-Guide.lodash-tests.ts: contains test cases. Update these as necessary when you make a change.tsconfig.json: usually you shouldn't modify this file. However, if you add a new file, you should
probably add it to the files list in tsconfig.json.tslint.json: contains lint rules. The goal is to remove all of the rule overrides and match only the dtslint/dt.json rules.import * as flatMap from "lodash/flatMap"common directory: contains the main lodash types, split into multiple files for maintainability reasons.
These files are NOT meant to be imported directly - they should only be referenced by index.d.ts.fp directory: contains individual functions for lodash/fp. These files may be imported.
You should not modify these scripts directly - you should use a script to re-generate them (see below).scripts directory: contains code generation scripts.
npm install in this directory (it contains its own package.json).npm run generate, which re-generates all of the fp files and lowdb wrapper extensions.v3 directory: contains types for lodash v3.ts3.1 directory: contains types for typescript>=3.1.0-0 (See typesVersions in package.json), which are maintained separately from the files in the root.import * as _ from "lodash"import * as _ from "lodash/fp"import { flatMap } from "lodash"import { flatMap } from "lodash/fp"import * as flatMap from "lodash/flatMap"import * as flatMap from "lodash/fp/flatMap"import * as flatMap from "lodash.flatmap" (requires npm install lodash.flatmap)import _ = require("lodash")import _ from "lodash" (only if esModuleInterop is enabled)index.d.ts but also the template string in scripts/generate-modules.ts
since the script generates lodash.* packages which include the headers derived from the template.fp types by opening a terminal in the scripts directory and running npm run generate.
package.json, so you'll need to run npm install first if you haven't already.npm run lint lodash and make sure there are no errors.lodash/fp?
npm run lint lodash, I got an error that looks like <--- Last few GCs --->.
Test with 2.6 before that error, it means that there's an error in an older version of typescript.
The hard part is figuring out what the error is.lodash-tests.ts (either the top half or the bottom half).interface AbcObject.npm run lint lodash.