Topic

#TypeScript

36 posts tagged “TypeScript”.

Takina Takina · · 5 min read

JavaScript Custom Errors and Error Cause, Explained

JavaScript custom error classes and the Error cause option let you throw specific, chainable errors. How to define them, wrap failures, and handle them well.

#JavaScript #TypeScript #Web Development
Takina Takina · · 4 min read

Structural Typing vs Nominal Typing in TypeScript

Structural typing checks shape, not name — TypeScript treats two differently-named types as compatible if their members match, unlike nominal systems.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Is Biome? ESLint and Prettier in One Rust Tool

Biome is a Rust-based linter and formatter that replaces ESLint and Prettier with one faster tool, one config file, and no plugin ecosystem to manage.

#JavaScript #TypeScript #Developer Tools
Takina Takina · · 5 min read

TypeScript Variance Explained

Variance decides when TypeScript accepts Array<Dog> where Array<Animal> is expected — covariant, contravariant, or invariant, explained with examples.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

Zod vs Yup: TypeScript Schema Validation Compared

Zod infers static TypeScript types directly from its schemas; Yup was built for JavaScript form validation first. How the two approaches differ.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

TypeScript Declaration Files (.d.ts) Explained

A .d.ts file describes a library's types without its implementation. How TypeScript declaration files work, and how to write one for an untyped JS package.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Tuple Types Explained

A TypeScript tuple is a fixed-length array where each position has its own type. How tuples work, labeled elements, and when to use them over arrays.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Astro Content Collections, Explained

Astro content collections give markdown and MDX files a type-safe schema and a query API, catching bad frontmatter at build time instead of runtime.

#Astro #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript Index Signatures Explained

An index signature lets a TypeScript type describe objects whose keys aren't known in advance. How the syntax works, and when to reach for a Record instead.

#TypeScript #JavaScript #Web Development
The Lycoris Team The Lycoris Team · · 4 min read

TypeScript Module Resolution Explained

TypeScript's moduleResolution setting decides how import paths map to files. How node10, node16, and bundler resolution differ, and which to pick.

#TypeScript #JavaScript #Developer Tools
Takina Takina · · 4 min read

TypeScript vs JavaScript: What's the Real Difference

TypeScript is JavaScript plus a compile-time type system — same runtime, different guarantees. Where each one wins and how they fit together.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

TypeScript Branded Types Explained

Branded types attach a compile-time-only tag to a primitive so TypeScript rejects mixing values that share a shape but not a meaning.

#TypeScript #JavaScript #Web Development
Chisato Chisato · · 4 min read

Prisma vs Drizzle: Comparing TypeScript ORMs

Prisma generates a type-safe client from a schema file and runs through its own query engine; Drizzle is a thinner, SQL-like query builder with no engine.

#Databases #TypeScript #Developer Tools
Takina Takina · · 4 min read

TypeScript Declaration Merging Explained

Declaration merging lets TypeScript combine multiple declarations of the same name into one — the mechanism behind extending interfaces and global types.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Abstract Classes, Explained

Abstract classes in TypeScript define shared implementation plus methods subclasses must fill in. How they differ from interfaces and when to reach for them.

#TypeScript #JavaScript #Web Development
Takina Takina · · 3 min read

TypeScript's never Type, Explained

never represents values that can't exist — it marks unreachable code, exhaustive switches, and functions that always throw or loop forever.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript readonly Modifiers Explained

TypeScript's readonly keyword blocks reassignment at compile time for properties, arrays, and tuples — with no runtime enforcement at all.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript's `as const`, Explained

TypeScript's as const assertion locks a value to its literal, readonly type instead of widening it. How it works and when to reach for it.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

TypeScript Type Guards, Explained

Type guards are functions and checks that narrow a TypeScript union to a specific type at runtime. How typeof, instanceof, in, and custom guards work.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Function Overloads Explained

TypeScript function overloads let one function name accept multiple call signatures with different types. How overload signatures work and when to use them.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Tagged Template Literals in JavaScript, Explained

Tagged template literals let a function intercept a template string's parts before interpolation — the mechanism behind safe SQL, styled-components, and i18n.

#JavaScript #Web Development #TypeScript
Takina Takina · · 4 min read

TypeScript Template Literal Types Explained

Template literal types let TypeScript build string types from other types, like JavaScript template strings. How they work, with practical patterns.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript interface vs type: What's the Difference

TypeScript's interface and type both describe object shapes, but they diverge on declaration merging, unions, and extension. When to reach for each.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Mapped Types Explained

Mapped types transform one type into another by iterating over its keys — the mechanism behind Partial, Readonly, Record, and Pick under the hood.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Enums Explained (and When to Avoid Them)

TypeScript enums group named constants under one type. How numeric, string, and const enums compile, and when a union type is the better choice.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Discriminated Unions Explained

A discriminated union tags each variant of a type with a shared literal field, letting TypeScript narrow the type automatically inside a switch or if check.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript unknown vs any: What's the Difference

TypeScript's unknown forces a type check before use; any opts out of type checking entirely. When to reach for each in real code.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Conditional Types Explained

Conditional types let TypeScript pick a type based on another type, using T extends U ? X : Y — the foundation of most advanced type utilities.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

The TypeScript satisfies Operator, Explained

TypeScript's satisfies operator checks a value against a type without widening or erasing its inferred literal type. Here's when to reach for it.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Decorators Explained: Syntax and Use Cases

TypeScript decorators attach reusable behavior to classes and members with an @ syntax. How class, method, and field decorators work, with real examples.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Generics Explained

TypeScript generics let functions and types work with any type while preserving the specific type used at each call site, avoiding both duplication and any.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

TypeScript 7.0 Released: Go Rewrite, 10x Faster

Microsoft shipped TypeScript 7.0 with a Go-native compiler that's roughly 10x faster than 6.0. What changed, what breaks, and how to upgrade.

#TypeScript #JavaScript #Developer Tools
Takina Takina · · 3 min read

Getting Started with TypeScript: A Practical Guide

TypeScript adds a safety net to JavaScript without slowing you down. Here's how to set it up, the handful of concepts that matter, and how to adopt it gradually.

#TypeScript #JavaScript #Web Development

← All topics