Skip to main content

State

Index

Properties

optionalname

name?: string

optionalonEnter

onEnter?: (context: { data: any; eventData?: any; from: string }) => boolean | void

Type declaration

    • (context: { data: any; eventData?: any; from: string }): boolean | void
    • Parameters

      • context: { data: any; eventData?: any; from: string }

      Returns boolean | void

optionalonExit

onExit?: (context: { data: any; to: string }) => boolean | void

Type declaration

    • (context: { data: any; to: string }): boolean | void
    • Parameters

      • context: { data: any; to: string }

      Returns boolean | void

optionalonState

onState?: () => any

Type declaration

    • (): any
    • Returns any

optionalonUpdate

onUpdate?: (data: any, elapsedMs: number) => any

Type declaration

    • (data: any, elapsedMs: number): any
    • Parameters

      • data: any
      • elapsedMs: number

      Returns any

transitions

transitions: string[]