Skip to main content
Module

x/enzastdlib/rpc-protocol/procedure.ts>ProcedureCallback

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
type alias ProcedureCallback
import { type ProcedureCallback } from "https://deno.land/x/enzastdlib@v0.0.4/rpc-protocol/procedure.ts";

Represents the typing of a procedure callback that can be registered.

Type Parameters

optional
ParametersType extends any = any
optional
ReturnType extends any = any
definition: (payload: Procedure, parameters: ParametersType) => Promise<ReturnType> | ReturnType