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