The AlertDialog Header, Body and Footer parts, Tooltip.Provider and
ContextMenu.SubmenuContent are arrow functions with props interfaces that
were not exported. TypeScript 5.4 writes the full signature of an arrow
function part into the compound component's declaration, so it could not
name these interfaces (TS4023) and left out alert-dialog.d.ts,
context-menu.d.ts and tooltip.d.ts. Apps then typed the three components
as any.
Export the props types from each component and from the package. The
build now fails on a type error, except in watch mode. The font plugin
checks for style.css in generateBundle, and the alias plugin skips its
closeBundle work after a failed build, so the TypeScript error is the one
that shows.
Summary
alert-dialog.d.ts,context-menu.d.tsandtooltip.d.ts, so apps typeAlertDialog,ContextMenuandTooltipasany(report). TypeScript 5.4 writes the full signature of an arrow function part into the compound's declaration, and it could not name the props interfaces of those parts.AlertDialogHeaderProps,AlertDialogBodyProps,AlertDialogFooterProps,TooltipProviderPropsandContextMenuSubContentPropsfrom their components and the package. The docs tables now use these names and show the same rows.pnpm buildfails on a type error, except in watch mode. The font plugin checks forstyle.cssingenerateBundle, and the alias plugin skipscloseBundleafter a failed build, so the TypeScript error is the one that shows.dist, only.d.tsfiles change. The JS, CJS and CSS files are the same as on main.rollup.config.mjs. Its build already fails on tsc errors, and TypeScript 7 writes these parts astypeof AlertDialogFooter.