export interface Upsertable { path: string; [key: string]: unknown; } export default function upsert(array: T[], element: T): void;