{"name":"@octokit/types","description":"Shared TypeScript definitions for Octokit projects","version":"6.20.0","license":"MIT","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":"^9.1.0"},"devDependencies":{"@pika/pack":"^0.5.0","@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":"^1.0.5","handlebars":"^4.7.6","json-schema-to-typescript":"^10.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":"^17.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.21.0","typescript":"^4.0.2"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","octokit":{"openapi-version":"3.0.0"},"main":"dist-node/index.js","module":"dist-web/index.js","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"homepage":"https://github.com/octokit/types.ts#readme","_id":"@octokit/types@6.20.0","_nodeVersion":"12.22.3","_npmVersion":"7.20.0","dist":{"integrity":"sha512-mxx8EsWfdsZq6J4gYN3pRIR9Nxm2H2YqDNNW1bVkfmanN4GNXnkkrM/9c06yMuodbf8YbRrFBdh+xqwcwbNZ5g==","shasum":"653d91731be1ac4dc1572d57befcd2a30f370b16","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-6.20.0.tgz","fileCount":51,"unpackedSize":197843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+F1RCRA9TVsSAnZWagAAzFgP/05YW8ZqGWCL4oTI+99m\nDEHeMP9Zp6ZZgRXe5FVTZIOOZdbff4a20pSIvH7tQXgEZfhpkjk5jbWT8ugo\nCLN5ceVZlFwU2qMiVL/D8dra5vkYQfgUlcHLHQlCMP3hlPUmZZn9ynwP/XSa\nbcQ940vCVwvmaChFwmcr+CYemb0MHxjqfOFj5xICPrA6Z4HRLzFyysGtArFL\nIYW1fV5il9R23gFhVSwC2hR0828YrDvrmZquyUY/4ppf8GAmd539SEKFxRaN\nfHf6xj4iADDcrrNpU9dul5a+QikXZfT6no959l14J63KfGntCB3ASqUKkx6f\nhyyoVLR3YjrOqJ3N6FSVPasY2d3XVVPHf1Ai4pdpNuufDEKGVGN5YXtxTvvQ\nqF5h4+wzdYDp/R5N95O341nqK/HHQelnztrzSKIcGKLooHXgGZsnPAbE/YEs\n0ljhCdGp6SUwU7GeAlK2SN6gIADQ/HOB2dXzvfyr9LNAmb2jocLc5ZsqNu/O\nS/5RBL9BHdmL4IW900MNqqQ7g5Uf2LaT7w6t6RZy+WGJX1cPlI7A76rzFJtx\nXPPV2AlVyWhS3GVm2zM/iRtgcrr+vuR/WVa+s5ELH3qpxX4J4sUCjDBllRoM\n0aVyBdixhVN56/BlIUoP+ZlySj9+oXDMvSAQkmSWkJyDW+rYIXZWoDazEM6m\n7L6m\r\n=KckP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2F3puW79Drpu5UV12MleFCeHM6Py0FSnv6OOBL69DIgIgFpjbpJB/k46q+8S37TY1G6KKcYO7ykvQOBOkkBqAcIU="}],"size":23182,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-6.20.0.tgz"},"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokitbot","email":"octokitbot@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_6.20.0_1626889553070_0.16645534576112198"},"_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":1626889553247,"_cnpm_publish_time":1626889553247,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}