Class ObjectBuilder<T, K, V>Abstract

A builder that constructs an object.

Type Parameters

  • in T

  • in out K extends number | string | symbol

  • out V

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • in T

    • in out K extends string | number | symbol

    • out V

    Parameters

    • initial: Record<K, V> = ...

    Returns ObjectBuilder<T, K, V>

Properties

output: Record<K, V>

Methods

  • Add a single element to this builder.

    Parameters

    • input: T

    Returns void

  • Return the result of all elements added to this builder.

    Returns Record<K, V>

Generated using TypeDoc