When I check out the types of PopperContentProps in my editor I see this:
type PopperContentProps = Radix.ComponentPropsWithoutRef<any>
which is giving me any on all the popover props I care about.
However if I go to definition I see this chain:
// go to defintion of PoperContentProps
type PopperContentProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
// go to definition of Popper.Primitive.Content
export const Content: React.ForwardRefExoticComponent<PopperContentProps & React.RefAttributes<HTMLDivElement>>;
// go to definition of PopperContentProps
export interface PopperContentProps extends PrimitiveDivProps {
side?: Side;
sideOffset?: number;
align?: Align;
alignOffset?: number;
arrowPadding?: number;
avoidCollisions?: boolean;
collisionBoundary?: Boundary | Boundary[];
collisionPadding?: number | Partial<Record<Side, number>>;
sticky?: 'partial' | 'always';
hideWhenDetached?: boolean;
updatePositionStrategy?: 'optimized' | 'always';
onPlaced?: () => void;
}
The go to definition seems to be what I want, not sure why I am getting any in my LSP, I wonder if the name collision between PoperContentProps is causing an infinite loop?
Question
When I check out the types of
PopperContentProps
in my editor I see this:which is giving me
any
on all the popover props I care about.However if I go to definition I see this chain:
The go to definition seems to be what I want, not sure why I am getting
any
in my LSP, I wonder if the name collision betweenPoperContentProps
is causing an infinite loop?