toip.tools

type · Browser and Node

Handler

@toip-tools/trust-coreView source
TypeScriptImport
import { type Handler } from "@toip-tools/trust-core";

Declaration

TypeScripttype
type Handler<P, R> = (
  doc: TrustTaskDocument<P>,
  ctx: { sender: string },
) => Promise<R | Refusal | void> | R | Refusal | void;