-
-
Notifications
You must be signed in to change notification settings - Fork 141
Description
Currently we have one lesson for the introduction to TypeScript types.
But there is a lot going on in this lesson. So it would be better to break this up.
New lesson 1
How Do Primitive Types Work in TypeScript
The first lesson can introduce types and only focus on the primitive ones.
We currently have this code example
let str: string = "Naomi";
let num: number = 42;
let bool: boolean = true;
let nope: null = null;
let nada: undefined = undefined;But that can be expanded more and have sentences between each example. And more explanation of error messages you would get if you assigned the wrong type.
New lesson 2
How Do Types Work with Objects and Arrays
We can take the original content from the first lesson and expand on it
Also, there should be more explanation on Record here too since it is used in an example.
New lesson 3
How do the any, never, unknown and void types work?
The original text can be reused but we should also add examples here.
New lesson 4
What are union types and how do they work?
This is where the type keyword can be introduced along with unions. Most of the origianl text can be repurposed here and more examples should be added.
New lesson 5
What are interfaces and how do they work?
We could reuse the original text and example here and expand on it with more examples.
New lesson 6
How do Function Types work?
We could reuse the original text here and expand on it.