import { Fn } from '../Fn'; import { Option, OptionSome } from '../types'; import { IfInvoking, Input } from '../utils'; export interface UnwrapOr extends Fn, T> { out: IfInvoking>, T>; } export type InvokeUnwrapOr> = [ In ] extends [OptionSome] ? I : V;