mix typelizer.gen (Typelizer v0.2.0)

Copy Markdown View Source

Generates the TypeScript files: serializer interfaces, route helpers and Inertia page props.

$ mix typelizer.gen

The task compiles the project, writes every file whose content changed, and deletes stale generated files in the output directories. It never touches a file that does not start with the typelizer header.

When config :typelizer, repo: MyApp.Repo is set, the database must be reachable: column nullability is read from it.

See the Configuration guide.