Skip to content

Commit d7ad4ba

Browse files
authored
fix: remove all potentially undefined parameter types (#555)
This doesn't affect the parameters themselves
1 parent 4741ef6 commit d7ad4ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/update-endpoints/templates/endpoints.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
1414
type ExtractParameters<T> = "parameters" extends keyof T
1515
? UnionToIntersection<
1616
{
17-
[K in keyof T["parameters"]]: T["parameters"][K];
17+
[K in keyof T["parameters"]]-?: T["parameters"][K];
1818
}[keyof T["parameters"]]
1919
>
2020
: {};

src/generated/Endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
1414
type ExtractParameters<T> = "parameters" extends keyof T
1515
? UnionToIntersection<
1616
{
17-
[K in keyof T["parameters"]]: T["parameters"][K];
17+
[K in keyof T["parameters"]]-?: T["parameters"][K];
1818
}[keyof T["parameters"]]
1919
>
2020
: {};

0 commit comments

Comments
 (0)