@concile/codegen
v0.1.5
Published
Generates a project's typed `_generated/` files from its schema and functions.
Readme
@concile/codegen
Generates a project's typed _generated/ files from its schema and functions.
Given a schema and an analyzed manifest of the project's query, mutation, and action
functions, this package emits the generated modules an application imports: the typed
api and internal API references, the data model (Doc and Id types per table),
the server helpers, and the id-minting map. This is what makes calls like
useQuery(api.messages.list) fully type-safe end to end, from a function's argument
validators through to the client.
It is invoked by the concile CLI during concile dev and concile codegen, and also
validates shard-by declarations before emitting. Applications never depend on it
directly; they consume its output as checked-in generated files.
This is an internal package of the Concile engine. Most applications should install
concileinstead.
Part of Concile — docs at https://concile-six.vercel.app/docs
License: FSL-1.1-Apache-2.0
