Open utterances-bot opened 2 months ago
This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges.
https://ghaiklor.github.io/type-challenges-solutions/en/medium-mutable.html
Add contraints to prevent error warning:
type Mutable<T extends readonly unknown[] | {[p in any] : unknown}> = {-readonly [P in keyof T]: T[P]}
Mutable
This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges.
https://ghaiklor.github.io/type-challenges-solutions/en/medium-mutable.html