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: packages/types/src/schemas/common.ts
+5-3
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,11 @@ export type PreviewSchema = z.infer<typeof previewSchema>;
58
58
59
59
exportconstfileSystemSchema=z.object({
60
60
watch: z
61
-
.boolean()
62
-
.optional()
63
-
.describe('When set to true, file changes in WebContainer are updated in the editor as well.'),
61
+
.union([z.boolean(),z.array(z.string())])
62
+
.describe(
63
+
'When set to true, file changes in WebContainer are updated in the editor as well. When set to an array, file changes or new files in the matching paths are updated in the editor.',
0 commit comments