Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

TypeScript Fundamentals

Implicit and Explicit Types in TypeScript thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Implicit and Explicit Types in TypeScript

In this lesson we compare implicit and explicit types in TypeScript.

Implicit types come from TypeScript inferring the type based on a variable's initial value and look just like regular JavaScript.

Explicit types are when we intentionally provide the type using a special TypeScript syntax.