Type Alias FieldOptions<TSource, TValue>

FieldOptions<TSource, TValue>: InitStreamOptions & {
    fallbackFieldValue: TValue;
    fallbackObject: TSource;
}

Type Parameters

  • TSource
  • TValue

Type declaration

  • fallbackFieldValue: TValue

    If field is missing on a value and fallbackObject (if specified), this value is used in its place. If not set, no value is emitted when the field is missing.

  • fallbackObject: TSource

    If field is missing on a value, it is query from this object instead. If this also is missing, fallbackFieldValue is attempted.