Skip to main content

Unhydrated TypeAlias

Type alias to document which values are un-hydrated.

Un-hydrated values are nodes produced from schema's create functions that haven't been inserted into a tree yet.

Since un-hydrated nodes become hydrated when inserted, strong typing can't be used to distinguish them. This no-op wrapper is used instead.

Signature

export type Unhydrated<T> = T;

Type Parameters

Parameter Description
T

Remarks

Nodes which are Unhydrated report TreeStatus.new from Tree.status(node).