Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/evt/lib/types/interfaces/CtxLike.ts>CtxLike

💧EventEmitter's typesafe replacement
Go to Latest
namespace CtxLike
import { CtxLike } from "https://deno.land/x/evt@v2.3.1/lib/types/interfaces/CtxLike.ts";
interface CtxLike
import { type CtxLike } from "https://deno.land/x/evt@v2.3.1/lib/types/interfaces/CtxLike.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