(no title)
lunarcave | 6 months ago
Runtime type assertion at the edges is mostly solved through `zod` and tools like `ts-rest` and `trpc` makes it so much easier to do full-stack Typescript these days.
lunarcave | 6 months ago
Runtime type assertion at the edges is mostly solved through `zod` and tools like `ts-rest` and `trpc` makes it so much easier to do full-stack Typescript these days.
madeofpalk|6 months ago
ESM modules just work with both Node and Typescript, Node can run .ts files, and there's the a good enough test runner built in. --watch. The better built in packages - `node:fs/promises` - are nice with top-level await for easier async loops.
It took a while to convince everyone involved to just be pragmatic, but it's nice now.
hliyan|6 months ago
d357r0y3r|6 months ago
pseudosavant|6 months ago
benoau|6 months ago
balamatom|6 months ago
ZYbCRq22HbJ2y7|6 months ago
edem|6 months ago
firloop|6 months ago
thrown-0825|6 months ago
throwmeaway222|6 months ago
_heimdall|6 months ago
trpc and ts-rest are a different animal in my opinion. I'm happy to use either one but won't deal with them in production. For trpc that's mainly due to the lack of owning API URLs and being able to more clearly manage deprecating old URLs gracefully.
For ts-rest I just tend to prefer owning that setup myself, usually with zod and shared typings for API request/response pairs. It also does irk me every time I import what is clearly an RPC tool named "-rest"
port11|6 months ago
edem|6 months ago
wredcoll|6 months ago
Two types of languages...
rs186|6 months ago
socalgal2|6 months ago
wartijn_|6 months ago
https://github.com/privatenumber/tsx