Skip to content

Commit 2c275d2

Browse files
committed
Update schema
1 parent f21beb0 commit 2c275d2

File tree

1 file changed

+1
-4
lines changed
  • compiler/packages/babel-plugin-react-compiler/src/Entrypoint

1 file changed

+1
-4
lines changed

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ const EslintSuppressionRulesSchema = z
5757
type EslintSuppressionRules = z.infer<typeof EslintSuppressionRulesSchema>;
5858

5959
const SourcesSchema = z
60-
.union([
61-
z.array(z.string()),
62-
z.function().args(z.string()).returns(z.boolean()),
63-
])
60+
.union([z.array(z.string()), z.function(z.tuple([z.string()]), z.boolean())])
6461
.nullable();
6562
type Sources = z.infer<typeof SourcesSchema>;
6663

0 commit comments

Comments
 (0)