Type Alias HookStateChanged

HookStateChanged: (mode: string, state: { ex: DsState; now: DsState }) => void

Hook triggered when the state changes.

Type declaration

    • (mode: string, state: { ex: DsState; now: DsState }): void
    • Parameters

      • mode: string

        Current mode.

      • state: { ex: DsState; now: DsState }

        Object containing previous and current state.

      Returns void