Skip to content

routier-collection


routier-collection / core/src / TranslatedArrayValue

Class: TranslatedArrayValue<T>

Defined in: core/src/plugins/translators/TranslatedArrayValue.ts:3

Type Parameters

T

T

Implements

Constructors

Constructor

new TranslatedArrayValue<T>(value, isTransformed): TranslatedArrayValue<T>

Defined in: core/src/plugins/translators/TranslatedArrayValue.ts:9

Parameters

value

unknown

isTransformed

boolean

Returns

TranslatedArrayValue<T>

Properties

value

readonly value: T

Defined in: core/src/plugins/translators/TranslatedArrayValue.ts:5

Implementation of

ITranslatedValue.value


isTransformed

readonly isTransformed: boolean

Defined in: core/src/plugins/translators/TranslatedArrayValue.ts:6

True if the translator remapped or transformed the data from the database shape; false if the data is unchanged and in the same shape as the database.

Implementation of

ITranslatedValue.isTransformed


isEmpty

readonly isEmpty: boolean

Defined in: core/src/plugins/translators/TranslatedArrayValue.ts:7

Implementation of

ITranslatedValue.isEmpty

Methods

forEach()

forEach(callback): void

Defined in: core/src/plugins/translators/TranslatedArrayValue.ts:15

Iterates over items in the collection, calling the callback for each item. If the callback returns a value, that value replaces the original item (e.g. so changeTracker.resolve() can swap in attached/merged entities).

Parameters

callback

(item) => unknown

Function called for each item. If it returns a value, that value replaces the original item.

Returns

void

Implementation of

ITranslatedValue.forEach

Released under the MIT License.