Updater: (
    value: CollectorValueType<T>,
    index?: number,
) => InternalErrorResponse | null

A function type that updates a collector's value. Accepts values appropriate for the collector type. When used with type narrowing, the value parameter will be constrained to the correct type.

Type Parameters

Type declaration