Safe and reliable fetch calls in typescript
Safe and reliable fetch
calls in TypeScript.
fetch
in TypeScript.unknown
to make the code safer.To run the files, use esbuild-kit/tsx:
npx tsx src/not-typesafe.ts
npx tsx src/using-unknown.ts
npx tsx src/streamlining-with-zod.ts
If I'm doing something wrong, please let me know!