plugin-enterprise-server.js icon indicating copy to clipboard operation
plugin-enterprise-server.js copied to clipboard

feat(typescript): typescript definitions

Open gr2m opened this issue 4 years ago • 1 comments

fixes #84

  • [x] generate types
  • [ ] add types for enterprise-admin endpoints

We currently only maintain the Endpoint types for api.github.com in @octokit/types/src/generated/Endpoints.ts. Ideally we would start generating endpoint types for all GHES versions and GHAE, but that will be a bigger effort. For the time being it might be worth to figure out a workaround to unblock this pull request

gr2m avatar Jun 29 '21 04:06 gr2m

This is solved in the WIP https://github.com/octokit/octokit-next.js. No endpoints types are loaded by default, they have to be loaded explicitly, e.g. @octokit-next/types-rest-api to load endpoints for api.github.com, or @octokit-next/types-rest-api-ghec to load endpoints for GitHub Enterprise Cloud.

I'm not sure if it is worth the effort to to continue working on this PR

gr2m avatar Oct 13 '22 04:10 gr2m