KP
TTCTheo's Typesafe Cult
•Created by KP on 1/7/2023 in #questions
Types for deep merging defaults in TS
Similar to lodash's merge defaults, the above function deep merges optional fields by using a default object. What I want is to be able to input an object with type
and get back an object with type
1 replies
TTCTheo's Typesafe Cult
•Created by KP on 1/5/2023 in #questions
Typescript doesn't show which prop should be provided

3 replies
TTCTheo's Typesafe Cult
•Created by KP on 1/2/2023 in #questions
Correct way to tell typescript object's index is not undefined when mapping over keys ?

4 replies