Skip to content

shared/ipc/history-contracts

HistoryItem = v.InferOutput<typeof HistoryItem>

Defined in: app/src/shared/ipc/history-contracts.ts:5

A page of the history as the history page shows it.

const ClearHistory: RequestContract<{ }, null>

Defined in: app/src/shared/ipc/history-contracts.ts:35

Removes the whole history.


const DeleteHistory: RequestContract<{ ids: number[]; }, null>

Defined in: app/src/shared/ipc/history-contracts.ts:27

Removes pages from the history.


const HistoryItem: StrictObjectSchema<{ id: NumberSchema<undefined>; lastVisit: NumberSchema<undefined>; title: StringSchema<undefined>; url: StringSchema<undefined>; }, undefined>

Defined in: app/src/shared/ipc/history-contracts.ts:5

A page of the history as the history page shows it.


const ListHistory: RequestContract<{ before?: number; query: string; }, { items: object[]; }>

Defined in: app/src/shared/ipc/history-contracts.ts:16

Lists the history, newest first, optionally matching search words.


const OpenFromHistory: RequestContract<{ newTab: boolean; url: string; }, null>

Defined in: app/src/shared/ipc/history-contracts.ts:43

Opens a page of the history in the history page’s tab or in a new tab.