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.
1 parent 1a74e25 commit 55bc785Copy full SHA for 55bc785
4 files changed
src/v3.ts
@@ -73,7 +73,7 @@ export default function generateTypesV3(
73
(node.enum as string[]).map((item) =>
74
typeof item === "number" || typeof item === "boolean"
75
? item
76
- : `'${item}'`
+ : `'${item.replace(/'/g, "\\'")}'`
77
)
78
);
79
}
0 commit comments