- 2024- 01
- Create user-defined type guard with is operator and carry type refinement over to new scopes
- Create conditional types in Typescript
- Create a tuple constructor function in Typescript
- Use Record type to create a map that enforces a specific set of keys in Typescript
- Use Mapped types to create super index signatures in Typescript
- Typescript has separate namespaces for values and for types and the companion object pattern
- Excess property checking for fresh object literal type when assign to another type
- Type widening in Typescript
- Prevent type widening in Typescript
- 2023- 12
- Simulate final classes that are non-extensible in Typescript
- Implement a factory pattern in Typescript
- Implement a builder pattern in Typescript
- Interfaces and type aliases are mostly two syntaxes for the same thing in Typescript
- Implementing interfaces versus extending abstract classes in Typescript
- Implement mixin in Typescript
- Implement interface using implements keyword in Typescript
- Differences between type aliases and interfaces in Typescript
- Classes declare both values and types in Typescript
- Classes are structurally typed Typescript compares classes by their struct not by name
- Class constructor type in Typescript