@microsoft/api-extractor
Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups
Last updated 8 days ago by odspnpm .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @microsoft/api-extractor 
SYNC missed versions from official npm registry.

@microsoft/api-extractor

API Extractor
      https://api-extractor.com/

API Extractor helps you build better TypeScript library packages. Suppose for example that your company has published an NPM package called "awesome-widgets" that exports many classes and interfaces. As developers start to depend on your library, you may encounter issues such as...

  • Accidental breaks: People keep reporting that their code won't compile after a supposedly "minor" update. To address this, you boldly propose that every awesome-widgets pull request must be approved by an experienced developer from your team. But that proves unrealistic -- nobody has time to look at every single PR! What you really need is a way to detect PRs that change API contracts, and flag them for review. That would focus attention in the right place... but how to do that?

  • Missing exports: Suppose the awesome-widgets package exports an API function AwesomeButton.draw() that requires a parameter of type DrawStyle, but you forgot to export this enum. Things seem fine at first, but when a developer tries to call that function, they discover that there's no way to specify the DrawStyle. How to avoid these oversights?

  • Accidental exports: You meant for your DrawHelper class to be kept internal, but one day you realize it's being exported. When you try to remove it, consumers complain that they're using it. How do we avoid this in the future?

  • Alpha/Beta graduation: You want to release previews of new APIs that are not ready for prime time yet. But if you did a major SemVer bump every time these definitions evolve, the villagers would be after you with torches and pitchforks! A better approach is to designate certain classes/members as alpha quality, then promote them to beta and finally to public as they mature. But how to indicate this to your consumers? (And how to detect scoping mistakes? A public function should never return a beta result.)

  • *.d.ts rollup: You webpacked your library into a nice *.js bundle file -- so why ship your typings as a messy tree of lib/*.d.ts files full of private definitions? Can't we consolidate them into a tidy *.d.ts rollup file? And if you publish internal/beta/public releases, each release type should get its own *.d.ts file with appropriate trimming. Developers building a production project don't want to see a bunch of internal and beta members in their VS Code IntelliSense!

  • Online documentation: You have faithfully annotated each TypeScript member with nice TSDoc descriptions. Now that your library has shipped, it's time to set up a nicely formatted API reference. What tool to use?

API Extractor provides an integrated, professional-quality solution for all these problems. It is invoked at build time by your toolchain and leverages the TypeScript compiler engine to:

  • Detect a project's exported API surface
  • Capture the contracts in a concise report designed to facilitate review
  • Warn about common mistakes (e.g. missing exports, inconsistent visibility, etc.)
  • Generate *.d.ts rollups with trimming according to release type
  • Output API documentation in a portable format that's easy to integrate with your content pipeline

Best of all, API Extractor is free and open source. Join the community and create a pull request!

Getting Started

For more details and support resources, please visit: https://api-extractor.com/

API documentation for this package: https://rushstack.io/pages/api/api-extractor/

Current Tags

  • 7.0.42                                ...           beta (6 months ago)
  • 7.5.0                                ...           latest (8 days ago)

238 Versions

  • 7.5.0                                ...           8 days ago
  • 7.4.7                                ...           10 days ago
  • 7.4.6                                ...           14 days ago
  • 7.4.5                                ...           19 days ago
  • 7.4.4                                ...           20 days ago
  • 7.4.3                                ...           21 days ago
  • 7.4.2                                ...           a month ago
  • 7.4.1                                ...           a month ago
  • 7.4.0                                ...           a month ago
  • 7.3.11                                ...           a month ago
  • 7.3.10                                ...           a month ago
  • 7.3.9                                ...           a month ago
  • 7.3.8                                ...           2 months ago
  • 7.3.7                                ...           2 months ago
  • 7.3.6                                ...           2 months ago
  • 7.3.5                                ...           2 months ago
  • 7.3.4                                ...           3 months ago
  • 7.3.3                                ...           3 months ago
  • 7.3.2                                ...           3 months ago
  • 7.3.1                                ...           3 months ago
  • 7.3.0                                ...           3 months ago
  • 7.2.3                                ...           3 months ago
  • 7.2.2                                ...           3 months ago
  • 7.2.1                                ...           4 months ago
  • 7.2.0                                ...           4 months ago
  • 7.1.8                                ...           4 months ago
  • 7.1.7                                ...           4 months ago
  • 7.1.6                                ...           5 months ago
  • 7.1.5                                ...           5 months ago
  • 7.1.4                                ...           5 months ago
  • 7.1.3                                ...           5 months ago
  • 7.1.2                                ...           5 months ago
  • 7.1.1                                ...           5 months ago
  • 7.1.0                                ...           6 months ago
  • 7.0.42                                ...           6 months ago
  • 7.0.41                                ...           6 months ago
  • 7.0.40                                ...           6 months ago
  • 7.0.39                                ...           6 months ago
  • 7.0.38                                ...           6 months ago
  • 7.0.37                                ...           6 months ago
  • 7.0.36                                ...           6 months ago
  • 7.0.35                                ...           6 months ago
  • 7.0.34                                ...           7 months ago
  • 7.0.33                                ...           7 months ago
  • 7.0.32                                ...           7 months ago
  • 7.0.31                                ...           7 months ago
  • 7.0.30                                ...           7 months ago
  • 7.0.29                                ...           7 months ago
  • 7.0.28                                ...           7 months ago
  • 7.0.27                                ...           7 months ago
  • 7.0.26                                ...           7 months ago
  • 7.0.25                                ...           7 months ago
  • 7.0.24                                ...           7 months ago
  • 7.0.23                                ...           7 months ago
  • 7.0.22                                ...           7 months ago
  • 7.0.21                                ...           8 months ago
  • 7.0.20                                ...           8 months ago
  • 7.0.19                                ...           8 months ago
  • 8.0.0 [deprecated]           ...           8 months ago
  • 7.0.18                                ...           8 months ago
  • 7.0.17                                ...           8 months ago
  • 7.0.16                                ...           8 months ago
  • 7.0.15                                ...           8 months ago
  • 7.0.14                                ...           8 months ago
  • 7.0.13                                ...           9 months ago
  • 7.0.12                                ...           9 months ago
  • 7.0.11                                ...           9 months ago
  • 7.0.10                                ...           9 months ago
  • 7.0.9                                ...           9 months ago
  • 7.0.8                                ...           10 months ago
  • 7.0.7                                ...           10 months ago
  • 7.0.6                                ...           10 months ago
  • 7.0.5                                ...           10 months ago
  • 7.0.4                                ...           10 months ago
  • 7.0.3                                ...           10 months ago
  • 7.0.2                                ...           10 months ago
  • 7.0.1                                ...           10 months ago
  • 7.0.0                                ...           10 months ago
  • 6.3.0                                ...           a year ago
  • 6.2.0                                ...           a year ago
  • 6.1.6                                ...           a year ago
  • 6.1.5                                ...           a year ago
  • 6.1.4                                ...           a year ago
  • 6.1.3                                ...           a year ago
  • 6.1.2                                ...           a year ago
  • 6.1.1                                ...           a year ago
  • 6.1.0                                ...           a year ago
  • 6.0.9                                ...           a year ago
  • 6.0.8                                ...           a year ago
  • 6.0.7                                ...           a year ago
  • 6.0.6                                ...           a year ago
  • 6.0.5                                ...           a year ago
  • 6.0.4                                ...           a year ago
  • 6.0.3                                ...           a year ago
  • 6.0.2                                ...           a year ago
  • 6.0.1                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.13.1                                ...           a year ago
  • 5.13.0                                ...           a year ago
  • 5.12.2                                ...           a year ago
  • 5.12.1                                ...           a year ago
  • 5.12.0                                ...           a year ago
  • 5.11.2                                ...           a year ago
  • 5.11.1                                ...           a year ago
  • 5.11.0                                ...           a year ago
  • 5.10.8                                ...           a year ago
  • 5.10.7                                ...           a year ago
  • 5.10.6                                ...           a year ago
  • 5.10.5                                ...           a year ago
  • 5.10.4                                ...           a year ago
  • 5.10.3                                ...           a year ago
  • 5.10.2                                ...           a year ago
  • 5.10.1                                ...           a year ago
  • 5.10.0                                ...           a year ago
  • 5.9.1                                ...           a year ago
  • 5.9.0                                ...           a year ago
  • 5.8.1                                ...           a year ago
  • 5.8.0                                ...           a year ago
  • 5.7.3                                ...           a year ago
  • 5.7.2                                ...           a year ago
  • 5.7.1                                ...           a year ago
  • 5.7.0                                ...           a year ago
  • 5.6.8                                ...           a year ago
  • 5.6.7                                ...           a year ago
  • 5.6.6                                ...           a year ago
  • 5.6.5                                ...           a year ago
  • 5.6.4                                ...           a year ago
  • 5.6.3                                ...           2 years ago
  • 5.6.2                                ...           2 years ago
  • 5.6.1                                ...           2 years ago
  • 5.6.0                                ...           2 years ago
  • 5.5.2                                ...           2 years ago
  • 5.5.1                                ...           2 years ago
  • 5.5.0                                ...           2 years ago
  • 5.4.0                                ...           2 years ago
  • 5.3.9                                ...           2 years ago
  • 5.3.8                                ...           2 years ago
  • 5.3.7                                ...           2 years ago
  • 5.3.6                                ...           2 years ago
  • 5.3.5                                ...           2 years ago
  • 5.3.4                                ...           2 years ago
  • 5.3.3                                ...           2 years ago
  • 5.3.2                                ...           2 years ago
  • 5.3.1                                ...           2 years ago
  • 5.3.0                                ...           2 years ago
  • 5.2.7                                ...           2 years ago
  • 5.2.6                                ...           2 years ago
  • 5.2.5                                ...           2 years ago
  • 5.2.4                                ...           2 years ago
  • 5.2.3                                ...           2 years ago
  • 5.2.2                                ...           2 years ago
  • 5.2.1                                ...           2 years ago
  • 5.2.0                                ...           2 years ago
  • 5.1.3                                ...           2 years ago
  • 5.1.2                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 4.3.7                                ...           2 years ago
  • 4.3.6                                ...           2 years ago
  • 4.3.5                                ...           2 years ago
  • 4.3.4                                ...           2 years ago
  • 4.3.3                                ...           2 years ago
  • 4.3.2                                ...           2 years ago
  • 4.3.1                                ...           2 years ago
  • 4.3.0                                ...           2 years ago
  • 4.2.6                                ...           2 years ago
  • 4.2.5                                ...           2 years ago
  • 4.2.4                                ...           2 years ago
  • 4.2.3                                ...           2 years ago
  • 4.2.2                                ...           2 years ago
  • 4.2.1                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.2                                ...           2 years ago
  • 4.1.1                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.4.2                                ...           2 years ago
  • 3.4.1                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.6                                ...           2 years ago
  • 3.2.5                                ...           2 years ago
  • 3.2.4                                ...           2 years ago
  • 3.2.3                                ...           2 years ago
  • 3.2.2                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 2.3.8                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.3.7                                ...           2 years ago
  • 2.3.6                                ...           2 years ago
  • 2.3.5                                ...           2 years ago
  • 2.3.4                                ...           2 years ago
  • 2.3.3                                ...           2 years ago
  • 2.3.2                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.10                                ...           2 years ago
  • 2.0.9                                ...           2 years ago
  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.19                                ...           3 years ago
  • 1.1.18                                ...           3 years ago
  • 1.1.17                                ...           3 years ago
  • 1.1.16                                ...           3 years ago
  • 1.1.15                                ...           3 years ago
  • 1.1.14                                ...           3 years ago
  • 1.1.13                                ...           3 years ago
  • 1.1.12                                ...           3 years ago
  • 1.1.11                                ...           3 years ago
  • 1.1.10                                ...           3 years ago
  • 1.1.9                                ...           3 years ago
  • 1.1.8                                ...           3 years ago
  • 1.1.7                                ...           3 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |