Skip to main content

Module common

Module common 

Source
Expand description

Shared logic for framework-specific codegen files (React, Svelte, Vue, SolidJS).

Each framework wrapper follows the same structure: imports, type helpers, void/non-void key unions, interface definitions, query/mutation overloads, and implementation blocks. This module extracts all the common patterns so that individual framework modules only supply their unique constants.

Structs§

FrameworkConfig
Configuration for generating a framework-specific reactive wrapper file.

Constants§

GENERATED_HEADER
Header comment included at the top of every generated file.

Functions§

generate_framework_file
Generates a complete framework-specific reactive wrapper file.
is_void_input
Returns true if the procedure takes no input (void).