Alva.Codegen.InputContract (Alva v0.1.0)

Copy Markdown View Source

Generates TypeScript input type shapes for Ash actions.

Produces a TypeScript object type representing the input shape required by a given event, including arguments, primary keys, attributes, filters, and pagination options. Handles optional vs required fields based on action configuration (:accept, :require_attributes, :allow_nil_input).

See Alva.Codegen.DtoGenerator for the output type generation.

Summary

Functions

Generates the TypeScript input type for a given event's action.

Functions

generate_input_shape(resource, event_def, action, indent \\ "")

(since 0.1.0)

Generates the TypeScript input type for a given event's action.