Skip to main content
A function declares its arguments with args, an object of value types from t, and may declare its answer with returns. The host checks both: an argument that breaks its type refuses Invalid before the handler runs.
bijection/messages.ts
Argument names starting with _ are refused. See Data types for the field types tables add (t.text, t.vector, t.geometry and the rest). See Version tokens for declaring an argument that selects an earlier version.

Name the types

ValueOf<typeof type> is a value type’s TypeScript type, and FactOf<typeof table> and KeyOf<typeof table> a table’s fact and key: