Skip to content

Commit

Permalink
fix(types): regenerate the endpoints.ts file (#532)
Browse files Browse the repository at this point in the history
Relates to #528
  • Loading branch information
nickfloyd committed Apr 27, 2023
1 parent 0d84b4d commit 1c67ed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ 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 1c67ed4

Please sign in to comment.