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
T = unknown
The collector type (inferred from the collector passed to update())
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.