Please enable JavaScript.
Coggle requires JavaScript to display documents.
TypeScript - Coggle Diagram
TypeScript
Classes, Interfaces & OOP
Creating Objects
-
typeof will return object, and instanceof can check certain class
-
Access Control Keywords
public, private, protected
-
-
-
-
-
-
-
-
-
Interfaces
-
can be inherited by interface (extends), implemented by class (implements)
-
-
Generics
-
-
Interfaces
declare generic just like class <>, also could give property an union types with generic and null
as return type of function, declare function generic first
-
-
-
-
-
-
Fundamentals
-
Build-in types
-
Arrays
empty array is type any, it should be initialized with type
-
-
Enums
initialized by const has better performance, but still has issues
-
-
-
React, Node & Express with TypeScript