Mapped types + template literal types allow you to do some incredibly cool things.

Had someone at work ask how they can take an existing type, and slam a dollar sign in front of each property to make styled components happy—preferably without manually changing everything.

Boom
Post image

Comments