Skip to content

Commit 1086387

Browse files
committed
fix(ts): use quotes for enums
1 parent ee786f4 commit 1086387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function generate(file: string | typeof process.stdin, options: Ope
3030

3131
function addEnum(title: string, values: string[]) {
3232
const definition = `export enum ${title}Enum {
33-
${values.map((e) => `${e} = '${e}'`).join(',\n ')}
33+
${values.map((e) => `"${e}" = "${e}"`).join(',\n ')}
3434
}
3535
`;
3636
if (enumsByName[title] && enumsByName[title] !== definition) {

0 commit comments

Comments
 (0)