You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: npm-packages/convex/schemas/convex.schema.json
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -54,10 +54,11 @@
54
54
"type": "object",
55
55
"description": "Configuration for Convex code generation.",
56
56
"properties": {
57
-
"legacyJavaScriptFileType": {
58
-
"type": "boolean",
59
-
"description": "When true (or omitted, default is true), generates separate .js and .d.ts files for the Convex API. When false generates combined .ts files instead. The .ts format is more modern and recommended for TypeScript projects.\n\nNote: This option must be true when using generateCommonJSApi.",
60
-
"default": true
57
+
"fileType": {
58
+
"type": "string",
59
+
"enum": ["ts", "js/dts"],
60
+
"description": "The file format of generated code. \"ts\" generates combined .ts files (recommended for TypeScript projects), \"js/dts\" generates separate .js and .d.ts files.\n\nNote: \"js/dts\" must be used when using generateCommonJSApi.",
0 commit comments