Skip to content

@ue-too/being / GuardFunction

Type Alias: GuardFunction()<Context>

GuardFunction<Context> = (context) => boolean

Defined in: schema-factory.ts:61

Guard function that evaluates whether a transition should occur. Returns true if the guard condition is met.

Type Parameters

Context

Context extends BaseContext = BaseContext

Parameters

context

Context

Returns

boolean