import { Fn } from '../Fn'; import { Invoke } from '../Invoke'; import { IfInvoking, Input } from '../utils'; export type ToObjectInput = { [K in keyof Out]: Fn; }; export interface ToObject> extends Fn { out: IfInvoking>, Out>; } export type InvokeToObject, Input extends In> = { [K in keyof Out]: Extract, Out[K]>; };