{"name":"@octokit/types","version":"13.5.1","keywords":["github","api","sdk","toolkit","typescript"],"author":{"url":"https://twitter.com/gr2m","name":"Gregor Martynus"},"license":"MIT","_id":"@octokit/types@13.5.1","homepage":"https://github.com/octokit/types.ts#readme","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"dist":{"shasum":"5685a91f295195ddfff39723b093b0df9609ce6e","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-13.5.1.tgz","fileCount":25,"integrity":"sha512-F41lGiWBKPIWPBgjSvaDXTTQptBujnozENAK3S//nj7xsFdYdirImKlBB/hTjr+Vii68SM+8jG3UJWRa6DMuDA==","signatures":[{"sig":"MEYCIQDWZfclU5g5nbgDBVqn43ZSFw7M6E/wvbu6nn1nvgnT6AIhAKrD1OLCL0QQRYKcMOkd9cRteewuLsZKkRdLkkkxza7d","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit%2ftypes@13.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":239005,"size":27125,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-13.5.1.tgz"},"type":"module","types":"dist-types/index.d.ts","gitHead":"b01e2fb9aad06b5cfdd200ad4e7875afa0138994","octokit":{"openapi-version":"16.5.0"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"repository":{"url":"git+https://github.com/octokit/types.ts.git","type":"git"},"_npmVersion":"10.5.2","description":"Shared TypeScript definitions for Octokit projects","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"@octokit/openapi-types":"^22.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typedoc":"^0.26.0","prettier":"^3.0.0","sort-keys":"^5.0.0","handlebars":"^4.7.6","lodash.set":"^4.3.2","typescript":"^5.0.0","@types/node":">= 8","pascal-case":"^4.0.0","npm-run-all2":"^6.0.0","semantic-release":"^24.0.0","@octokit/tsconfig":"^4.0.0","string-to-jsdoc-comment":"^1.0.0","json-schema-to-typescript":"^15.0.0","github-openapi-graphql-query":"^4.0.0","semantic-release-plugin-update-version-in-files":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/types_13.5.1_1727200404740_0.8785245157696022","host":"s3://npm-registry-packages"},"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":1727200404934,"maintainers":[{"name":"kfcampbell","email":"kfcampbell@github.com"},{"name":"nickfloyd","email":"nicholas.floyd.info@gmail.com"},{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokitbot","email":"security+octokitbot@github.com"}],"_cnpm_publish_time":1727200404934,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}