AshTypescript.Rpc.Codegen.TypeGenerators.InputTypes (ash_typescript v0.18.1)

Copy Markdown View Source

Generates TypeScript input types for RPC actions.

Input types describe the shape of data passed to RPC actions. With the Ash.Info.Manifest unified inputs list (action arguments + accepted attributes), all entries are handled uniformly here; only the client-side name resolution distinguishes argument-name mappings from field-name mappings.

Summary

Functions

Generates the TypeScript input type for an RPC action.

Functions

generate_input_type(resource, action, rpc_action_name, resource_lookup)

Generates the TypeScript input type for an RPC action.

Returns an empty string if the action has no inputs.

Parameters

  • resource - The Ash resource
  • action - The Ash.Info.Manifest.Action
  • rpc_action_name - The snake_case name of the RPC action
  • resource_lookup - The manifest resource lookup