VA
HomePostsTagsAboutUsesContact
  1. Home
  2. /Posts
  3. /How to return tuple in typescript

How to return tuple in typescript

Tuesday 02/08/2022

·1 min read
JavaScript
Share:

We can do something like this:

return [variable1, variable2, variable3, variable4] as const
Share:
VA

Vadim Alakhverdov

Software developer writing about JavaScript, web development, and developer tools.

GitHubXLinkedIn

Related Posts

Build an Agentic RAG Pipeline That Retries and Reformulates Queries

Upgrade your basic RAG pipeline to an agentic loop that evaluates retrieval quality, reformulates queries, and retries with alternative strategies — all in TypeScript.

Claude Code Source Leak: What the Exposed Code Reveals About AI Agent Architecture

Anthropic accidentally shipped source maps in their Claude Code npm package, exposing the full architecture. Here is what the leaked code teaches us about building production AI agents.

Claude Agent SDK vs OpenAI Agents SDK: Building AI Tools in TypeScript

Compare Claude Agent SDK and OpenAI Agents SDK by building the same coding assistant in both. Real TypeScript code, honest tradeoffs, and guidance on which to pick.

← Previous

Simple object validation

Next →

Access to element with ID

Get new posts in your inbox

© 2026 Vadim Alakhverdov

GitHubXRSSPrivacy