All challenges
Recursive DeepPartial
hardadvanced-types200 XPProblem
The built-in Partial<T> only affects the top level: nested objects still require all of their fields. Implement DeepPartial<T>, a recursive mapped type that makes every property optional at every depth. Then write mergeConfig(base: Config, patch: DeepPartial<Config>): Config that deep-merges a patch over a base config with a nested server object.
Expected output
localhost:3000
falseHints
Stuck? Reveal hints one at a time.
Solution
Try solving it yourself first — revealing is always available.
Press Run in the editor — your console output is checked automatically.
No errors
Loading...
Console output appears here. Press Run or just type — the code compiles automatically.