{"name":"@octokit/types","description":"Shared TypeScript definitions for Octokit projects","version":"7.3.1","license":"MIT","source":"dist-src/index.js","types":"dist-types/index.d.ts","octokit":{"openapi-version":"7.11.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":"^13.9.1"},"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":"^2.0.0","handlebars":"^4.7.6","json-schema-to-typescript":"^11.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":"^19.0.3","semantic-release-plugin-update-version-in-files":"^1.0.0","sort-keys":"^4.2.0","string-to-jsdoc-comment":"^1.0.0","typedoc":"^0.23.0","typescript":"^4.0.2"},"publishConfig":{"access":"public"},"gitHead":"87928d2033fef017e9cf3707c6b4fa248cb7219f","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"homepage":"https://github.com/octokit/types.ts#readme","_id":"@octokit/types@7.3.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-Vefohn8pHGFYWbSc6du0wXMK/Pmy6h0H4lttBw5WqquEuxjdXwyYX07CeZpJDkzSzpdKxBoWRNuDJGTE+FvtqA==","shasum":"f25aa9ef3566dac48b7a8527059cfdc962013d0a","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-7.3.1.tgz","fileCount":51,"unpackedSize":228815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwTN0u/Qc6tzHZdjYCW9B0YBHjEkv8xHmIl23HXm5dgwIhAN6HJocRdR6gb7UFXqCwOc7Ug+s5CCwSSx+hI6mPL9Wp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGzP+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorKQ/9Ez+wLJ3x0Ght4ZKj+UNYLGQof9Bc7TxQ5r2Ja2+m2ovWYOxZ\r\nPDrnGdqkL7sekZU82z8/EkOITBNioLEtj1JewVXuPcNpOMWXoqiKydpXPtmU\r\n/IORq5AUU2uJKfmczul5wC7/T8JJKLpEcsx6tfvyYh/iS+IDRPqKQUQeUk4z\r\nsQoXlPQDm8kPhuMgo4PHQdvCcEo2Ja1quP5uTH4aewKco0Tcsm+lVSDqdghc\r\nmkycj2lz6Bs/tJ5Y0pFBaHvLb4aZDUs6vWdeIcG/NhvFNsB9zA2m8KcT7cqb\r\nG5OYYzXmxXipI+yS8Cfx7Yy37YIkVjRym0ZIJ99FJBsCb2MlnWUxk4M6/dGZ\r\nmGyQOxrNDLMO348Y55MwghByt187VCTe4MKTFZM/HXDyZV/+5gWz+A0aYxNk\r\ninrxvx+r/blRxibz5dmjIuDD1tq7Fy/eSi+zc8EFDRnt6DGW1oxp840WCP9l\r\nZZK74X6XPwuTgeLWk/5JIvLKTimOeqqJQjHlij7MlabTz+XpMISGovf5JZcs\r\nHEkyypmD4yHlPgqRzkEcACe362b4pw3WEKXtA9RH5D+kb3wdbYZjVz7ZhRhR\r\nyItmUqMcKmmYACO5hHNyxtsBthOTep70vQ27xZY2D/xAUQJFebDDUlCeSjGQ\r\n85kwvGNEyyPYLo8L7wd7idPgKQZ0NXMNSI4=\r\n=PhjT\r\n-----END PGP SIGNATURE-----\r\n","size":25531,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-7.3.1.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"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_7.3.1_1662727166659_0.8906832760763761"},"_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":1662727166830,"_cnpm_publish_time":1662727166830,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}