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

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

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