Skip to main content

History

Stentor API Reference


Stentor API Reference / stentor-history/src / History

Interface: History

Defined in: packages/stentor-models/lib/History.d.ts:38

History is a map to store information about recent activity for the user by some hashed token that links back to the content.

For PlayableHistoryData, the token is the token for the track, for HandlerHistoryData the token is the ID of the Handler.

Indexable​

[token: string]: number | HandlerHistoryData[] | HistoryData

Remaining keys will typically be HistoryData or undefined.

lastTrimmed and handler are reserved keys.

Properties​

lastTrimmed?​

optional lastTrimmed: number

Defined in: packages/stentor-models/lib/History.d.ts:39


handler?​

optional handler: HandlerHistoryData[]

Defined in: packages/stentor-models/lib/History.d.ts:40