AshTypescript.Rpc.Codegen.FunctionGenerators.HttpRenderer (ash_typescript v0.17.3)

Copy Markdown View Source

Renders HTTP-specific TypeScript functions (Promise-based, fetch).

Takes the function "shape" from FunctionCore and renders it as an HTTP function using executeActionRpcRequest.

Summary

Functions

render_execution_function(resource, action, rpc_action, rpc_action_name, opts \\ [])

Renders an HTTP execution function (Promise-based).

Options

  • :namespace - The resolved namespace for this action (used in JSDoc)

render_validation_function(resource, action, rpc_action, rpc_action_name, opts \\ [])

Renders an HTTP validation function.

Options

  • :namespace - The resolved namespace for this action (used in JSDoc)