Слайд 2

Basic types

Basic types

Слайд 4

Types

Basic type:
Boolean, string and etc…
You can create you own type

Types Basic type: Boolean, string and etc… You can create you own type

Слайд 6

Type Assertions

Type Assertions

Слайд 7

Narrowing or type Guard

Fix:

Narrowing or type Guard Fix:

Слайд 8

Interfaces

Interfaces

Слайд 9

Interfaces

Interfaces declare type of object

Interfaces Interfaces declare type of object

Слайд 10

Interface or type ? Different

Type aliases and interfaces are very similar, and

Interface or type ? Different Type aliases and interfaces are very similar,
in many cases you can choose between them freely. Almost all features of an interface are available in type, the key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.

Слайд 12

Optional = Properties?

Optional = Properties?

Слайд 13

Function

Function Type Expressions
Generic Functions
Function Overloads

Function Function Type Expressions Generic Functions Function Overloads

Слайд 14

Function Type Expressions

Function Type Expressions

Слайд 15

Function Generic

Function Generic