Skip to content

ValueBox

T extends ArrayValue

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

T

undefined | null | ValueBoxMetadata

ValueBox<T>

get metadata(): ValueBoxMetadata

ValueBoxMetadata


get value(): T

T

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

U extends ArrayValue

R extends undefined | ArrayValue | Reference | Matrix

(value) => R

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


toString(): string

string


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

U extends ArrayValue

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

V

ValueBoxMetadata

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