From 256515762ec4a5a04565c7c33235def62849cc8b Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Fri, 21 Apr 2023 19:28:59 -0400 Subject: [PATCH] fix(types): make all parameters in types required for `ExtractRequestBody` Fixes #528 --- scripts/update-endpoints/templates/endpoints.ts.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-endpoints/templates/endpoints.ts.template b/scripts/update-endpoints/templates/endpoints.ts.template index b15aedd66..236db0f10 100644 --- a/scripts/update-endpoints/templates/endpoints.ts.template +++ b/scripts/update-endpoints/templates/endpoints.ts.template @@ -35,7 +35,7 @@ type ExtractRequestBody = "requestBody" extends keyof T }[keyof T["requestBody"]]; } : {}; -type ToOctokitParameters = ExtractParameters & ExtractRequestBody; +type ToOctokitParameters = ExtractParameters & ExtractRequestBody>; type RequiredPreview = T extends string ? {