-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
33 lines (32 loc) · 1.22 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { IPropertiesEditorConfigurations, IProperty, ISuggestion } from './shared/interfaces';
import { IObservable } from 'react-observing';
import { default as React } from 'react';
interface PropertiesEditorProps {
properties: IObservable<IProperty[]>;
configs?: IPropertiesEditorConfigurations;
/**
* This is used to emit value picker click in some cases
*/
onPickerValueClick?: (property: IProperty) => void;
/**
* This is used to emit name picker click in some cases
*/
onPickerNameClick?: (property: IProperty) => void;
/**
* This is used to get suggestions for fields when needed
*/
onGetNameSuggestions?: (property: IProperty) => ISuggestion[];
/**
* This is used to get suggestions for fields when needed
*/
onGetValueSuggestions?: (property: IProperty) => ISuggestion[];
/**
* This is used to get customized value when needed
*/
onGetValue?: (property: IProperty) => IObservable<string>;
}
export declare const PropertiesEditor: React.FC<PropertiesEditorProps>;
export type { TFieldsTreeValue } from './shared/components/fields/FieldsTree';
export * from './shared/interfaces';
export * from './shared/helpers';
export * from './shared/enums';