Skip to content

Commit 3a8efa8

Browse files
refactor(enhanced): remove union cast for experiments
Assign options.experiments directly; rely on optional field Schema already restricts to aliasConsumption; regenerated schemas
1 parent e49134a commit 3a8efa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/enhanced/src/lib/sharing/SharePlugin.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ class SharePlugin {
103103
this._provides = provides;
104104
// keep experiments object if present (validated by schema)
105105
// includes only aliasConsumption (experimental)
106-
this._experiments = options.experiments as
107-
| SharePluginOptions['experiments']
108-
| undefined;
106+
this._experiments = options.experiments;
109107
}
110108

111109
/**

0 commit comments

Comments
 (0)