How to return tuple in typescript
Tuesday 02/08/2022
·1 min readShare:
We can do something like this:
return [variable1, variable2, variable3, variable4] as const
Share:
Tuesday 02/08/2022
·1 min readWe can do something like this:
return [variable1, variable2, variable3, variable4] as const
Learn practical patterns for testing LLM-powered TypeScript code — mocking AI APIs, snapshot testing non-deterministic outputs, eval frameworks, and assertion strategies with Vitest.
Build an AI Slack bot that indexes your codebase and answers questions like 'where is the auth logic?' — with full TypeScript code using embeddings and Claude.
Learn how to cache AI API responses to cut costs and latency — exact match, semantic similarity, and prompt fingerprinting strategies with TypeScript and Redis.