import { Fn } from '../Fn'; import { Invoke } from '../Invoke'; import { Option, OptionSome } from '../types'; import { IfInvoking, Input } from '../utils'; export interface AndThen>> extends Fn, Option> { out: IfInvoking>, Option>; } export type InvokeAndThen>, In extends Option> = [In] extends [OptionSome] ? Invoke : In;