export type Key = keyof any export type Object = { [key in K]?: V } export function toObject(value: [K, V][]): Object { return Object.fromEntries(value) as Object; }