From a80c3d5ce4e86492da0f8243c69a2ef2ef0c3e44 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 29 Dec 2023 14:45:42 -0300 Subject: [PATCH] ignore ts error --- code/lib/codemod/src/transforms/mdx-to-csf.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/code/lib/codemod/src/transforms/mdx-to-csf.ts b/code/lib/codemod/src/transforms/mdx-to-csf.ts index b5f68b8a7b50..51bd69be962d 100644 --- a/code/lib/codemod/src/transforms/mdx-to-csf.ts +++ b/code/lib/codemod/src/transforms/mdx-to-csf.ts @@ -136,6 +136,7 @@ export function transform(source: string, baseName: string): [string, string] { value: `/* ${nodeString} is deprecated, please migrate it to see: https://storybook.js.org/migration-guides/7.0 */`, }; storiesMap.set(idAttribute.value as string, { type: 'id' }); + // @ts-expect-error issue with mdast types parent?.children.splice(index as number, 0, newNode); // current index is the new comment, and index + 1 is current node // SKIP traversing current node, and continue with the node after that