styled-components 6.4.0-prerelease.13 → 6.4.0-prerelease.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  'data-styled';
12
12
  const SC_ATTR_ACTIVE = 'active';
13
13
  const SC_ATTR_VERSION = 'data-styled-version';
14
- const SC_VERSION = "6.4.0-prerelease.13";
14
+ const SC_VERSION = "6.4.0-prerelease.14";
15
15
  const SPLITTER = '/*!sc*/\n';
16
16
  const IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';
17
17
  function readSpeedyFlag(name) {
@@ -2395,9 +2395,10 @@
2395
2395
  */
2396
2396
  const baseStyled = (tag) => constructWithOptions(createStyledComponent, tag);
2397
2397
  const styled = baseStyled;
2398
- // Shorthands for all valid HTML Elements
2398
+ // Shorthands for all valid HTML Elements.
2399
+ // The type assertion avoids 120 Styled<> instantiations during type checking —
2400
+ // the correct types are declared on the `styled` const above via the mapped type.
2399
2401
  domElements.forEach(domElement => {
2400
- // @ts-expect-error some react typing bs
2401
2402
  styled[domElement] = baseStyled(domElement);
2402
2403
  });
2403
2404