common
7 months ago
components
5 months ago
fields
7 months ago
hooks
8 months ago
providers
6 months ago
ajv.ts
7 months ago
types.ts
8 months ago
utils.ts
7 months ago
types.ts
33 lines
| 1 | /** |
| 2 | * Schema property interface for filtering read-only fields |
| 3 | * |
| 4 | * @since 4.10.0 |
| 5 | */ |
| 6 | export interface SchemaProperty { |
| 7 | readOnly?: boolean; |
| 8 | properties?: Record<string, SchemaProperty>; |
| 9 | [key: string]: any; |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * @since 4.11.0 |
| 14 | */ |
| 15 | export interface SelectOption { |
| 16 | value: number; |
| 17 | label: string; |
| 18 | record?: any; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * @since 4.11.0 |
| 23 | */ |
| 24 | export interface UseAsyncSelectOptionReturn { |
| 25 | selectedOption: SelectOption | null; |
| 26 | loadOptions: (searchInput: string) => Promise<{ |
| 27 | options: SelectOption[]; |
| 28 | hasMore: boolean; |
| 29 | }>; |
| 30 | mapOptionsForMenu: (options: SelectOption[]) => SelectOption[]; |
| 31 | error: Error | null; |
| 32 | } |
| 33 |