UNPKG

yahoo-swiv

Version:

A web-based exploratory visualization UI for Druid.io

9 lines (8 loc) 368 B
export interface UpdatedOptions<T> { key?: (thing: T, index?: number) => string; equals?: (thingA: T, thingB: T) => boolean; onEnter?: (newThing: T) => void; onUpdate?: (newThing: T, oldThing: T) => void; onExit?: (oldThing: T) => void; } export declare function updater<T>(oldThings: T[], newThings: T[], updatedOptions: UpdatedOptions<T>): void;