From 53991e2a9045a777ab47afeb60b3e38096cbe7ef Mon Sep 17 00:00:00 2001 From: Stefano Verna Date: Thu, 18 Jul 2024 07:28:38 +0200 Subject: [PATCH] Temporary fix for StructuredText types --- src/components/StructuredText/__tests__/index.test.ts | 2 +- src/components/StructuredText/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/StructuredText/__tests__/index.test.ts b/src/components/StructuredText/__tests__/index.test.ts index 359b1a8..61ec9e2 100644 --- a/src/components/StructuredText/__tests__/index.test.ts +++ b/src/components/StructuredText/__tests__/index.test.ts @@ -335,7 +335,7 @@ describe('StructuredText', () => { }; describe('with default rules', () => { - it.only('renders the document', () => { + it('renders the document', () => { const wrapper = mount(StructuredText, { propsData: { data: structuredText }, }); diff --git a/src/components/StructuredText/index.ts b/src/components/StructuredText/index.ts index f399129..67f3709 100644 --- a/src/components/StructuredText/index.ts +++ b/src/components/StructuredText/index.ts @@ -127,19 +127,19 @@ export const StructuredText = defineComponent({ /** Fuction that converts an 'inlineItem' node into React **/ renderInlineRecord: { type: Function as PropType< - (context: RenderInlineRecordContext) => AdapterReturn + (context: RenderInlineRecordContext) => AdapterReturn >, }, /** Fuction that converts an 'itemLink' node into React **/ renderLinkToRecord: { type: Function as PropType< - (context: RenderRecordLinkContext) => AdapterReturn + (context: RenderRecordLinkContext) => AdapterReturn >, }, /** Fuction that converts a 'block' node into React **/ renderBlock: { type: Function as PropType< - (context: RenderBlockContext) => AdapterReturn + (context: RenderBlockContext) => AdapterReturn >, }, /** Function that converts 'link' and 'itemLink' `meta` into HTML props */