We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a56859f commit 33601e4Copy full SHA for 33601e4
1 file changed
packages/mcp/src/utils/parse-react-docgen.ts
@@ -109,7 +109,9 @@ const serializeRdtType = (
109
const value = (type as { value?: unknown }).value;
110
if (type.name === 'enum' && Array.isArray(value)) {
111
const members = value
112
- .map((v) => (v && typeof v === 'object' && 'value' in v ? (v as { value: unknown }).value : undefined))
+ .map((v) =>
113
+ v && typeof v === 'object' && 'value' in v ? (v as { value: unknown }).value : undefined,
114
+ )
115
.filter((v): v is string => typeof v === 'string');
116
if (members.length > 0) return members.join(' | ');
117
}
0 commit comments