Skip to main content

list_setter_method

Function list_setter_method 

Source
pub(crate) fn list_setter_method(inner: &str) -> Option<&str>
Expand description

Return the TypeScript setter method name for a List(<inner>) field, given the inner element type name (e.g. "Int64", "Bool", "Text", "Data").

This is the single source of truth for which list element shapes the capnp.ts runtime supports as a flat (non-composite-of-structs) list. None means the caller must fall through to struct-list codegen (if inner names a known struct) — anything else is an unresolved reference and must be treated as a hard generator error, never a silent comment.