Some generic code
interface IObjectMap { [name: string]: TItem; } public type SelectedGetter = (item: TItem) => boolean; pu