fix: select component types

This commit is contained in:
Jacob Fletcher
2021-11-29 18:27:14 -05:00
parent 0b13eda1e5
commit 7e2b259816
5 changed files with 16 additions and 13 deletions

View File

@@ -48,10 +48,13 @@ export type Labels = {
export type Validate<T = any> = (value?: T, options?: any) => string | true | Promise<string | true>;
export type Option = {
export type OptionObject = {
label: string
value: string
}
export type Option = OptionObject | string
export interface FieldBase {
name: string;
label?: string | false;