YoVDO

TypeScript Basics Course (How To)

Offered By: Treehouse

Tags

Typescript Courses Programming Courses Generics Courses

Course Description

Overview

Dive into the basics of TypeScript, an open-source programming language created by Microsoft that shares the same basic syntax as JavaScript. In this beginner course, you'll explore using, creating, and manipulating types to help you write robust and readable code.

What you'll learn

  • Create and configure a simple TypeScript project
  • Understand when and how to use utility types
  • Create custom types

Syllabus

Getting Started with TypeScript

In this stage, we'll learn what TypeScript is and create a simple TypeScript project from scratch.

Chevron 7 steps
  • Course Overview

    2:39

  • What Is TypeScript?

    6:46

  • Why Use TypeScript?

    10:08

  • Setting Up a Simple TypeScript Project

    10:19

  • Going Through the TypeScript Configuration File

    16:24

  • Primitive Types: boolean, string, and number

    11:04

  • Getting Started with TypeScript Review

    5 questions

Working with (More) Types

In this second stage of the course, we'll focus more on types -- specifically basic and utility types.

Chevron 7 steps
  • Array and Tuple Types

    11:01

  • The any, void, null, and undefined Types

    13:51

  • Using Object Types

    8:35

  • Optional Types

    7:00

  • The Partial and Required Utility Types

    7:09

  • The Readonly and Record Utility Types

    10:45

  • Working with (More) Types Review

    8 questions

Manipulating Types

Types are great, but they are rigid and don't allow room for much change. In this stage, we're going to discuss ways we can make our types more fluid.

Chevron 5 steps
  • The Basics of Generics

    10:30

  • Type Unions and Intersections

    12:04

  • The Difference Between Type Aliases and Interfaces

    9:28

  • Creating a Type Declaration File

    8:26

  • Manipulating Types Review

    5 questions

Functions in TypeScript

Our main focus for this stage will be on functions, how to write them in TypeScript, and how to write types for them. We'll also talk about something called type assertions.

Chevron 6 steps
  • Parameter Type Annotations

    5:42

  • Type Narrowing

    8:10

  • Function Type Expressions

    6:16

  • Type Assertions

    7:54

  • Conclusion

    0:59

  • Functions in TypeScript Review

    5 questions


Taught by

Richard Oliver Bray

Related Courses

Computer Vision: The Fundamentals
University of California, Berkeley via Coursera
Programming Languages
University of Virginia via Udacity
Learn to Program: Crafting Quality Code
University of Toronto via Coursera
Computational Photography
Georgia Institute of Technology via Coursera
Algorithms: Design and Analysis, Part 2
Stanford University via Coursera