Siftline
API reference@siftline/actionsType aliases

ActionId

type ActionId<Actions> = keyof Actions & string;

The Action ids of a defineActions result, as a union of literals. Pass it as the second argument to Rule, Rule<Questions, ActionId<typeof actions>>, so a Rule naming an Action you did not define fails to compile.

Type Parameters

Type Parameter
Actions extends ActionSet

On this page