Skip to content

Commit

Permalink
fix(types): remove the Omit from generated endpoint parameter types (
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Nov 14, 2023
1 parent d3086ac commit a8c5a10
Show file tree
Hide file tree
Showing 2 changed files with 895 additions and 3,597 deletions.
2 changes: 1 addition & 1 deletion scripts/update-endpoints/types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function generateTypes() {
for (const method of namespace.methods) {
namespaceMethods.push(
`${method.name}: {
parameters: RequestParameters & Omit<Endpoints["${method.route}"]["parameters"], "baseUrl" | "headers" | "mediaType">,
parameters: RequestParameters & Endpoints["${method.route}"]["parameters"],
response: Endpoints["${method.route}"]["response"]
}`,
);
Expand Down

0 comments on commit a8c5a10

Please sign in to comment.