Skip to content

Commit

Permalink
Temporary fix for StructuredText types
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Jul 18, 2024
1 parent 79cf042 commit 53991e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/StructuredText/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
});
Expand Down
6 changes: 3 additions & 3 deletions src/components/StructuredText/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>) => AdapterReturn
>,
},
/** Fuction that converts an 'itemLink' node into React **/
renderLinkToRecord: {
type: Function as PropType<
(context: RenderRecordLinkContext) => AdapterReturn
(context: RenderRecordLinkContext<any>) => AdapterReturn
>,
},
/** Fuction that converts a 'block' node into React **/
renderBlock: {
type: Function as PropType<
(context: RenderBlockContext) => AdapterReturn
(context: RenderBlockContext<any>) => AdapterReturn
>,
},
/** Function that converts 'link' and 'itemLink' `meta` into HTML props */
Expand Down

0 comments on commit 53991e2

Please sign in to comment.