@ssv/core
Version:
Core utilities, components and services for browser and node
16 lines (15 loc) • 492 B
TypeScript
export interface Selectable {
/**
* Gets or sets whether the item is selected or not.
*/
isSelected: boolean;
}
export interface Dictionary<T> {
[key: string]: T;
}
/**
* Unselect all collection items and select only the item specified.
* @param {Selectable[]} collection collection to unselect.
* @param {Selectable} selectItem item to select.
*/
export declare function mutualExclusiveSelect(collection: Selectable[], selectItem: Selectable): void;