Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/mod.ts>CtxLike

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