Skip to content

ValueBox

T extends ArrayValue

new ValueBox<T>(value, metadata): ValueBox<T>;

T

ValueBoxMetadata | null | undefined

ValueBox<T>

get metadata(): ValueBoxMetadata;

ValueBoxMetadata


get value(): T;

T

map<U, R>(transformFunc): R extends U ? MaybeBoxed<U> :
| Reference
| Matrix
| MaybeBoxed<U>
| undefined;

U extends ArrayValue

R extends | ArrayValue | Reference | Matrix | undefined

(value) => R

R extends U ? MaybeBoxed<U> : | Reference | Matrix | MaybeBoxed<U> | undefined


toString(): string;

string


static fromValue<U, V>(value, metadata?): V extends MaybeBoxed<U> ? ValueBox<U> :
| Reference
| Matrix
| ValueBox<U>
| undefined;

U extends ArrayValue

V extends | ArrayValue | Reference | Matrix | ValueBox<U> | undefined

V

ValueBoxMetadata

V extends MaybeBoxed<U> ? ValueBox<U> : | Reference | Matrix | ValueBox<U> | undefined