Write MyPartial<T> without using the built-in Partial.
MyPartial<T> makes every property of T optional, and keeps everything else about it, such as readonly, the same.
type MyPartial<T> = T; // make every property of T optional // type Draft = MyPartial<{ name: string; age: number }>;// { name?: string; age?: number }The answer
Write it yourself first. Then compare it with a reference solution and the checks it passes.
Checking your sign-in…