plugin-enterprise-server.js
plugin-enterprise-server.js copied to clipboard
feat(typescript): typescript definitions
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
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