Type Editor / @type-editor/commands / util/chain-commands
util/chain-commands
Functions
| Function | Description |
|---|---|
Combines multiple command functions into a single command that executes them sequentially until one succeeds. This function creates a command that tries each provided command in order. The first command that returns This is particularly useful for creating fallback behavior where you want to try multiple strategies for handling a user action. Example typescript |