Any ideas as to how might apply TypeScript\'s Partial mapped type to an interface recursively, at the same time not breaking any keys with array return types?
The fo
You can use ts-toolbelt, it can do operations on types at any depth
In your case, it would be:
import {O} from 'ts-toolbelt'
interface User {
emailAddress: string;
verification: {
verified: boolean;
verificationCode: string;
}
activeApps: string[];
}
type optional = O.Optional
And if you want to compute it deeply (for display purposes), you can use Compute for that