TypeScript

My TypeScript notes.

1 Jan 0001

Quick Notes

🔢 Number # Number is the set of all numbers: integers, floats, ……

1 Jan 0001

Experiments

Assigning object as key in object # let i = { 10: "akkkdkd", ……

1 Jan 0001

Arrays in ts

let a = [1, 2, 3]; // number[] var b = ['a', 'b']; // ……

1 Jan 0001

Empty Object Literal

// empty object literal (object litral => syntax to write an ……

1 Jan 0001

Enums

There are two kinds of enums: enums that map from strings to strings, ……

1 Jan 0001

Extend of types and interfaces

type are extended using union operators and interfaces are extended ……

1 Jan 0001

Function Bing Call Apply

Overview # call(), apply(), and bind() are JavaScript methods that ……

1 Jan 0001

Null, Undefined, Void and Never

Null and Undefined # undefined type means the type has not been yet ……

1 Jan 0001

Overloaded Function Types

Signature call is syntax in ts to prodifine prototype/type of ……

1 Jan 0001

Strings

Strings in js/ts # When String() is called as a function (without ……

1 Jan 0001

When and where to use unkown?

intro # For the few cases where you have a value whose type you really ……