travels3.0
API 参考类型别名

PatchableInput<T>

Travels 3.0.1. Travels 3 API reference for PatchableInput.

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

PatchableInput<T> = [NonPatchableValue<T>] extends [never] ? T : never

Defined in: src/type.ts:160

Preserve an inferred state type when its reachable properties are statically compatible with the durable patch/persistence contract.

Recursive types are inspected to a finite depth and broad {}-shaped values cannot be proven from their static type alone. The strict factory therefore also validates the concrete initial value at runtime.

Type Parameters

T

T

本页目录