box-ui-elements-mlh
Version:
29 lines (22 loc) • 730 B
JavaScript
// @flow
import { List } from 'immutable';
import type { SelectOptionProp, SelectOptionValueProp } from '../select-field/props';
export type Option = SelectOptionProp;
export type OptionValue = SelectOptionValueProp;
export type SelectedOptions = Array<Option> | List<Option>;
export type SuggestedPill = {
email: string,
id: number,
name: string,
text?: string,
type?: string,
value?: string,
};
export type RoundOption = {
hasWarning: boolean,
id?: number | string,
isExternalUser: boolean,
} & Option;
export type SelectedRoundOptions = Array<RoundOption> | List<RoundOption>;
export type SuggestedPills = Array<SuggestedPill>;
export type SuggestedPillsFilter = $Keys<SuggestedPill>;