Files
DefinitelyTyped-tools/packages/definitions-parser
Nathan Shively-Sanders f3b30c31d4 Handle EmptyStatement at top-level in global files (#635)
* Handle EmptyStatement at top-level in global files

getModuleInfo's per-node handling of top-level statements in a
non-module sourcefile forgot to include EmptyStatement.

* improve naming of test variables
2023-03-13 16:44:21 -07:00
..
2020-03-04 17:22:59 -08:00
2020-04-14 16:10:21 -07:00
2023-03-02 00:27:21 +00:00
2020-03-16 14:55:22 -07:00

definitions-parser

Extracted from types-publisher. Parts of the publisher README describe functionality of this package, but since this was previously internal API, docs are sparse. Essentially, this package is responsible for

  1. Downloading a copy of the DefinitelyTyped repository from GitHub (optional—a local copy can be used instead).
  2. Reading all definitions from that repository, doing some analysis, and caching that data in the data directory.
  3. Providing a programmatic API wrapper around that data.