The Winter Throat

I like to occasionally write articles about things that pique my interest at work, or opinions that I form over the years.
Typescript, Vue 3, and strongly typed props

Typescript, Vue 3, and strongly typed props

🇺🇸 englishJune 2022 (at 32)#javascript#writing#technology1119 words4 mnto read

I’ve recently worked on a Vue application after working for a long time with React, and more particularly with React and Typescript. While I felt right at home in Vue 3’s Composition API given how similar it feels to React Hooks, I did miss the ability to easily use Typescript purely for props validation... or so I thought. Options API versus Composition API Now I’ve known for quite some time th...

The Winter Throat

Blog

I like to occasionally write articles about things that pique my interest at work, or opinions that I form over the years.
Typescript, Vue 3, and strongly typed props

Typescript, Vue 3, and strongly typed props

🇺🇸 englishJune 2022 (at 32)#javascript#writing#technology1119 words4 mnto read

I’ve recently worked on a Vue application after working for a long time with React, and more particularly with React and Typescript. While I felt right at home in Vue 3’s Composition API given how similar it feels to React Hooks, I did miss the ability to easily use Typescript purely for props validation... or so I thought. Options API versus Composition API Now I’ve known for quite some time th...