Tag: typescript

Build an image editor with Fabric.js v6

Dev

In web development projects, developers typically create user interface elements with standard DOM elements. Sometimes, web developers need to create […]

Shalitha Suranga
Sep 9, 2024 ⋅ 12 min read
Types vs. Interfaces in TypeScript

Types vs. interfaces in TypeScript

Dev

It can be difficult to choose between types and interfaces in TypeScript, but in this post, you’ll learn which to use in specific use cases.

Yan Sun
Sep 5, 2024 ⋅ 9 min read
How To Extend Enums In TypeScript

How to extend enums in TypeScript

Dev

Learn how to extend enums in TypeScript using techniques like unions types, spread syntax, and const assertions.

Kealan Parr
Aug 15, 2024 ⋅ 6 min read
TypeScript String Enums, And When And How To Use Them

TypeScript string enums, and when and how to use them

Dev

String enums in TypeScript provide readable values for enum members, improving code clarity and maintainability.

Alexander Nnakwue
Jul 30, 2024 ⋅ 13 min read
A Complete Guide To Const Assertions In TypeScript

A complete guide to const assertions in TypeScript

Dev

`const` assertions are a powerful TypeScript tool that create more type-safe code while reducing boilerplate.

Paul Cowan
Jul 23, 2024 ⋅ 8 min read
Drizzle Orm Adoption Guide Overview Examples And More

Drizzle ORM adoption guide: Overview, examples, and alternatives

Dev

We build a simple web API using MySQL and Drizzle, an ORM built in TypeScript that offers a more flexible and extensible solution than alternatives like Prisma and TypeORM.

Agustinus Theodorus
Jul 18, 2024 ⋅ 12 min read
Schema Validation In TypeScript With Zod

Schema validation in TypeScript with Zod

Dev

Learn how to enhance TypeScript runtime type safety using Zod for schema validation and dynamic form validation.

Abhinav Anshul
Jul 16, 2024 ⋅ 11 min read
Leveraging Typescript Branded Types For Stronger Type Checks

Leveraging TypeScript branded types for stronger type checks

Dev

Branded types in TypeScript allow us to write code more clearly, provide more type-safe solutions, and maintain our code more efficiently.

Rashedul Alam
Jul 16, 2024 ⋅ 5 min read
How To Extend The Express Request Object In TypeScript

How to extend the Express Request object in TypeScript

Dev

Let’s learn how to extend the Request type in TypeScript to make its instances store custom data you can use at the controller level.

Antonello Zanini
Jul 8, 2024 ⋅ 14 min read
How To Perform Type Casting In TypeScript

How to perform type casting in TypeScript

Dev

Explore type casting in TypeScript, concepts like the subtype and super type relationships, and type widening and type narrowing.

Paul Akinyemi
Jun 24, 2024 ⋅ 9 min read
Level Up Your TypeScript With Record Types

Level up your TypeScript with Record types

Dev

Explore how to use the TypeScript Record type alongside practical use cases, including how to use it with generics.

Matteo Di Pirro
Jun 10, 2024 ⋅ 9 min read
Using Path Aliases For Cleaner React And TypeScript Imports

Using path aliases for cleaner React and TypeScript imports

Dev

Explore how to configure path aliases in a React and TypeScript app for cleaner imports, organization, and maintainability.

Oghenetega Denedo
May 31, 2024 ⋅ 6 min read