File tree 2 files changed +4
-0
lines changed
scripts/update-endpoints/templates
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 (
14
14
type ExtractParameters<T> = "parameters" extends keyof T
15
15
? UnionToIntersection<
16
16
{
17
+ // query paramter might be optional
18
+ // https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
17
19
[K in keyof T["parameters"]]-?: T["parameters"][K];
18
20
}[keyof T["parameters"]]
19
21
>
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 (
14
14
type ExtractParameters < T > = "parameters" extends keyof T
15
15
? UnionToIntersection <
16
16
{
17
+ // query paramter might be optional
18
+ // https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
17
19
[ K in keyof T [ "parameters" ] ] -?: T [ "parameters" ] [ K ] ;
18
20
} [ keyof T [ "parameters" ] ]
19
21
>
You can’t perform that action at this time.
0 commit comments