api: union undefined

Set the option to generate union undefined types for objects that have
optional items. This will allow us to enable `exactOptionalPropertyTypes`
in our tsconfig [1].

[1] This is a recommended setting, see:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
This commit is contained in:
Gianluca Zuccarelli 2024-11-29 13:36:20 +00:00 committed by Lucas Garfield
parent b3b69c3653
commit bad77421ae
16 changed files with 553 additions and 523 deletions

View file

@ -56,7 +56,7 @@ export type wizardState = {
accountId: string;
shareMethod: AwsShareMethod;
source: V1ListSourceResponseItem | undefined;
sourceId?: string;
sourceId?: string | undefined;
};
azure: {
shareMethod: AzureShareMethod;