We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530833a commit 4f8c634Copy full SHA for 4f8c634
packages/fern-docs/ui/src/type-shorthand/index.tsx
@@ -218,13 +218,7 @@ export function renderTypeShorthand(
218
},
219
discriminatedUnion: () =>
220
plural ? "objects" : maybeWithArticle("an", "object"),
221
- enum: (enumValue) => {
222
- // if there are only 1 or 2 values, we can list them like literals (e.g. "apple" or "banana")
223
- if (enumValue.values.length > 0 && enumValue.values.length < 3) {
224
- return enumValue.values
225
- .map((value) => `"${value.value}"`)
226
- .join(" or ");
227
- }
+ enum: () => {
228
return plural ? "enums" : maybeWithArticle("an", "enum");
229
230
0 commit comments