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>` (#529)

Fixes #528
  • Loading branch information
wolfy1339 authored Apr 27, 2023
1 parent 9691585 commit 0d84b4d
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 0d84b4d

Please sign in to comment.