TeaQL's TypeScript Runtime Is Now Available on npm
· One min read
TeaQL's TypeScript runtime is now publicly available as
@teaql/teaql. The first release,
0.1.0, can be installed directly from npm:
npm install @teaql/teaql
TeaQL's TypeScript runtime is now publicly available as
@teaql/teaql. The first release,
0.1.0, can be installed directly from npm:
npm install @teaql/teaql
TypeScript can describe optional data precisely at compile time, but JavaScript
still has several runtime forms of absence: undefined, null, a missing object
key, and an empty collection.
For database-backed models, a missing key has another possible meaning: the query did not select the field.
TeaQL's generated TypeScript E expressions preserve Value, Null, and
NotLoaded so that undefined does not silently stand in for an incomplete
query plan.