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.
The collector type (inferred from the collector passed to update())
The value to update the collector with (type depends on T)
Optional
Optional index for multi-value collectors
null on success, or an InternalErrorResponse on failure
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.