@open-xamu-co/ui-common-types 3.0.0-next.19 → 3.0.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/values.ts +5 -0
package/package.json
CHANGED
package/src/values.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type iNodeFn<T extends Record<string, any>, Ta extends [T?, ...any[]] = [
|
|
|
22
22
|
export interface iProperty<
|
|
23
23
|
T extends Record<string, any> = Record<string, any>,
|
|
24
24
|
P extends Record<string, any> = Record<string, any>,
|
|
25
|
+
ComponentType = unknown,
|
|
25
26
|
> extends iSelectOption {
|
|
26
27
|
/**
|
|
27
28
|
* Function to create a node within the relation
|
|
@@ -44,6 +45,10 @@ export interface iProperty<
|
|
|
44
45
|
* Function to delete a node within the relation
|
|
45
46
|
*/
|
|
46
47
|
deleteNode?: iNodeFn<T, [T?]>;
|
|
48
|
+
/**
|
|
49
|
+
* Render using this component instead
|
|
50
|
+
*/
|
|
51
|
+
component?: ComponentType;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
export type tPropertyOrderFn = (a: [string, any], b: [string, any]) => -1 | 0 | 1;
|