Categories → typescript
-
Enums vs string literal types in Typescript
Find out if TypeScript enums or string literal types are better for your project with a detailed comparison and examples
-
How to use Typescript's satisfies operator
New to TypeScript's `satisfies` operator? This easy-to-follow introduction covers the essentials of `satisfies`.
-
10 Javascript/Typescript features I avoid
Learn about 10 Javascript features that can be replaced by better alternatives. See why a senior engineer avoids them and what alternatives they use instead.
-
Ensuring type safety in LocalStorage API with Typescript
Learn how to ensure type safety in LocalStorage API using Typescript. See how custom type guards can prevent runtime errors caused by unexpected data types
-
Optional vs. undefined: Typescript's required properties
Learn the differences between optional properties and union types with undefined in TypeScript. Explore practical examples for enforcing required properties
-
Typescript type guards - how to use them?
Become a TypeScript Hokage with these type guard tricks! Learn how to use type guards and write your own.
-
Mastering function overloading in Typescript
Function overloading in TypeScript allows multiple functions with the same name to exist within a single program, but with different type signatures
-
Basic types in Typescript
Start using Typescript in your projects - learn everything you need to understand basic Typescript types