How to use the @microsoft/api-extractor.ApiJsonFile.loadFromFile function in @microsoft/api-extractor

To help you get started, we’ve selected a few @microsoft/api-extractor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / rushstack / apps / api-documenter / src / utils / DocItemSet.ts View on Github external
public loadApiJsonFile(apiJsonFilename: string): void {
    const apiPackage: IApiPackage = ApiJsonFile.loadFromFile(apiJsonFilename);

    const docItem: DocItem = new DocItem(apiPackage, apiPackage.name, this, undefined);
    this.docPackagesByName.set(apiPackage.name, docItem);
    this.docPackages.push(docItem);
  }