Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
type alias IngestionFilterFn
import { type IngestionFilterFn } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

IngestionFilterFn prevents a value from being ingested by the iterator. It is executed on push. If ingest is false the value shouldn't be pushed. If protcol is true, the value is a protcol value

Type Parameters

optional
T = unknown
definition: (data: T | null, src?: unknown) => IngestionFilterFnResult