typealias GlobalSweepFilter

export type GlobalSweepFilter<Key, Value> = () => | ((value: Value, key: Key, collection: Collection<Key, Value>) => boolean) | null;

Returns: Return null to skip sweeping, otherwise a function passed to sweep(), See for the definition of this function.

Type Parameters

Key

Value

Union Members

() => | ((value: Value, key: Key, collection: Collection<Key, Value>) => boolean) | null