Pragmatic AI Labs

Reusable TypeScript 7 Code

Build in-demand skills with a full year of Coursera Plus, now $239. Save now.

Pragmatic AI Labs

Reusable TypeScript 7 Code

Alfredo Deza

Instructor: Alfredo Deza

Included with Coursera PlusLearn more

Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Type functions, callbacks and async code, and read what the compiler reports when a signature is broken

  • Write generic functions and types, and classes from syntax Node can run as written

  • Split code into ES modules and build a typed library that ships its own type files

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

November 2026

Assessments

5 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the TypeScript 7 for Beginners Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 4 modules in this course

You treat a function's types as a promise to its callers. You type parameters and return values, and see the compiler report a wrong return type, a missing argument and an optional parameter used without a check, while Node runs the same code and prints NaN or a wrong total. You use default and rest parameters, arrow functions, callbacks with a function type, functions that return nothing, and async functions that return a promise.

What's included

12 videos9 readings1 assignment

You learn why generics exist: a fixed type is too narrow and any loses the link between input and result. You write a generic function and watch the compiler infer its type from the arguments, type arrays two ways, and limit a type parameter with a constraint. You use keyof to accept only an object's keys, build a generic container type, and read the generic types you already use: arrays, promises, records and their nested error messages.

What's included

10 videos6 readings1 assignment

You write classes with fields, constructors and methods, and see what the compiler reports when a field is never set. You compare TypeScript's private with JavaScript's own private fields, and make a field read-only. Then you learn what Node removes when it runs TypeScript, why it refuses parameter properties and enums, how a compiler setting rejects the same syntax, and what to write instead: a constant object and a union type made from its values.

What's included

10 videos6 readings1 assignment

You split code across files with ES modules, import TypeScript files by their full file names, and let the compiler rewrite those imports to JavaScript when it builds. You import types on their own, keep imports exactly as written so the compiler reports what Node would refuse, and catch a typo in a configuration object. Then you build a small typed library from six modules that runs from source, builds a JavaScript and a type file per module, and proves it with its contract check.

What's included

11 videos6 readings2 assignments

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Alfredo Deza
Pragmatic AI Labs
44 Courses6,236 learners

Offered by

Explore more from Software Development

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

What brings you to Coursera today?

Frequently asked questions