Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface $logger.TransformInContextFn
import { type $logger } from "https://deno.land/x/dxx@rf/src/lib/$shared.ts";
const { TransformInContextFn } = $logger;

Transform function type; describes a simple generic function to perform data transformation. The function takes a context object and an array of input type (I) as rest parameters and which returns an output type (O), undefined, or a promise of either.

Call Signatures

(context: unknown | null, ..._: I[]): O | Promise<O | undefined> | undefined