OpenUI.Library.Callable (OpenUI v0.1.1)

Copy Markdown View Source

A custom function or action of a library.

impl is set only for functions: it receives one map keyed by the param names and returns the result. Actions run in the host, never here.

Summary

Types

t()

@type t() :: %OpenUI.Library.Callable{
  description: String.t(),
  impl: (map() -> term()) | nil,
  name: String.t(),
  params: [OpenUI.Library.Prop.t()],
  returns: map() | nil,
  signature: String.t()
}