{"_id":"@microsoft/api-extractor-model@7.33.16","tag":"latest","bugs":{"url":"https://github.com/microsoft/rushstack/issues"},"dist":{"shasum":"b411cb10fe17b78dbfae076c46ddbc7cadda1fa5","tarball":"http://registry-npm.ywwl.com/@microsoft/api-extractor-model/download/@microsoft/api-extractor-model-7.33.16.tgz","fileCount":301,"integrity":"sha512-MO61eHRI3DDieE9pxNo5xc096NGUQAIKzEPW6IhNNGU9K4EIhRSYiXfroDZX4joNkrWBMzAMp3WhbPGbHG5zHQ==","signatures":[{"sig":"MEYCIQD9W2mkoSI9yFNM06A0PYhsW2r4ymxDHVswT2hFVWqOTAIhAOoZpA0Fgltzt18dKXPksDt7LPKb2ZLAcb04KOXKtylu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCSqycDNJhC6ltjom1DQ3WsFtYyUNn11YTyeF/KONyemAIhALCUlNOEZPrzEcr9u5kwWP29I3sEVwbfLPo7amf/f4LV"}],"unpackedSize":1371063,"size":177851,"noattachment":false,"key":"/@microsoft/api-extractor-model/-/@microsoft/api-extractor-model-7.33.16.tgz"},"main":"./lib-commonjs/index.js","name":"@microsoft/api-extractor-model","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\ea163298-a463-46aa-93b7-9b6a6f135874\\microsoft-api-extractor-model-7.33.16.tgz","types":"./dist/rollup.d.ts","module":"./lib-esm/index.js","engines":{"node":">=20.9.0"},"exports":{".":{"node":"./lib-commonjs/index.js","types":"./dist/rollup.d.ts","import":"./lib-esm/index.js","require":"./lib-commonjs/index.js"},"./lib/*":{"node":"./lib-commonjs/*.js","types":"./lib-dts/*.d.ts","import":"./lib-esm/*.js","require":"./lib-commonjs/*.js"},"./package.json":"./package.json"},"license":"MIT","scripts":{"build":"heft build --clean","_phase:pack":"rush-pnpm pack","_phase:test":"heft run --only test -- --clean","_phase:build":"heft run --only build -- --clean"},"version":"7.33.16","_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"homepage":"https://api-extractor.com","_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\ea163298-a463-46aa-93b7-9b6a6f135874\\microsoft-api-extractor-model-7.33.16.tgz","_integrity":"sha512-MO61eHRI3DDieE9pxNo5xc096NGUQAIKzEPW6IhNNGU9K4EIhRSYiXfroDZX4joNkrWBMzAMp3WhbPGbHG5zHQ==","repository":{"url":"git+https://github.com/microsoft/rushstack.git","type":"git","directory":"libraries/api-extractor-model"},"description":"A helper library for loading and saving the .api.json files created by API Extractor","directories":{},"maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"},{"name":"odspnpm","email":"odspnpm@microsoft.com"}],"sideEffects":false,"_nodeVersion":"18.5.0","dependencies":{"@microsoft/tsdoc":"~0.17.0","@microsoft/tsdoc-config":"~0.18.2","@rushstack/node-core-library":"5.25.2"},"typesVersions":{"*":{"lib/*":["lib-dts/*"]}},"_hasShrinkwrap":false,"devDependencies":{"eslint":"~9.37.0","@rushstack/heft":"1.3.4","decoupled-local-node-rig":"1.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/api-extractor-model_7.33.16_1793399912606_0.7075726888065091"},"readme":"# @microsoft/api-extractor-model\n\nUse this library to read and write *.api.json files as defined by the [API Extractor](https://api-extractor.com/) tool.\nThese files are used to generate a documentation website for your TypeScript package.  The files store the\nAPI signatures and doc comments that were extracted from your package.\n\nAPI documentation for this package: https://api.rushstack.io/pages/api-extractor-model/\n\n## Example Usage\n\nThe following code sample shows how to load `example.api.json`, which would be generated by API Extractor\nwhen it analyzes a hypothetical NPM package called `example`:\n\n```ts\nimport { ApiModel, ApiPackage } from '@microsoft/api-extractor-model';\n\nconst apiModel: ApiModel = new ApiModel();\nconst apiPackage: ApiPackage = apiModel.loadPackage('example.api.json');\n\nfor (const member of apiPackage.members) {\n  console.log(member.displayName);\n}\n```\n\nThe `ApiModel` is acts as a container for various packages that are loaded and operated on as a group.\nFor example, a documentation tool may need to resolve `@link` references across different packages.\nIn this case we would load the various packages into the `ApiModel`, and then use\nthe `ApiModel.resolveDeclarationReference()` to resolve the `@link` targets.\n\nThe data structure forms a tree of various classes that start with the `Api` prefix.  The nesting hierarchy\nmight look like this:\n\n```\n- ApiModel\n  - ApiPackage\n    - ApiEntryPoint\n      - ApiClass\n        - ApiMethod\n        - ApiProperty\n      - ApiEnum\n        - ApiEnumMember\n      - ApiInterface\n        - ApiMethodSignature\n        - ApiPropertySignature\n      - ApiNamespace\n        - (ApiClass, ApiEnum, ApiInterface, ...)\n```\n\nYou can use the `ApiItem.members` property to traverse this tree.\n\nNote that the non-abstract classes (e.g. `ApiClass`, `ApiEnum`, `ApiInterface`, etc.) use\nTypeScript \"mixin\" functions (e.g. `ApiDeclaredItem`, `ApiItemContainerMixin`, etc.) to add various\nfeatures that cannot be represented as a normal inheritance chain (since TypeScript does not allow a child class\nto extend more than one base class).  The \"mixin\" is a TypeScript merged declaration with three components:\nthe function that generates a subclass, an interface that describes the members of the subclass, and\na namespace containing static members of the class.\n\n> For a complete project that uses these APIs to generate an API reference web site,\n> see the [@microsoft/api-documenter](https://www.npmjs.com/package/@microsoft/api-documenter) source code.\n\n## Links\n\n- [CHANGELOG.md](\n  https://github.com/microsoft/rushstack/blob/main/libraries/api-extractor-model/CHANGELOG.md) - Find\n  out what's new in the latest version\n- [API Reference](https://api.rushstack.io/pages/api-extractor-model/)\n\nAPI Extractor is part of the [Rush Stack](https://rushstack.io/) family of projects.\n","publish_time":1793399912759,"_cnpm_publish_time":1793399912759,"dist-tags":{"latest":"7.33.16"}}