UNPKG

evt

Version:

Type safe replacement for node's EventEmitter

11 lines (10 loc) 244 B
import { importProxy } from "./importProxy"; import typeCtx } from "./Ctx"; /** * https://docs.evt.land/api/evt/newctx * * return a new Ctx instance * */ export function newCtx<T = void>(): Ctx<T>{ return new importProxy.Ctx(); }