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

Mastra vs VoltAgent: The Two New TypeScript Agent Frameworks Compared

Build the same AI agent in Mastra and VoltAgent — the two new TypeScript-native frameworks. Honest comparison of DX, memory, MCP support, observability, and bundle size.

Google Agent Development Kit for TypeScript: Build a Multi-Agent System from Scratch

Build a multi-agent research assistant with Google ADK for TypeScript. Supervisor agent coordinating three specialists — web researcher, data analyst, report writer — with tool definitions and local + Cloud Run deployment.

Build an MCP Client in TypeScript That Connects to Multiple Tool Servers

Build a TypeScript MCP client that connects to multiple servers simultaneously and lets an LLM use tools from all of them in one conversation — with capability discovery, namespacing, and error handling.

← Previous

Simple object validation

Next →

Access to element with ID

Get new posts in your inbox

© 2026 Vadim Alakhverdov

GitHubXRSSPrivacy