File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
scripts/update-endpoints/templates Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ 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
- [K in keyof T["parameters"]]: T["parameters"][K];
17
+ [K in keyof T["parameters"]]-? : T["parameters"][K];
18
18
}[keyof T["parameters"]]
19
19
>
20
20
: {};
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ 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
- [ K in keyof T [ "parameters" ] ] : T [ "parameters" ] [ K ] ;
17
+ [ K in keyof T [ "parameters" ] ] -? : T [ "parameters" ] [ K ] ;
18
18
} [ keyof T [ "parameters" ] ]
19
19
>
20
20
: { } ;
You can’t perform that action at this time.
0 commit comments