if I'm starting with a type like...
type A = {
b: B;
c: C | undefined;
};
and I want to turn that into...
type AdjustedA = {
b: B;
c?: C | undefined;
};
basically, detecting which keys represent types that would allow undefined, and then making those keys optional,
how could I do that?
it seems like you can only make all properties optional ? or make none of them optional -? by using a single mapped type. I've been trying to compose multiple mapped types and join them together, but it really feels like the wrong approach and I'm having a hard time getting it working. would be super great if there was some mystic bit of knowledge I'm missing that would make this super easy. :p