Skip to content

Commit ab10d77

Browse files
committed
Export Popover declarations explicitly
The file has no export list, so TypeScript exports these declarations implicitly. tsdown's declaration bundling appends `export {}`, which turns that off; explicit exports keep the same public types.
1 parent 4aa0a61 commit ab10d77

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/mui-material/src/Popover/Popover.d.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export interface PopoverPosition {
9393

9494
export type PopoverReference = 'anchorEl' | 'anchorPosition' | 'none';
9595

96-
interface PopoverVirtualElement {
96+
export interface PopoverVirtualElement {
9797
getBoundingClientRect: () => DOMRect;
9898
nodeType: Node['ELEMENT_NODE'];
9999
}
@@ -210,8 +210,9 @@ export function getOffsetLeft(
210210
horizontal: number | 'center' | 'right' | 'left',
211211
): number;
212212

213-
type PopoverRootProps = NonNullable<PopoverProps['slotProps']>['root'];
214-
type PopoverPaperProps = NonNullable<PopoverProps['slotProps']>['paper'];
213+
export type PopoverRootProps = NonNullable<PopoverProps['slotProps']>['root'];
214+
215+
export type PopoverPaperProps = NonNullable<PopoverProps['slotProps']>['paper'];
215216

216217
export declare const PopoverRoot: React.FC<PopoverRootProps>;
217218
export declare const PopoverPaper: React.FC<PopoverPaperProps>;

0 commit comments

Comments
 (0)