Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IngestionFilterFn

import type { IngestionFilterFn } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_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 IngestionFilterFn<T = unknown> = (data: T | null, src?: unknown) => IngestionFilterFnResult;

§Type Parameters

§
T = unknown
[src]

§Type

§
(data: T | null, src?: unknown) => IngestionFilterFnResult
[src]