TypeScript
We track 64 posts about TypeScript from 18 engineering blogs. Most active: SitePoint, Microsoft TypeScript, SitePoint. Latest post: Nov 23, 2026.
Companies writing about TypeScript
Recent posts
Trigger Pulumi Agents from Infrastructure Events (opens on the source site)
Pulumi ·
Pulumi Agents can start work automatically in response to a Pulumi event or a webhook. With a trigger, you can give an agent a recurring assignment and choose when it should start. For events in Pulumi Cloud, that choice can be as specific as a failed update on a single stack. A failed deployment is one use for a trigger. The agent can read the failed update, identify the affected resource, and post a diagnosis in Slack. That puts the error and a suggested next step in the deployment channel for the team to review. A trigger for failed deployments The example below defines an agent and a…
Branded Phone Type (opens on the source site)
In my previous blog post Branded Types I have shown a useful technique for representing time durations as "branded types" which removes the confusion between seconds and milliseconds. 1 2 3 4 // value is in seconds const duration = 1 // oops, I thought the duration was in milliseconds cy.wait(duration) Let me show an other example: representing user phone numbers using branded types. This solves a common problem in end-to-end tests where the system has to verify the user to avoid scammers: 1 2 3 4 // are these numbers the same? const phoneNumber1 = '+1 (123) 456-7890' const phoneNumber2 =…
Build a Production-ready REST API With Express.js and TypeScript (2027 Guide) (opens on the source site)
Toptal ·
Express and TypeScript are excellent options when you need control over your stack. This guide has everything you need to build a production-ready REST API, from validation and auth to MongoDB and testing.
Announcing TypeScript 7.1 Beta (opens on the source site)
Today we’re excited to announce the beta release of TypeScript 7.1! npm install -D typescript@beta Let’s take a look at what’s new in TypeScript 7.1! Support for Import Attributes in Ambient Modules Import attributes are metadata that are attached to import statements. Typically, they’re meant to instruct runtimes and bundlers on how to interpret the […] The post Announcing TypeScript 7.1 Beta appeared first on TypeScript.
LLM Structured Output with JSON Schema: Typed Responses in TypeScript (opens on the source site)
Get reliable, typed JSON from LLMs using schema-constrained outputs, function calling, and a TypeScript Zod validation layer with bounded retries. Continue reading LLM Structured Output with JSON Schema: Typed Responses in TypeScript on SitePoint.
TypeScript Discriminated Unions: Refactoring Boolean Flags into State Machines (opens on the source site)
Replace boolean flags and optional fields with TypeScript discriminated unions. Covers narrowing, exhaustive checks with never, and a typed form state machine. Continue reading TypeScript Discriminated Unions: Refactoring Boolean Flags into State Machines on SitePoint.
How to Build a Voice AI Agent with OpenAI's GPT-Live, Twilio Agent Connect, and TypeScript (opens on the source site)
Twilio ·
Build inbound and outbound voice AI assistants that can handle tool calls using TypeScript, Twilio Agent Connect, and OpenAI's GPT-Live.
AI Agent Tool Calling in TypeScript: Guardrails Against Runaway Loops (opens on the source site)
Add bounded retries, execution timeouts, and a best-effort budget guard to your TypeScript AI agent tool-calling loop to stop runaway LLM API loops and token overruns. Continue reading AI Agent Tool Calling in TypeScript: Guardrails Against Runaway Loops on SitePoint.
Build a Secure TypeScript MCP Client with Cross App Access (XAA) (opens on the source site)
Okta ·
Enterprise apps rarely work alone. Imagine this scenario: HR wants to ensure that a new employee completes their new hire onboarding, and they want this verification in the company’s HR app so it’s tied to the employee’s personnel file. But the onboarding tasks come from a task-tracking tool with requirements defined by each department, from a different vendor and on a different domain than the HR app. It’s on IT to bridge the two. Wiring the two together normally costs the user an OAuth consent screen or costs IT a shared service account. Cross App Access (XAA) removes that step. The…
Build a Secure TypeScript MCP Client with Cross App Access (XAA) (opens on the source site)
Okta ·
Build a TypeScript MCP app with Cross App Access (XAA): exchange ID-JAG tokens, discover auth servers, and delegate OAuth with no consent screens.
TypeScript Generics Examples: Fetch Wrappers, Forms, and UI Components (opens on the source site)
Build typed fetch wrappers, form validators, and polymorphic React components using TypeScript generics, with runtime validation boundaries and a decision table comparing generics, unions, and schema inference. Continue reading TypeScript Generics Examples: Fetch Wrappers, Forms, and UI Components on SitePoint.
★ Keeping Laravel and TypeScript in sync with data objects (opens on the source site)
At Spatie we build SaaS apps with Laravel on the backend and Inertia with React on the frontend. That split means two type systems have to agree about every payload that crosses between them. Laravel data going out, TypeScript picking it up. There There, the helpdesk we're building, is built exactly like that. Tickets, messages, members, custom sidebar sections, all of it crosses the bridge. We'd go insane maintaining those types by hand. So we don't. There There is in private beta right now, and you can apply for early access at there-there.app. Two Spatie packages make this painless.…
How to Detect Breaking API Changes with TypeScript and OpenAPI (opens on the source site)
Build a CI pipeline that catches breaking API changes before runtime with oasdiff spec diffing and openapi-typescript type checks in GitHub Actions. Continue reading How to Detect Breaking API Changes with TypeScript and OpenAPI on SitePoint.
JavaScript Fetch Error Handling: Build a Reusable TypeScript Wrapper (opens on the source site)
Build a reusable TypeScript wrapper for the Fetch API that normalizes network errors, HTTP status codes, timeouts, and JSON parsing into a predictable error hierarchy. Continue reading JavaScript Fetch Error Handling: Build a Reusable TypeScript Wrapper on SitePoint.
Multiplayer Game Development with TypeScript, Phaser, Socket.io, and MongoDB (opens on the source site)
Game data rarely looks the same for very long. A player document might start out with just a username and a score, and a few sprints later, it needs an inventory, a set of unlocked achievements, and a... The post Multiplayer Game Development with TypeScript, Phaser, Socket.io, and MongoDB appeared first on DEV.
Gemini Interactions API in TypeScript: Task-Aware Thinking Routing (opens on the source site)
Build a task-aware thinking router on the Gemini Interactions API in TypeScript: classify coding tasks, set thinking levels, and track cost and latency. Continue reading Gemini Interactions API in TypeScript: Task-Aware Thinking Routing on SitePoint.
Building LLM Primitives from Scratch in TypeScript: Tokenizers, Vectors, and Attention (opens on the source site)
You will understand and implement the foundational mechanics of LLMs—including BPE tokenization, vector search, and self-attention math—entirely in zero-dependency TypeScript. Continue reading Building LLM Primitives from Scratch in TypeScript: Tokenizers, Vectors, and Attention on SitePoint.
Building Multi-Tier AI Agent Memory with TypeScript and SQLite-vec (opens on the source site)
Architect a tiered local memory system for AI agents using TypeScript, better-sqlite3, and sqlite-vec across episodic, semantic, and procedural stores. Continue reading Building Multi-Tier AI Agent Memory with TypeScript and SQLite-vec on SitePoint.
Gemini 3.8 Flash Reasoning Effort: Balancing Latency and Costs in TypeScript (opens on the source site)
Learn how to calibrate Gemini 3.8 Flash reasoning effort in TypeScript to balance latency SLAs, token budgets, and dynamic fallback cascades. Continue reading Gemini 3.8 Flash Reasoning Effort: Balancing Latency and Costs in TypeScript on SitePoint.
An update on Angular’s TypeScript 7-powered Compiler (opens on the source site)
Angular ·
Alex Rickabaugh & Mark Techson[Alex] I joined the Angular team in 2015, around the original Angular 2.0 release. One of my first tasks was to convert source code from JavaScript into a relatively new (at the time) language from Microsoft, known as TypeScript. TypeScript would go on to become both an industry standard and one of Angular’s greatest strengths, providing the structure and safety for the team to scale the framework. We built Angular’s innovative ahead-of-time compiler on top of the TypeScript compiler’s APIs. While compiling web applications was not new at Google, it was certainly…
Self-driving infrastructure with Pulumi and Jev (opens on the source site)
Pulumi ·
It’s been a weirdly great time to be building software. We’ve never had so many tools that help us get things done: endless cloud providers, regions, deployment frameworks, and now AI agents that can actually build and manage infrastructure for us. That’s part of what made this past week feel so big. TypeSafe AI opened early access to Jev, their SystemOne model, and we here at Pulumi were bitten by the excitement bug and got straight to work building. Almost immediately we were able to whip up some test agentic workflows that were making real, live decisions about infrastructure. If you’re…
Securing AI Agent Tool Execution with TypeScript AST Sandboxes (opens on the source site)
Build a TypeScript middleware that parses agent-generated bash and SQL into ASTs, blocking prompt-injection escapes and destructive operations before tool execution. Continue reading Securing AI Agent Tool Execution with TypeScript AST Sandboxes on SitePoint.
Building Deterministic Multi-Agent State Machines in TypeScript (opens on the source site)
Design type-safe multi-agent orchestration with explicit state charts, atomic transitions, and checkpoint storage that survives runtime failures. Continue reading Building Deterministic Multi-Agent State Machines in TypeScript on SitePoint.
Building Composite Model Context Protocol (MCP) Gateways in TypeScript (opens on the source site)
Build a unified Model Context Protocol (MCP) gateway in TypeScript that aggregates upstream MCP servers, resolves tool collisions, and handles auth and rate limits. Continue reading Building Composite Model Context Protocol (MCP) Gateways in TypeScript on SitePoint.
Eliminating AI Code Hallucinations with TypeScript Compiler Diagnostics and TDD Loops (opens on the source site)
Build a TypeScript diagnostic feedback loop that feeds compiler diagnostics and test failures back to coding agents for verified self-correction. Continue reading Eliminating AI Code Hallucinations with TypeScript Compiler Diagnostics and TDD Loops on SitePoint.
Building Distributed Sliding-Window Rate Limiters in TypeScript and Redis (opens on the source site)
Implement an atomic sliding-window rate limiter in TypeScript with Redis sorted sets and Lua, enforcing dual RPM/TPM quotas with standard rate-limit headers. Continue reading Building Distributed Sliding-Window Rate Limiters in TypeScript and Redis on SitePoint.
Streaming Encrypted Files P2P with WebRTC DataChannels and WebCrypto in TypeScript (opens on the source site)
Build a serverless P2P browser file-transfer engine with WebRTC DataChannels, bufferedAmountLowThreshold backpressure, and AES-GCM encryption via WebCrypto. Continue reading Streaming Encrypted Files P2P with WebRTC DataChannels and WebCrypto in TypeScript on SitePoint.
Cutting Node.js Memory Footprint with HyperLogLog and Count-Min Sketch in TypeScript (opens on the source site)
Ingest and aggregate millions of streaming events in Node.js with sub-megabyte RAM using HyperLogLog and Count-Min Sketch written in pure TypeScript. Continue reading Cutting Node.js Memory Footprint with HyperLogLog and Count-Min Sketch in TypeScript on SitePoint.
RAG Citation Verification: Building Deterministic Byte-Span Validators in TypeScript (opens on the source site)
Eliminate hallucinated LLM references by building high-throughput, deterministic byte-span citation validators and grounding assertion middleware in TypeScript. Continue reading RAG Citation Verification: Building Deterministic Byte-Span Validators in TypeScript on SitePoint.
AI Agent Tool Manifests: Building a Unified TypeScript JSON Schema (opens on the source site)
Create a unified, vendor-agnostic JSON Schema specification for AI agent skills and tools, complete with a TypeScript runtime adapter that compiles declarations for Claude Code, OpenAI function calling, and custom agent loops. Continue reading AI Agent Tool Manifests: Building a Unified TypeScript JSON Schema on SitePoint.
Related topics
This page is generated automatically from the engineering blogs we follow. Every post links to its source, where it was published. See all sources.