{"name":"@octokit/types","version":"14.1.0","keywords":["github","api","sdk","toolkit","typescript"],"author":{"url":"https://twitter.com/gr2m","name":"Gregor Martynus"},"license":"MIT","_id":"@octokit/types@14.1.0","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":"3bf9b3a3e3b5270964a57cc9d98592ed44f840f2","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-14.1.0.tgz","fileCount":24,"integrity":"sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==","signatures":[{"sig":"MEUCIAVXcFUlr11FD/Jc/JfC16VZNr9/OJozqjmBwuHBBHtOAiEA2cExREDkUozL2oqnY5lEebSWi27SqB606YMNLP3PGAk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit%2ftypes@14.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":264734,"size":29592,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-14.1.0.tgz"},"types":"dist-types/index.d.ts","gitHead":"a7ec8303ea2c1d3aa3fa72a6c592857edfb76f45","octokit":{"openapi-version":"19.1.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":"22.15.0","dependencies":{"@octokit/openapi-types":"^25.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typedoc":"^0.28.0","prettier":"^3.0.0","sort-keys":"^5.0.0","handlebars":"^4.7.6","typescript":"^5.0.0","npm-run-all2":"^8.0.0","semantic-release":"^24.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_14.1.0_1748212665166_0.31359106759270183","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":1748212665357,"_cnpm_publish_time":1748212665357,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}