TypeScript Fundamentals: Learn TypeScript from Scratch
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

The Unknown Type in Typescript

In this lesson, we learn to combine the unknown type with type assertions to force callers of our functions to think about the returned type and explicitly state it.