Type Alias CustomOrDefaultType<CustomDeSerializerT, EdmT, DefaultDeSerializersT>

CustomOrDefaultType: EdmT extends keyof CustomDeSerializerT
    ? CustomDeSerializerT[EdmT] extends | DeSerializer<infer CustomT>
    | undefined
        ? CustomT
        : DeserializedType<DefaultDeSerializersT, EdmT>
    : DeserializedType<DefaultDeSerializersT, EdmT>

Infers the deserialized type for an EDM type, based on custom (de-)serializers. If the custom (de-)serializers specify a type for the given EDM type, this type is inferred. Otherwise the given DefaultType is used.

Type Parameters

  • CustomDeSerializerT

    Type of the custom (de-)serializers.

  • EdmT

    The EDM type to infer the type for.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.

  • DefaultDeSerializersT extends DefaultDeSerializers