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 a84c527 commit 38f7f3d
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 @@ -85,7 +85,9 @@ export function isLiteralUnion(type: UnionType): boolean {
function getLiteralValues(value: LiteralType | EnumType | NullType): readonly (LiteralValue | null)[] {
if (value instanceof EnumType) {
return value.getValues();
} else if (value instanceof LiteralType) {
}

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

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Delete `····`

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

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

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

0 comments on commit 38f7f3d

Please sign in to comment.