Identity transformer. Values are transformed to themselves.

Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

Accessors

  • get domain(): bigint
  • Get the domain.

    Returns bigint

Methods

  • Do the work of transforming a value forward.

    Parameters

    • value: bigint

      Value.

    Returns bigint

    Transformed value.

  • Do the work of transforming a value in reverse.

    Parameters

    • transformedValue: bigint

      Transformed value.

    Returns bigint

    Value.

  • Transform a value forward.

    Parameters

    • value: number | bigint

      Value.

    Returns bigint

    Transformed value.

  • Transform a value forward.

    Type Parameters

    • T

      Type returned by transformation callback.

    Parameters

    • value: number | bigint

      Value.

    • transformationCallback: TransformationCallback<T>

      Called after the value is transformed to convert it to its final value.

    Returns T

    Value transformed into object.

  • Transform values forward.

    Parameters

    • values: Iterable<number | bigint, any, any>

      Values. If this is an instance of Sequencer, the minimum and maximum values are validated prior to transformation. Otherwise, the individual values are validated at the time of transformation.

    Returns IterableIterator<bigint, any, any>

    Transformed values.

  • Transform values forward.

    Type Parameters

    • T

      Type returned by transformation callback.

    Parameters

    • values: Iterable<number | bigint, any, any>

      Values. If this is an instance of Sequencer, the minimum and maximum values are validated prior to transformation. Otherwise, the individual values are validated at the time of transformation.

    • transformationCallback: TransformationCallback<T>

      Called after each value is transformed to convert it to its final value.

    Returns IterableIterator<T, any, any>

    Values transformed into objects.

  • Transform a value or values forward. This signature exists to allow similar overloaded methods in other classes to call this method correctly.

    Parameters

    • valueOrValues: number | bigint | Iterable<number | bigint, any, any>

    Returns bigint | IterableIterator<bigint, any, any>

  • Transform a value or values forward. This signature exists to allow similar overloaded methods in other classes to call this method correctly.

    Type Parameters

    • T

    Parameters

    Returns T | IterableIterator<T, any, any>

  • Transform a value in reverse.

    Parameters

    • transformedValue: number | bigint

      Transformed value.

    Returns bigint

    Value.