{"name":"@microsoft/api-extractor-model","version":"7.30.4","description":"A helper library for loading and saving the .api.json files created by API Extractor","repository":{"type":"git","url":"git+https://github.com/microsoft/rushstack.git","directory":"libraries/api-extractor-model"},"homepage":"https://api-extractor.com","main":"lib/index.js","typings":"dist/rollup.d.ts","license":"MIT","dependencies":{"@microsoft/tsdoc":"~0.15.1","@microsoft/tsdoc-config":"~0.17.1","@rushstack/node-core-library":"5.12.0"},"devDependencies":{"@rushstack/heft":"0.69.2","@rushstack/heft-node-rig":"2.7.0","@types/heft-jest":"1.0.1","@types/node":"20.17.19","local-eslint-config":"1.0.0"},"scripts":{"build":"heft build --clean","_phase:build":"heft run --only build -- --clean","_phase:test":"heft run --only test -- --clean"},"_id":"@microsoft/api-extractor-model@7.30.4","gitHead":"64d158a5d75bffdea0fdb956c753fa9fb594e11c","bugs":{"url":"https://github.com/microsoft/rushstack/issues"},"_integrity":"sha512-RobC0gyVYsd2Fao9MTKOfTdBm41P/bCMUmzS5mQ7/MoAKEqy0FOBph3JOYdq4X4BsEnMEiSHc+0NUNmdzxCpjA==","_resolved":"/tmp/88ced6796bd93527274d4014230faf7e/microsoft-api-extractor-model-7.30.4.tgz","_from":"file:microsoft-api-extractor-model-7.30.4.tgz","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-RobC0gyVYsd2Fao9MTKOfTdBm41P/bCMUmzS5mQ7/MoAKEqy0FOBph3JOYdq4X4BsEnMEiSHc+0NUNmdzxCpjA==","shasum":"54fb8d89ead9722b3d4cf0adcfd4ff29253faec5","tarball":"http://registry-npm.ywwl.com/@microsoft/api-extractor-model/download/@microsoft/api-extractor-model-7.30.4.tgz","fileCount":203,"unpackedSize":884629,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDwEs9Vo1kGlQutQfSwj4HlAXZ0pxeg2S1IIFhUqMfvRgIgUKnNvyp61cmQ6Ir7JIKkMxXt27OhsJl4FlnXZrBTLMI="}],"size":152461,"noattachment":false,"key":"/@microsoft/api-extractor-model/-/@microsoft/api-extractor-model-7.30.4.tgz"},"_npmUser":{"name":"odspnpm","email":"odspnpm@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/api-extractor-model_7.30.4_1741659183479_0.9813291431051447"},"_hasShrinkwrap":false,"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":1741659183700,"maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"odspnpm","email":"odspnpm@microsoft.com"}],"_cnpm_publish_time":1741659183700,"dist-tags":{"latest":"7.33.16"}}