Recursively replace nullable properties with undefined/optional and viceversa:
type Nullable = {
a: string;
b: number | null;
}
type Undefineable = NullToUndefined<Nullable>;
/*{
a: string;
b: number | undefined;
}*/
This should also support nested types:
type ParentNullable = {
a: boolean | null;
b: {
a: string;
b: number | null;
}
}
type ParentUndefineable = NullToUndefined<ParentNullable>;
/*{
a: boolean | undefined;
b: {
a: string;
b: number | undefined;
}
}*/
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too