From ae90f088bba9900fd67f28212b9ed65fefe9b08b Mon Sep 17 00:00:00 2001 From: Ben Jervis Date: Wed, 17 Apr 2024 19:09:10 +1000 Subject: [PATCH] Allow passing in of Partial feature flags (#9652) --- packages/core/types-internal/scripts/build-ts.js | 1 + packages/core/types-internal/src/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/types-internal/scripts/build-ts.js b/packages/core/types-internal/scripts/build-ts.js index 0244384cf47..6d2a346aff3 100644 --- a/packages/core/types-internal/scripts/build-ts.js +++ b/packages/core/types-internal/scripts/build-ts.js @@ -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); diff --git a/packages/core/types-internal/src/index.js b/packages/core/types-internal/src/index.js index 39b4e9bf9f1..1fae14576d8 100644 --- a/packages/core/types-internal/src/index.js +++ b/packages/core/types-internal/src/index.js @@ -385,7 +385,7 @@ export type InitialParcelOptionsInternal = {| resolveFrom: FilePath, |}>, - +featureFlags?: FeatureFlags, + +featureFlags?: $Partial, // throwErrors // global?