Interface PrimitiveBatchContext<T>

PrimitiveBatchContext is a batch context wrapper for a primitive value (string, number, boolean, JSON-serializable object or array, or binary data).

Type Parameters

Hierarchy

  • PrimitiveBatchContext

Methods

  • Get a JavaScript object representation of the primitive value. This is an alias for calling value().

    If the underlying instance's value is not of the expected type at runtime, returns undefined.

    Returns undefined | CompactedValue<T>

  • Get a JSON-serializable representation of the primitive value. Binary values are converted to base64-encoded strings.

    If the underlying instance's value is not of the expected type at runtime, returns undefined.

    Returns undefined | CompactedJsonValue<T>

  • Get the underlying primitive value. If the underlying instance at runtime is not a primitive value, returns undefined.

    Returns undefined | T

Generated using TypeDoc