Converting Record Types with Optional Values in TypeScript
Hello, I'd like to convert a record from this shape
to this shape:
Is there a function in the record module to do that ?
to this shape:
Is there a function in the record module to do that ?
{
keya: string;
keyb: number;
keyc: string | null;
keyd: string | undefined;
}{
keya: string;
keyb: number;
keyc: Option.Option<string>;
keyd: Option.Option<string>;
}