Skip to content

@ue-too/being / index / GuardMapping

型エイリアス: GuardMapping<Context, G, States> ​

GuardMapping<Context, G, States> = object

定義: interface.ts:528

Description ​

This is a mapping of a guard to a target state.

Generic parameters:

  • Context: The context of the state machine. (which can be used by each state to do calculations that would persist across states)
  • G: The guard type.
  • States: All of the possible states that the state machine can be in. e.g. a string literal union like "IDLE" | "SELECTING" | "PAN" | "ZOOM"

You probably don't need to use this type directly.

参照 ​

['eventGuards']

型パラメーター ​

Context ​

Context extends BaseContext

G ​

G

States ​

States extends string

プロパティ ​

guard ​

guard: G extends Guard<Context, infer K> ? K : never

定義: interface.ts:533


target ​

target: States

定義: interface.ts:534