@codecademy/gamut

73.6.173.6.2-alpha.3e37cd.0
dist/GridForm/GridFormButtons/index.js
~dist/GridForm/GridFormButtons/index.jsModified
+11
Index: package/dist/GridForm/GridFormButtons/index.js
===================================================================
--- package/dist/GridForm/GridFormButtons/index.js
+++ package/dist/GridForm/GridFormButtons/index.js
@@ -2,8 +2,19 @@
 import { GridBox } from '../../Box';
 import { CTAButton, FillButton, TextButton } from '../../Button';
 import { SubmitButton } from '../../ConnectedForm';
 import { Column } from '../../Layout';
+
+/*
+ * `onClick` is re-declared with `ButtonBaseProps`' own flat (button-only)
+ * signature rather than left as `ButtonProps`'s version - `ButtonProps` is
+ * `ButtonBaseProps & ComponentProps<typeof ButtonBase>`, and `ButtonBase`
+ * unions button/anchor variants, so its `onClick` still carries that union.
+ * Intersecting `DataAttributes` onto the still-unioned `onClick` is what
+ * degrades a consumer-side `keyof`/mapped type over `cancel` into TS2590
+ * "union type too complex", confirmed empirically. See the equivalent note on
+ * `DataAttributes` in `utils/types.ts`.
+ */
 import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
 const positions = {
   left: 'flex-start',
   center: 'center',