ValueBox
Type Parameters
Section titled “Type Parameters”T extends ArrayValue
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ValueBox<T>(value, metadata): ValueBox<T>;Parameters
Section titled “Parameters”T
metadata
Section titled “metadata”ValueBoxMetadata | null | undefined
Returns
Section titled “Returns”ValueBox<T>
Accessors
Section titled “Accessors”metadata
Section titled “metadata”Get Signature
Section titled “Get Signature”get metadata(): ValueBoxMetadata;Returns
Section titled “Returns”ValueBoxMetadata
Get Signature
Section titled “Get Signature”get value(): T;Returns
Section titled “Returns”T
Methods
Section titled “Methods”map<U, R>(transformFunc): R extends U ? MaybeBoxed<U> : | Reference | Matrix | MaybeBoxed<U> | undefined;Type Parameters
Section titled “Type Parameters”U extends ArrayValue
R extends
| ArrayValue
| Reference
| Matrix
| undefined
Parameters
Section titled “Parameters”transformFunc
Section titled “transformFunc”(value) => R
Returns
Section titled “Returns”R extends U ? MaybeBoxed<U> :
| Reference
| Matrix
| MaybeBoxed<U>
| undefined
toString()
Section titled “toString()”toString(): string;Returns
Section titled “Returns”string
fromValue()
Section titled “fromValue()”static fromValue<U, V>(value, metadata?): V extends MaybeBoxed<U> ? ValueBox<U> : | Reference | Matrix | ValueBox<U> | undefined;Type Parameters
Section titled “Type Parameters”U extends ArrayValue
V extends
| ArrayValue
| Reference
| Matrix
| ValueBox<U>
| undefined
Parameters
Section titled “Parameters”V
metadata?
Section titled “metadata?”ValueBoxMetadata
Returns
Section titled “Returns”V extends MaybeBoxed<U> ? ValueBox<U> :
| Reference
| Matrix
| ValueBox<U>
| undefined