import {AnalyticsDispatcher} from '../../internal/AnalyticsDispatcher'; import {DataMap} from '../../internal/types'; import {withIdentities as higherOrder} from '../../extenders'; function withIdentities(this: AnalyticsDispatcher, identities: DataMap) { return higherOrder(identities)(this); } (AnalyticsDispatcher as any).prototype.withIdentities = withIdentities; declare module '../../internal/AnalyticsDispatcher' { interface AnalyticsDispatcher { withIdentities: typeof withIdentities; } }