{"name":"@octokit/types","description":"Shared TypeScript definitions for Octokit projects","version":"5.1.1","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":{"@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":"^9.1.0","lodash.set":"^4.3.2","npm-run-all":"^4.1.5","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.17.0","typescript":"^3.6.4"},"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@5.1.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8LDEbrxJrYiwzBrfZhoMFEq9+1o7Kg4ydiNgZt2DBU6n34iEd37qNqOkawrjJZZ6iUS5IXYf6EmGONn34YLgzw==","shasum":"f9f4fd5af0751ce9520a52c3a7353dbec155cc4f","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-5.1.1.tgz","fileCount":49,"unpackedSize":1156133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGMnRCRA9TVsSAnZWagAAr78P/2kJLjBIiP3K7YzRT1JR\n9pjwa6D3NfhWhrZ9thoRKufo0B9tTN7zdyBdtHgv+QWX3dLgaQyH6i4XAA5C\n05kHMvtNqK+7Kw1APb8Uybpxs6luhXqA5lVj3WwtZzEZYdBS3xnaPm62Y9ut\nnmu1nCnd7bGf1KI5ssXKaAFlMEEEq5o544Dqrzqvg/jdvfQFstm7u7G0zO+8\nub38pHFi/ZwQ/PpPQYp/BOWDanGzmZ9jQ/RSjSsk6ey4YNGvyRFxNBisT528\neUkuIMDiilP3VLI9goixQs6DJ6ugrRZRZjTnf0S4HmQAkaGrdu9ujK0Y+v46\niMhXDlcFba5OHBjSjNrjXNqYPwg7bDFfniDScRRbBHEiu5J8EZsUlZ/ltP/i\nz3Mxk4V1ikWVs/gYyTwFsFMnktK+LieratWOLxwlk86ZMRLAJOqFdz+oWxjF\nDrwD4T+zSf/yznadVuBrKZljPyUsyir1Wex4zDTb7Oi+++oIPlghgnxVSpGY\n7WeRT7payffIA7dTOowuVkaUx/wyaVvzAzGfQn+vhPZoKGn/0UM074h5lEfJ\nXbPgYQbqOMwxnBR2ASo0g/5ifzfbUJtvHydSC5goHVHKZq57NMkYg4tLruTK\ntLoQnT8AhKu1756BKRZiyYlWTHT4a1CBtCnLVfNhqLARt6NZTH0NKk2z0G3W\njYJZ\r\n=jJcA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMk2hL0TVN4RBMhgYM4AGUf6u63yIK8i2JBvGJG6YQxAiB4H8CSD1V+FR/b+qh36VnloRPvMn5xuEFQK0eo0SUnUQ=="}],"size":98325,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-5.1.1.tgz"},"maintainers":[{"name":"bkeepers","email":"brandon@opensoul.org"},{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokitbot","email":"octokitbot@martynus.net"}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types_5.1.1_1595460048900_0.9614981683203798"},"_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":1595460049013,"_cnpm_publish_time":1595460049013,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}