Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

5-3 Fully Typing Our Endpoint

In this lesson, we finish building our lesson endpoint by adding in all of the appropriate types.

We spend some time refining our types and moving them to a separate /types directory. This lets us use our types on both the server routes and in our composables (and anywhere else, really).

We also see how we can create a global TypeScript utility type — Maybe.

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.