File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
scripts/update-endpoints/templates Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
1414type ExtractParameters<T> = "parameters" extends keyof T
1515 ? UnionToIntersection<
1616 {
17+ // query paramter might be optional
18+ // https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
1719 [K in keyof T["parameters"]]-?: T["parameters"][K];
1820 }[keyof T["parameters"]]
1921 >
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
1414type ExtractParameters < T > = "parameters" extends keyof T
1515 ? UnionToIntersection <
1616 {
17+ // query paramter might be optional
18+ // https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
1719 [ K in keyof T [ "parameters" ] ] -?: T [ "parameters" ] [ K ] ;
1820 } [ keyof T [ "parameters" ] ]
1921 >
You can’t perform that action at this time.
0 commit comments