type · Browser and Node
Handler
@toip-tools/trust-coreView sourceimport { type Handler } from "@toip-tools/trust-core";
Declaration
type Handler<P, R> = (
doc: TrustTaskDocument<P>,
ctx: { sender: string },
) => Promise<R | Refusal | void> | R | Refusal | void;