kliyer
kliyer
TTCTheo's Typesafe Cult
Created by kliyer on 10/5/2022 in #questions
Functions type for key of objects with specific key
Would it be better to use an accessor function then? Basically I wanna be able to pass a list of objects as a dateset and specify a property of every object to be used for the y value in the chart. That y value has to be of type number
13 replies
TTCTheo's Typesafe Cult
Created by kliyer on 10/5/2022 in #questions
Functions type for key of objects with specific key
Can you give an example where that would be a problem?
13 replies
TTCTheo's Typesafe Cult
Created by kliyer on 10/5/2022 in #questions
Functions type for key of objects with specific key
Haha I just love my typesafety. I'm just trying to get better at typescript which is why I'm trying these challenges. This was actually for my own product
13 replies
TTCTheo's Typesafe Cult
Created by kliyer on 10/5/2022 in #questions
Functions type for key of objects with specific key
Thanks, that's exactly what I needed!
13 replies