API reference › @evolu/common › Function
Function utilities including exhaustive checks and composition.
| Function | Description |
|---|
| exhaustiveCheck | Helper function to ensure exhaustive matching in a switch statement. Throws an error if an unhandled case is encountered. |
| identity | Returns the value unchanged. |
| lazy | Creates a Lazy from a precomputed value. |
| todo | Development placeholder that always throws. |
| Type Alias | Description |
|---|
| Lazy | A function that takes no arguments and returns a value of type T. Also known as a thunk. |