Please enable JavaScript.
Coggle requires JavaScript to display documents.
Typescript - Coggle Diagram
Typescript
-
-
Type by Inference
-
-
Types available in JS
boolean, bigint, null, number, string, symbol, and undefined
-
Property Modifiers
Each property in an object type can specify a couple of things: the type, whether the property is optional, and whether the property can be written to.
-
-
-
-
-
Structural Type System
In a structural type system, if two objects have the same shape, they are considered to be of the same type.
-
-
-
Tuples
an ordered structure, where position of each item has some special meaning or convention.
Example: const numPair: [string, number] = ["hello", 5]
-
-
Narrowing
type guard a special form of code that analyze the most specific possible type of a value at a given position
-