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
readonlyvalue:T
Defined in: core/src/plugins/translators/TranslatedGroupValue.ts:5
Implementation of
isTransformed
readonlyisTransformed: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
readonlyisEmpty:boolean
Defined in: core/src/plugins/translators/TranslatedGroupValue.ts:7
Implementation of
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