getTypeMapping
Overview
Resolve the mapping for a field's typeSerializer, falling back to the serializer's default entry when typeModel is unknown.
Signature
getTypeMapping(mapping, field)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| mapping | object | yes | The mapping object keyed by typeSerializer and typeModel. |
| field | FieldInfo | yes | Field info containing the typeSerializer/typeModel. |
Returns
T
The matched mapping or the default entry for the serializer.
Source
client/lib/utils/getTypeMapping.js:15