We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 487e13a commit 5f1f0c5Copy full SHA for 5f1f0c5
apps/web/src/features/upload/utils.ts
@@ -337,11 +337,7 @@ function generateSampleData({
337
return formatTypeInfo('number', isOptional);
338
case 'ZodSet':
339
try {
340
- if (enumValues) {
341
- const enumString = enumValues.join('/');
342
- const possibleEnumOutputs = `SET(${enumString}, ...)`;
343
- return formatTypeInfo(possibleEnumOutputs, isOptional);
344
- }
+ if (enumValues) return formatTypeInfo(`SET(${enumValues.join('/')}, ...)`, isOptional);
345
346
return formatTypeInfo('SET(a,b,c)', isOptional);
347
} catch {
0 commit comments