# ChannelPayloadFilter type · @imqueue/pg-cache

Source: https://imqueue.org/api/pg-cache/latest/pg-cache.channelpayloadfilter/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-cache 5.0.6 — generated reference, not hand-written

Predicate deciding whether one change should invalidate the cached method.

Returning `true` invalidates. Unlike the array form of [ChannelFilter](https://imqueue.org/api/pg-cache/latest/pg-cache.channelfilter/), this reads the way you expect — see that type for the inversion.

**Signature:**

```typescript
export type ChannelPayloadFilter = (payload: ChannelPayload) => boolean;
```
**References:** [ChannelPayload](https://imqueue.org/api/pg-cache/latest/pg-cache.channelpayload/)

