Skip to content

Commit

Permalink
Allow passing in of Partial feature flags (#9652)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjervis authored Apr 17, 2024
1 parent ecf737e commit ae90f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/types-internal/scripts/build-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ contents = contents.replace(
);
contents = contents.replace(/\$ReadOnlyMap/g, 'ReadonlyMap');
contents = contents.replace(/\$ReadOnlySet/g, 'ReadonlySet');
contents = contents.replace(/\$Partial/g, 'Partial');

fs.writeFileSync(typesPath, contents);
2 changes: 1 addition & 1 deletion packages/core/types-internal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export type InitialParcelOptionsInternal<WorkerFarm> = {|
resolveFrom: FilePath,
|}>,

+featureFlags?: FeatureFlags,
+featureFlags?: $Partial<FeatureFlags>,

// throwErrors
// global?
Expand Down

0 comments on commit ae90f08

Please sign in to comment.