reablocks
Version:
Component library for React
15 lines (13 loc) • 364 B
TypeScript
import { SelectOptionProps } from '../SelectOption';
export interface GroupOptions {
groups: GroupOption[];
itemsCount: number;
hasGroups: boolean;
}
export interface GroupOption {
offset: number;
index: number;
items: SelectOptionProps[];
name: string;
}
export declare function getGroups(options: SelectOptionProps[]): GroupOptions;