UNPKG

863 BTypeScriptView Raw
1type ResourceType = {
2 postGet?: Function;
3 post?: Function;
4 getResult?: string | Function;
5};
6
7type GraphQLConfigType = {
8 type?: string;
9 query?: string;
10};
11
12export interface AvResourceSelectProps {
13 requestConfig?: object;
14 resource: ResourceType;
15 getResult?: string | Function;
16 hasMore?: boolean | Function;
17 delay?: number;
18 debounceTimeout?: number;
19 label?: React.ReactNode;
20 customerId?: string;
21 parameters?: object | ((params: any) => any);
22 method?: 'POST';
23 itemsPerPage?: number;
24 onPageChange?: Function;
25 isDisabled?: boolean;
26 requiredParams?: any[];
27 watchParams?: any[];
28 cacheUniq?: any;
29 additional?: object;
30 graphqlConfig?: GraphQLConfigType;
31 minCharsToSearch?: number;
32 waitUntilFocused?: boolean;
33}
34
35declare const AvResourceSelect: React.ComponentType<AvResourceSelectProps>;
36
37export default AvResourceSelect;
38
\No newline at end of file