Skip to content

routier-collection


routier-collection / core/src / TranslatedGroupValue

Class: TranslatedGroupValue<T> ​

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

Type Parameters ​

T ​

T

Implements ​

Constructors ​

Constructor ​

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

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

Parameters ​

value ​

unknown

isTransformed ​

boolean

Returns ​

TranslatedGroupValue<T>

Properties ​

value ​

readonly value: T

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

Implementation of ​

ITranslatedValue.value


isTransformed ​

readonly isTransformed: boolean

Defined in: core/src/plugins/translators/TranslatedGroupValue.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/TranslatedGroupValue.ts:7

Implementation of ​

ITranslatedValue.isEmpty

Methods ​

forEach() ​

forEach(callback): void

Defined in: core/src/plugins/translators/TranslatedGroupValue.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.