i require assistance from the typesafe cult (solved)
type the keys on a
const
object while preserving their assigned values.
So like this, but I don't want to give the values a type of string[].
I want the key Activity
to literally correspond to the value 'Following', 'Likes'] as const
Is this even possible?
cause:
4 Replies
new typescript feature has you covered 😉
omg satisfies was the answer??
yep
wow ty