{"name":"@octokit/types","description":"Shared TypeScript definitions for Octokit projects","version":"8.1.1","license":"MIT","source":"dist-src/index.js","types":"dist-types/index.d.ts","octokit":{"openapi-version":"8.0.1"},"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":"^14.0.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":"^3.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":"^20.0.0","semantic-release-plugin-update-version-in-files":"^1.0.0","sort-keys":"^5.0.0","string-to-jsdoc-comment":"^1.0.0","typedoc":"^0.23.0","typescript":"^4.0.2"},"publishConfig":{"access":"public"},"gitHead":"4a8998e60ff445c1a8973a7c63737fa735af963c","bugs":{"url":"https://github.com/octokit/types.ts/issues"},"homepage":"https://github.com/octokit/types.ts#readme","_id":"@octokit/types@8.1.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-7tjk+6DyhYAmei8FOEwPfGKc0VE1x56CKPJ+eE44zhDbOyMT+9yan8apfQFxo8oEFsy+0O7PiBtH8w0Yo0Y9Kw==","shasum":"92e304e0f00d563667dfdbe0ae6b52e70d5149bb","tarball":"http://registry-npm.ywwl.com/@octokit/types/download/@octokit/types-8.1.1.tgz","fileCount":51,"unpackedSize":221704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGf5WhzB+wDHcnOEz3BHJo4+6D7bkC4uCpxKeKBjqZm8AiEAt50isgPQs4HjUaa5h9ZKpP2MuqdgahuA3b8fbzIfMGI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwaZLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplYQ//UZYablQ+TqokA/T7Xg4L8j+lhAEeZig6ieG4ilefIcsMSbst\r\nzq3u91m4fTRIhnm1JERDeW5V1fMmX3FvO5zrj/T/JndmychlI5rJjtNZBgKd\r\ns7/EyZS8/ceSpaQQbsoRVQoQqSAGJ0wDogRGFr+fowiHk6jqv3xU0r91NWSM\r\n1FJ8Aqz4GhO6OQ8MYl5bDLCvCMMjv7AP3o7QLU9bJzz1ptQ13eomhaxm1fcP\r\nDu6+JkDZejbJyyZEE6TLeCRRxELxRa5Ad1cHBr56N1fxUqRCbwlFPHcrg3Px\r\nyKrTnMRstPM8Qj/MUs2ccWHLAVBY1Q5ghT9th37eJQK4m1v6kde8bfQZcFHo\r\nksdwH6Uln2CERiLKWIZdGcH0s0pxTo6M1nZ0w7QadkLMRoXmtOxBS0vuWQlx\r\n2LaI3tLXVzygJytppxg3yKL46QMSGjN3MA6O45wHe/bz9B6iHmyQS5eUe1Pl\r\npIRDye6GgrBCnLdkX4YkHxJC5OJmVfD3qo1zJyQt56XAVSvoXtJZCnSbV6Lb\r\nBuAFEU3YE94navTi1iqEn1oGtJzmmZGuR/XyXyKGYaVtDwLkcOwc156tF0vb\r\nd2+Auk5kYnNPUNcIfU81TcXVLEhUVdK5q0U5HFbAEW8uwmbEBuWBy9WlqsyV\r\nkjRJXjFh9DK1wLOJFqwU4QJXEB9UYf5H+vo=\r\n=zULY\r\n-----END PGP SIGNATURE-----\r\n","size":24710,"noattachment":false,"key":"/@octokit/types/-/@octokit/types-8.1.1.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_8.1.1_1673635403291_0.5080187593279453"},"_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":1673635403479,"_cnpm_publish_time":1673635403479,"dist-tags":{"beta":"10.1.0-beta.1","latest":"18.0.0","release-8.x":"8.2.1"}}