How To Use a TypeScript Interface

By making pizzas for breakfast

RayRay
Better Programming
Published in
3 min readAug 16, 2022

--

Screenshot by author

An interface is a blueprint for an Object. It tells you which properties there are, which are required and optional and which type of data they hold.

TypeScript has become more popular than ever. For me, it was not love at first sight, but now we are connected. I don’t start a project without TypeScript! So if you experience the…

--

--

I’m a 🇳🇱 lead frontend developer who writes about WebDev | JavaScript | TypeScript | Vuejs | Web Components | Design Systems | NuxtJS | StencilJS | CSS