TS Syntax
↔ List of typescript keywords, syntax, coding patterns, etc
aka lang
Type
shape & behaviour of data to rep set of values
Generics
generic (algebraic) placeholder to work with any variety of Types, but allow Type Inference to catch specific Type
Source: www.typescriptlang.org/docs/handbook/2/generics.html
namespace
TS Syntax to group related Code (mainly for APIs)
Type Guard
Runtime Type-Check to Narrow Type of Variable
References
namespace
↔ TS Syntax to group related Code (mainly for APIs)Property Modifier
↔ TS Syntax to specify property's Type, if optional? & if writable?Typed Optional Parameter
↔ TS Syntax to mark Identifier as an optional Parameter using?:
Singleton
↔ TS Syntax Pattern to ensure exactly only one object instance of a class, using Private Constructor & Static MethodType Annotation
↔ TS Syntax to annotate Variables with TypesType Operator
↔ TS Syntax for built-in operation on TypesIndex Signature
↔ TS Syntax to express Dictionary with arbitrary key map to valueType Expression
↔ TS Syntax evalue to Type, after:
|| inside Angle Bracket NotationTyped [
Rest Parameter](rest-parameter)
↔ TS Syntax for Rest Parameter which must always be of TypeArray
Type Assertion
↔ TS Syntax to override TSC's Type Inference for Static Type of specific Value