decpk

decpk

  • Blogs
Cover Image for Exploring the power of Record<K, V> in TypeScript

Exploring the power of Record<K, V> in TypeScript

In Javascript almost everything is an object like Arrays, functions, Date, RegExp Promise etc. You categorise objects into 2 types: With Known Properties: You know properties or methods upfront before even declaring it. Unknown Properties: You do n...

Apr 29, 2024
Cover Image for Utility types in Typescript

Utility types in Typescript

In this series we are going utility types in Typescript which are commonly used. This will help us t…

Apr 20, 2024
Cover Image for typeof type operator in Typescript

typeof type operator in Typescript

typeof operator is used to get type of (I'd prefer to say Shape of) operand. If you want to learn ab…

Apr 6, 2024
Cover Image for typeof operator in Javascript

typeof operator in Javascript

Do you actually know how to use typeof in Javascript?Do you now what are typeof operator capabilitie…

Apr 6, 2024

Subscribe to our newsletter for updates and changelog.

More Posts

Cover Image for Optional chaining in depth

Optional chaining in depth

TLDR; Optional chaining (?.) prevents runtime errors when accessing properties or methods of potentially null or undefined objects by short-…

Mar 23, 2024
Cover Image for How to type an error in try-catch block

How to type an error in try-catch block

TL;DR: TypeScript catch clause variables can now be typed as unknown for better type safety since version 4.0.Try-catch blocks are used to h…

Mar 18, 2024
Cover Image for What is Typescript and Why Typescript

What is Typescript and Why Typescript

Let say you have started learning web development and picked Javascript as first programming language or you are seasoned developer who have…

Mar 17, 2024

decpk