UNPKG

480 BTypeScriptView Raw
1import type { State, SideObject, Padding, PositioningStrategy } from "../types";
2import type { Placement, Boundary, RootBoundary, Context } from "../enums";
3export declare type Options = {
4 placement: Placement;
5 strategy: PositioningStrategy;
6 boundary: Boundary;
7 rootBoundary: RootBoundary;
8 elementContext: Context;
9 altBoundary: boolean;
10 padding: Padding;
11};
12export default function detectOverflow(state: State, options?: Partial<Options>): SideObject;