Skip to content

Commit

Permalink
fix(types): make all parameters in types required for `ExtractRequest…
Browse files Browse the repository at this point in the history
…Body<T>`

Fixes #528
  • Loading branch information
wolfy1339 committed Apr 21, 2023
1 parent e795680 commit 2565157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-endpoints/templates/endpoints.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type ExtractRequestBody<T> = "requestBody" extends keyof T
}[keyof T["requestBody"]];
}
: {};
type ToOctokitParameters<T> = ExtractParameters<T> & ExtractRequestBody<T>;
type ToOctokitParameters<T> = ExtractParameters<T> & ExtractRequestBody<Required<T>>;

type RequiredPreview<T> = T extends string
? {
Expand Down

0 comments on commit 2565157

Please sign in to comment.