export interface OptionSet {
id: A;
name: string;
}
/**
* generic input props
*/
export interface InputProps {
onChange: (v: A | undefined) => void;
value?: A;
errors?: string[];
disabled?: boolean;
placeholder?: string;
}
/**
* select props for dropdowns that return either a string or number (ie. enum)
*/
export declare type InputTypeString = "text" | "email" | "password";
/**
* select props for dropdowns that return an option set
*/
export declare type InputType = InputTypeString | "number";
export interface SelectProps extends InputProps {
options: OptionSet[];
}
export interface SelectOptionSetProps extends InputProps> {
options: OptionSet[];
}