{"name":"@octokit/types","description":"Shared TypeScript definitions for Octokit projects","version":"9.2.0","license":"MIT","source":"dist-src/index.js","types":"dist-types/index.d.ts","octokit":{"openapi-version":"11.1.0"},"main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["github","api","sdk","toolkit","typescript"],"repository":{"type":"git","url":"git+https://github.com/octokit/types.ts.git"},"dependencies":{"@octokit/openapi-types":"^17.1.0"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/node":">= 8","github-openapi-graphql-query":"^4.0.0","handlebars":"^4.7.6","json-schema-to-typescript":"^12.0.0","lodash.set":"^4.3.2","npm-run-all":"^4.1.5","pascal-case":"^3.1.1","pika-plugin-merge-properties":"^1.0.6","prettier":"^2.0.0","semantic-release":"^21.0.0","semantic-release-plugin-update-version-in-files":"^1.0.0","sort-keys":"^4.2.0","string-to-jsdoc-comment":"^1.0.0","typedoc":"^0.24.0","typescript":"^5.0.0"},"publishConfig":{"access":"public"},"gitHead":"c1af6e0f3ec7be86e0befc45e966a1798a9497f1","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"homepage":"https://github.com/octokit/types.ts#readme","_id":"@octokit/types@9.2.0","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-xySzJG4noWrIBFyMu4lg4tu9vAgNg9S0aoLRONhAEz6ueyi1evBzb40HitIosaYS4XOexphG305IVcLrIX/30g==","shasum":"0358e3de070b1d43c5a8af63b9951c88a09fc9ed","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-9.2.0.tgz","fileCount":51,"unpackedSize":228998,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZCYtK4jJUjgqrvuQyHLdE7i8nSbTkWL1vD2/ywJ03jAIhANQ/YgS944inbwHsCm8d9hSWFjYWtVgt37q+fJwKor4i"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTAx5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/1A/8Cz+iNns7IxGeAdvOpYjkZPeto/ssuP312JrdGhJIRCe02LMn\r\nBThRv7cvmmtQB/cpDO/eQc3NxeKvNDMJtQ4hvzt1eRlvWqhy6E030GRM2X8+\r\nKllOaO7ASEcPkMBWHrOrZZallxEMpQRL8JIwURZSswQ8eHlAojw+zXULkisR\r\nsQqfWQVlnWNW0uGfbAAZBcGWUP7014KZMLshNIC6pFCgDRSVi4cJ8F9IWYxo\r\ncafxqjwDxtaz8VoqAtJDs3bjJqL0oVbqVnhwcOcmVt6f8Enk1hQhXCwWX6Xw\r\n3k3Ndsk/r5tzjRkQjwOw5wOtCHdHaxzUXic2QolOo09UKnbOawPQWqBdGXrz\r\nXtbukOXtB3QWk6QQ0vU+MfoGwAPorieyIK4IMUQd8ZklFLETWVzL40ZYvHvV\r\nfAEVUtsG1y2NKzJuZJsJ38fZpgTAgc1ukPz4XWvvrgJfz2JReE7f7tCXKVRE\r\nK9IfcZ7AOMtCb0yR/KHEhruCj0hKQOZpW8JF9erreXNDakWLFn1lSk9mL4FC\r\n05Pu98dASW+vrV1HCzX5Vfq40hvx/IAKGCaB2Vrokv38pd/2M8GHtydX+XUi\r\naGMlQpk6iX5Pa3S7GANx3vxJjpz8AiwGSE9bz6XIELfft7BoEDB9GEadM3Gh\r\niQvD189rczODP9ibHooTE1D2lXj7D6jvZYI=\r\n=MUm/\r\n-----END PGP SIGNATURE-----\r\n","size":25898,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-9.2.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_9.2.0_1682705529687_0.6351756769760106"},"_hasShrinkwrap":false,"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":1682705529847,"_cnpm_publish_time":1682705529847,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}