Skip to content

Commit

Permalink
ignore ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Dec 29, 2023
1 parent 1716cae commit a80c3d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/lib/codemod/src/transforms/mdx-to-csf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export function transform(source: string, baseName: string): [string, string] {
value: `/* ${nodeString} is deprecated, please migrate it to <Story of={referenceToStory} /> 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
Expand Down

0 comments on commit a80c3d5

Please sign in to comment.