pub fn add_function(
registry: &mut ShapeRegistry,
properties: Vec<(String, Type)>,
sig: FunctionSignatureBuilder,
id: Option<&str>,
is_constructor: bool,
) -> TypeExpand description
Add a non-hook function to a ShapeRegistry.
Returns a Type::Function representing the added function.