import { type PromisifyProcedure } from "https://deno.land/x/enzastdlib@v0.0.4/rpc-protocol/mod.ts";
Represents a utility type that "promisifies" a procedures
by converting its second argument as its only argument. And
converts its return type into a Promise
if not already.
Type Parameters
Procedure extends ProcedureCallback
optional
Options extends CallOptions = CallOptionsoptional
_ParametersType = Parameters<Procedure>[1]definition: _ParametersType extends undefined ? ((parameters?: undefined, options?: Options) => _ReturnType) : ((parameters: _ParametersType, options?: Options) => _ReturnType)