{"name":"@octokit/types","description":"Shared TypeScript definitions for Octokit projects","version":"6.0.3","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":"^1.2.0","@types/node":">= 8"},"devDependencies":{"@octokit/graphql":"^4.2.2","@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","handlebars":"^4.7.6","json-schema-to-typescript":"^10.0.0","lodash.set":"^4.3.2","npm-run-all":"^4.1.5","openapi-typescript":"^2.3.1","pascal-case":"^3.1.1","prettier":"^2.0.0","semantic-release":"^17.0.0","semantic-release-plugin-update-version-in-files":"^1.0.0","sort-keys":"^4.0.0","string-to-jsdoc-comment":"^1.0.0","typedoc":"^0.19.0","typescript":"^4.0.2"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","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.0.3","_nodeVersion":"12.19.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-6y0Emzp+uPpdC5QLzUY1YRklvqiZBMTOz2ByhXdmTFlc3lNv8Mi28dX1U1b4scNtFMUa3tkpjofNFJ5NqMJaZw==","shasum":"df21856c3690a90e332ea36e39fbf413b0a4f25d","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-6.0.3.tgz","fileCount":51,"unpackedSize":186379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyBQhCRA9TVsSAnZWagAABlMQAJrpRnOyzT0xf2+ib9xb\nDFo7pK2ltyiRlVKJMZXf2Upx5ofs5HZ40BJ+baQoHbHDMYHWdHiOMWsyMH3t\nLfZRcrpqogVwPtsAcF6HbXp2E9prnh17vfI11MZ5zk5In2AB52TqhEuN5OiC\nx8a7aIp2sxaBeYqBwzgym8K55yhNI1MUYzAn6udMWMeIkR0/ZeI93ZBs7eFk\nzMn1xZHzXCx90JuoLKijiC42rkOIAQayUnrf1/WojgNcTmHtwUwbFqtxiOTc\nR+S4BKDIXxsjRa+mgsEr99FXoKOHk3Z8HuzN3EUHqnsOsJeJfwqNgQVpst5o\nTrRNQC7eH2+PSJ9NrPb+lXzKZ834PCFjgAI+a17SW4ohilbjClxrIogh+DIT\nVtBY3/mlNag/yjsNO4oPAwBh2pyYA3X2MdZmweK28GrwsoDVWGmDKNeO8gx2\nfnEvLxGnicU4asdivTeUrY2MdLnP2cLtKv1lV+mWJBf2vTKtW2ttF+hB9si1\nJRij79alhaM2pPMQdk+iV6M1PX0T7SfuJhHiG5KDjiTlgGQBS35I97g8pMf/\nAIGoVa7MMiYczNAZ4T+E9XMYLtjym9bCP+mOwgmwg2qHHYUFD3mMswJovwTF\nnIZ8l+F66aH4c15c875NnIAkOfQWb3rpCiWm9U22UDeMxqALcKc9s5/j4xf5\n8UgR\r\n=cl0Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/HlWV+PBvBXgum6GKp+hl9FAXry3Nee/PniHu4haR5AiAgprhMi+R/4K4AUCOvY5NKtU0xTfOr7wxga+eg7jyB5w=="}],"size":23186,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-6.0.3.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.0.3_1606947873222_0.23234075526130282"},"_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":1606947873362,"_cnpm_publish_time":1606947873362,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}