Skip to content

Commit

Permalink
Update src/TypeFormatter/LiteralUnionTypeFormatter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette authored Jan 7, 2025
1 parent 680f2dc commit a84c527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TypeFormatter/LiteralUnionTypeFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ function getLiteralValues(value: LiteralType | EnumType | NullType): readonly (L
function getLiteralTypes(value: LiteralType | EnumType | NullType): RawTypeName[] {
if (value instanceof EnumType) {
return value.getValues().map(typeName);
} else if (value instanceof LiteralType) {
}

Check failure on line 98 in src/TypeFormatter/LiteralUnionTypeFormatter.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Delete `····`

Check failure on line 98 in src/TypeFormatter/LiteralUnionTypeFormatter.ts

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

Delete `····`
if (value instanceof LiteralType) {
return [typeName(value.getValue())];
}
return ["null"];
Expand Down

0 comments on commit a84c527

Please sign in to comment.