x/evt/lib/types/helper/UnpackCtx.ts
123456789101112export 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 ;