@tinacms/schema-tools 1.6.0 → 1.6.1
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/dist/types/index.d.ts +11 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -158,7 +158,17 @@ export declare type DateTimeField = (FieldGeneric<string, undefined, DateFormatP
|
|
|
158
158
|
export declare type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string, true> | FieldGeneric<string, false>) & BaseField & {
|
|
159
159
|
type: 'image';
|
|
160
160
|
};
|
|
161
|
-
export declare type ReferenceField = (FieldGeneric<string, undefined
|
|
161
|
+
export declare type ReferenceField = (FieldGeneric<string, undefined, {
|
|
162
|
+
optionComponent?: (props: {
|
|
163
|
+
values: Record<string, unknown>;
|
|
164
|
+
_sys: Document['_sys'];
|
|
165
|
+
}) => Element | undefined;
|
|
166
|
+
}> | FieldGeneric<string, false, {
|
|
167
|
+
optionComponent?: (props: {
|
|
168
|
+
values: Record<string, unknown>;
|
|
169
|
+
_sys: Document['_sys'];
|
|
170
|
+
}) => Element | undefined;
|
|
171
|
+
}>) & BaseField & {
|
|
162
172
|
type: 'reference';
|
|
163
173
|
/**
|
|
164
174
|
* The names of the collections this field can use as a reference
|