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

x/evt/lib/types/helper/UnpackCtx.ts

💧EventEmitter's typesafe replacement
Latest
File


export interface CtxLike<Result = any> { done(result: Result): void;}
/** Analog to UnpackEvt<E> Unpack the type argument of a Ctx */export type UnpackCtx<Ctx extends CtxLike<any> | undefined | null> = Ctx extends CtxLike<infer U> ? U : never ;