#typescript Nullish Coalescing
Use nullish coalescing ??
to provide a default value for null
or undefined
.
#typescript Strict Null Checks
Enable strict null checks in TypeScript to catch null and undefined errors.
#typescript Readonly Properties
Use readonly
to make properties immutable.
#typescript Private Fields
Use private fields #
to encapsulate class properties.
#typescript Decorators
Use decorators to add metadata to classes and methods.