travels3.0
API 参考类型别名

RestoreTravelsOptions<S, F, A, P>

Travels 3.0.1. Travels 3 API reference for RestoreTravelsOptions.

此页尚未提供中文译文。以下内容由英文源码注释生成,API 名称与签名保持原样。

RestoreTravelsOptions<S, F, A, P> = TravelsOptions<F, A, P, S> & object

Defined in: src/restoreTravels.ts:20

Options accepted by restoreTravels().

The restored state is detached from the snapshot. A mutable timeline can instead restore into an existing live root, such as a MobX, Vue, or Pinia store object: Travels overwrites target in place with the snapshot state and keeps that reference as its state.

Type Declaration

target?

optional target: S

Live mutable root that receives the restored state in place. Requires mutable: true and the same plain object or array root kind as the snapshot state.

Type Parameters

S

S

F

F extends boolean

A

A extends boolean

P

P extends PatchesOption = { }

本页目录