HistoryRequestHandler: (
    this: EEvisionAPI,
    hstate: DeepReadonly<HistoryState>,
) => Promise<unknown>

Type of the handler that is called whenever a new history state is created or the current history state is updated.

Type declaration

    • (this: EEvisionAPI, hstate: DeepReadonly<HistoryState>): Promise<unknown>
    • Parameters

      Returns Promise<unknown>

      the additional data for the history state. Note that the returned data must be serializable as a string (e.g., it is not allowed to contain functions).