Skip to content

Commit a8c5a10

Browse files
authored
fix(types): remove the Omit from generated endpoint parameter types (#694)
Fixes octokit/octokit.js#2564 Fixes #441 Fixes octokit/rest.js#108
1 parent d3086ac commit a8c5a10

File tree

2 files changed

+895
-3597
lines changed

2 files changed

+895
-3597
lines changed

scripts/update-endpoints/types.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function generateTypes() {
5252
for (const method of namespace.methods) {
5353
namespaceMethods.push(
5454
`${method.name}: {
55-
parameters: RequestParameters & Omit<Endpoints["${method.route}"]["parameters"], "baseUrl" | "headers" | "mediaType">,
55+
parameters: RequestParameters & Endpoints["${method.route}"]["parameters"],
5656
response: Endpoints["${method.route}"]["response"]
5757
}`,
5858
);

0 commit comments

Comments
 (0)