{"_id":"@octokit/types@17.0.0","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"dist":{"shasum":"c0fa4090b8d957dd9b65a511f71f87ee14037694","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-17.0.0.tgz","fileCount":24,"integrity":"sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q==","signatures":[{"sig":"MEYCIQDvL69n2K+wkPDdvcXIHDOlg8XGUmQF+MLELt667Li+5QIhAPl0E0QVkVLTEwgHfICCmTmGlIC0ZKPOOwlRWG2hlijl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDVIeACU6uhTgBMRzt/0ZiZPO0WcMJYoNuqsQNqElpjkAIgBasW5tQchP7aWqB1XOchz4k0Txe1dlDmfhx6H096EOs="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit%2ftypes@17.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":293516,"size":31745,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-17.0.0.tgz"},"name":"@octokit/types","types":"dist-types/index.d.ts","author":{"url":"https://twitter.com/gr2m","name":"Gregor Martynus"},"gitHead":"0296144cacd4d01d5f051de05e519a764b26f447","license":"MIT","octokit":{"openapi-version":"22.0.0"},"version":"17.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d8e75fb3-470f-4f99-81f2-aa7c16a99ba6"}},"homepage":"https://github.com/octokit/types.ts#readme","keywords":["github","api","sdk","toolkit","typescript"],"repository":{"url":"git+https://github.com/octokit/types.ts.git","type":"git"},"_npmVersion":"11.6.2","description":"Shared TypeScript definitions for Octokit projects","directories":{},"maintainers":[{"name":"octokitbot","email":"security+octokitbot@github.com"},{"name":"gr2m","email":"gregor@martynus.net"},{"name":"wolfy1339","email":"wolfy1339@outlook.com"}],"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"@octokit/openapi-types":"^28.0.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typedoc":"^0.28.0","prettier":"^3.0.0","sort-keys":"^6.0.0","handlebars":"^4.7.6","typescript":"^5.0.0","npm-run-all2":"^9.0.0","semantic-release":"^25.0.0","@octokit/tsconfig":"^4.0.0","github-openapi-graphql-query":"^5.0.0","semantic-release-plugin-update-version-in-files":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_17.0.0_1785593176917_0.12284534619331677"},"readme":"# types.ts\n\n> Shared TypeScript definitions for Octokit projects\n\n[![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types)\n[![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test)\n\n<!-- toc -->\n\n- [Usage](#usage)\n- [Examples](#examples)\n  - [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint)\n  - [Get response types from endpoint methods](#get-response-types-from-endpoint-methods)\n- [Contributing](#contributing)\n- [License](#license)\n\n<!-- tocstop -->\n\n## Usage\n\nSee all exported types at https://octokit.github.io/types.ts\n\n## Examples\n\n### Get parameter and response data types for a REST API endpoint\n\n```ts\nimport { Endpoints } from \"@octokit/types\";\n\ntype listUserReposParameters =\n  Endpoints[\"GET /repos/{owner}/{repo}\"][\"parameters\"];\ntype listUserReposResponse = Endpoints[\"GET /repos/{owner}/{repo}\"][\"response\"];\n\nasync function listRepos(\n  options: listUserReposParameters,\n): listUserReposResponse[\"data\"] {\n  // ...\n}\n```\n\n### Get response types from endpoint methods\n\n```ts\nimport {\n  GetResponseTypeFromEndpointMethod,\n  GetResponseDataTypeFromEndpointMethod,\n} from \"@octokit/types\";\nimport { Octokit } from \"@octokit/rest\";\n\nconst octokit = new Octokit();\ntype CreateLabelResponseType = GetResponseTypeFromEndpointMethod<\n  typeof octokit.issues.createLabel\n>;\ntype CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod<\n  typeof octokit.issues.createLabel\n>;\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1785593177003,"_cnpm_publish_time":1785593177003,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}