Skip to content

Commit

Permalink
Merge pull request #36 from TomasHubelbauer/main
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe authored Jun 26, 2024
2 parents ad1f9b4 + b5d4ca1 commit c2690a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/transform-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ export const transformTypes = z
}

// Handle single-member enums
if (ts.isIdentifier(n)) {
if (ts.isLiteralTypeNode(n)) {
const formattedName = enumFormatter(enumName);
typeStrings.push(
`export type ${formattedName} = '${n.getText(
`export type ${formattedName} = ${n.getText(
sourceFile,
)}'`,
)}`,
);
enumNames.push({
formattedName,
Expand Down

0 comments on commit c2690a0

Please sign in to comment.