Lurker News

Comments (191) 32 threads

Earlier comments
kamilafsar#
Very interesting project. If you want a deep dive into TypeScript generics, this project's code is truly a must-read! This project really shows how powerful TypeScript has become over the years.

Shameless plug: we're also working on project in the same domain. It actually uses the TypeScript compiler API to generate/update your SQL schema's and a typesafe (mongo like) API on top PostgreSQL. It's still very early stage, but if you're interested: https://samen.io

fbn79#
Maybe useful to build dynamic-types based on configuration files I think.
bhouston1 reply#
Is typescripts type system becoming like c++ template meta programming?
Jweb_Guru1 reply#
TypeScript is more powerful in some ways.
franky47#
Only in some: the fact that the type system can know everything it needs to generate runtime code, but chooses not to do so, is kind of frustrating sometimes.
bebe3000#
This whole magic can be explained in one sentence. `infer` is introduced to TypeScript's templating. The rest, I mean this sql parser is just the result of this new "tool".

Load more comments