Skip to main content
Module

x/evt/mod.ts>CtxLike

💧EventEmitter's typesafe replacement
Go to Latest
namespace CtxLike
import { CtxLike } from "https://deno.land/x/evt@v2.4.3/mod.ts";
interface CtxLike
import { type CtxLike } from "https://deno.land/x/evt@v2.4.3/mod.ts";

Minimal interface that an object must implement to be a valid context argument ( for interop between mismatching EVT versions )

Type Parameters

optional
Result = any

Methods

done(result: Result): void
abort(error: Error): void
zz__addHandler<T>(handler: Handler<T, any, CtxLike<Result>>, evt: NonPostableEvtLike<T>): void
zz__removeHandler<T>(handler: Handler<T, any, CtxLike<Result>>): void