// types/global.d.ts declare namespace DiffUtils { function getDifferences(obj1: T, obj2: T): Partial; function isEmpty(obj: T): boolean; } declare global { interface Window { DiffUtils: typeof DiffUtils; } namespace NodeJS { interface Global { DiffUtils: typeof DiffUtils; } } }