We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4363c2f + d22cb75 commit a34288cCopy full SHA for a34288c
website/src/routes/guides/(migration)/migrate-from-zod/CodemodEditor.tsx
@@ -49,12 +49,14 @@ export const CodemodEditor = component$(() => {
49
// Get current code from editor model
50
const currentCode = model.value!.getValue();
51
52
+ const tsParser = jscodeshift.withParser('ts');
53
+
54
// Execute codemod with current code
55
const transformedCode = await transform(
56
{ path: 'index.ts', source: currentCode },
57
{
- j: jscodeshift.withParser('ts'),
- jscodeshift,
58
+ j: tsParser,
59
+ jscodeshift: tsParser,
60
stats: () => {},
61
report: () => {},
62
},
0 commit comments