Type alias ImmutableMutator<T, B>

ImmutableMutator<T, B>: ((object: T) => B)

Type Parameters

  • T

  • B = T

Type declaration

    • (object: T): B
    • Type of a mutator function for abstract, immutable object. Function provides functionality for creating a new object based on an existing one.

      Returns

      New object

      Parameters

      • object: T

        Reference object

      Returns B