{"name":"@octokit/types","version":"15.0.2","keywords":["github","api","sdk","toolkit","typescript"],"author":{"url":"https://twitter.com/gr2m","name":"Gregor Martynus"},"license":"MIT","_id":"@octokit/types@15.0.2","maintainers":[{"name":"octokitbot","email":"security+octokitbot@github.com"}],"homepage":"https://github.com/octokit/types.ts#readme","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"dist":{"shasum":"fd0efd5af066590585abfa8f1b1167f3139578e6","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-15.0.2.tgz","fileCount":24,"integrity":"sha512-rR+5VRjhYSer7sC51krfCctQhVTmjyUMAaShfPB8mscVa8tSoLyon3coxQmXu0ahJoLVWl8dSGD/3OGZlFV44Q==","signatures":[{"sig":"MEUCIQDRvZ0Ss+RGWxmqu8DZyyMOA4VDAlkRNVP415F0XfvfhwIgHDHHIdhC0x+uBcGTDH6mxaIxhVnqG/IvcsqKwczSvMU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit%2ftypes@15.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":283998,"size":31115,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-15.0.2.tgz"},"types":"dist-types/index.d.ts","gitHead":"f5f57435769854f34bf707e81769dc94624cb423","octokit":{"openapi-version":"20.0.0"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"repository":{"url":"git+https://github.com/octokit/types.ts.git","type":"git"},"_npmVersion":"11.6.2","description":"Shared TypeScript definitions for Octokit projects","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","dependencies":{"@octokit/openapi-types":"^26.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":"^8.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":{"tmp":"tmp/types_15.0.2_1761766186763_0.4074791006686125","host":"s3://npm-registry-packages-npm-production"},"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":1761766186967,"_cnpm_publish_time":1761766186967,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}