vue-datocms 7.0.2 → 7.0.5
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/index.d.ts +12 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -415,16 +415,16 @@ type H = typeof defaultAdapter.renderNode;
|
|
|
415
415
|
type T = typeof defaultAdapter.renderText;
|
|
416
416
|
type F = typeof defaultAdapter.renderFragment;
|
|
417
417
|
declare function appendKeyToValidElement(element: AdapterReturn, key: string): AdapterReturn;
|
|
418
|
-
type RenderInlineRecordContext = {
|
|
419
|
-
record:
|
|
418
|
+
type RenderInlineRecordContext<R extends Record$1 = Record$1> = {
|
|
419
|
+
record: R;
|
|
420
420
|
};
|
|
421
|
-
type RenderRecordLinkContext = {
|
|
422
|
-
record:
|
|
421
|
+
type RenderRecordLinkContext<R extends Record$1 = Record$1> = {
|
|
422
|
+
record: R;
|
|
423
423
|
children: RenderResult<H, T, F>[];
|
|
424
424
|
transformedMeta: TransformedMeta;
|
|
425
425
|
};
|
|
426
|
-
type RenderBlockContext = {
|
|
427
|
-
record:
|
|
426
|
+
type RenderBlockContext<R extends Record$1 = Record$1> = {
|
|
427
|
+
record: R;
|
|
428
428
|
};
|
|
429
429
|
declare const StructuredText: vue.DefineComponent<{
|
|
430
430
|
/** The actual field value you get from DatoCMS **/
|
|
@@ -445,15 +445,15 @@ declare const StructuredText: vue.DefineComponent<{
|
|
|
445
445
|
};
|
|
446
446
|
/** Fuction that converts an 'inlineItem' node into React **/
|
|
447
447
|
renderInlineRecord: {
|
|
448
|
-
type: PropType<(context: RenderInlineRecordContext) => AdapterReturn>;
|
|
448
|
+
type: PropType<(context: RenderInlineRecordContext<any>) => AdapterReturn>;
|
|
449
449
|
};
|
|
450
450
|
/** Fuction that converts an 'itemLink' node into React **/
|
|
451
451
|
renderLinkToRecord: {
|
|
452
|
-
type: PropType<(context: RenderRecordLinkContext) => AdapterReturn>;
|
|
452
|
+
type: PropType<(context: RenderRecordLinkContext<any>) => AdapterReturn>;
|
|
453
453
|
};
|
|
454
454
|
/** Fuction that converts a 'block' node into React **/
|
|
455
455
|
renderBlock: {
|
|
456
|
-
type: PropType<(context: RenderBlockContext) => AdapterReturn>;
|
|
456
|
+
type: PropType<(context: RenderBlockContext<any>) => AdapterReturn>;
|
|
457
457
|
};
|
|
458
458
|
/** Function that converts 'link' and 'itemLink' `meta` into HTML props */
|
|
459
459
|
metaTransformer: {
|
|
@@ -490,15 +490,15 @@ declare const StructuredText: vue.DefineComponent<{
|
|
|
490
490
|
};
|
|
491
491
|
/** Fuction that converts an 'inlineItem' node into React **/
|
|
492
492
|
renderInlineRecord: {
|
|
493
|
-
type: PropType<(context: RenderInlineRecordContext) => AdapterReturn>;
|
|
493
|
+
type: PropType<(context: RenderInlineRecordContext<any>) => AdapterReturn>;
|
|
494
494
|
};
|
|
495
495
|
/** Fuction that converts an 'itemLink' node into React **/
|
|
496
496
|
renderLinkToRecord: {
|
|
497
|
-
type: PropType<(context: RenderRecordLinkContext) => AdapterReturn>;
|
|
497
|
+
type: PropType<(context: RenderRecordLinkContext<any>) => AdapterReturn>;
|
|
498
498
|
};
|
|
499
499
|
/** Fuction that converts a 'block' node into React **/
|
|
500
500
|
renderBlock: {
|
|
501
|
-
type: PropType<(context: RenderBlockContext) => AdapterReturn>;
|
|
501
|
+
type: PropType<(context: RenderBlockContext<any>) => AdapterReturn>;
|
|
502
502
|
};
|
|
503
503
|
/** Function that converts 'link' and 'itemLink' `meta` into HTML props */
|
|
504
504
|
metaTransformer: {
|