Skip to content

πŸ“š typescript

A beautiful bit of TypeScript to turn an array into a keyed object

Thanks @mattpocockuk!

weeklyfoo #11 / 2023-12-17
typescript

as const to union of routes

It’s always insane for me to see the thins Matt is doing.

weeklyfoo #16 / 2024-01-22
typescript

Building a CLI from scratch with TypeScript and oclif

If you want to implement a ts cli, here you go.

weeklyfoo #29 / 2024-04-22
ocliftypescriptcli

Dual Publishing ESM and CJS Modules with tsup and Are the Types Wrong?

Thanks John!

weeklyfoo #38 / 2024-06-24
typescript

How to set up TypeScript with Node.js and Express

Pretty basic but useful!

weeklyfoo #79 / 2025-04-07
nodejsexpresstypescript

Langchain Tutorial For Typescript and Javascript Developers

Langchain and TS/JS

weeklyfoo #3 / 2023-10-22
langchaintypescript

Node.js, TypeScript and ESM: it doesn't have to be painful

Thanks Alejandro!

weeklyfoo #11 / 2023-12-17
nodejstypescriptesm

Template literals inside generic functions

Thanks Matt!

weeklyfoo #13 / 2023-12-31
typescript

Types from an array of strings

By using T[number].

weeklyfoo #49 / 2024-09-09
typescript

Typescript example to infer pattern matching

Beautiful and insane at the same time.

weeklyfoo #13 / 2023-12-31
typescript

Vite with TypeScript

A brief walkthrough on how to upgrade Vite from JavaScript to TypeScript.

weeklyfoo #71 / 2025-02-10
vitetypescript