@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
10 lines (7 loc) • 306 B
Flow
// @flow
type Dispatch<S> = (args: S) => void;
type SetAction<S> = S | ((prevState: S) => S);
export type useIntersect = (
intersect?: IntersectionObserverOptions,
) => {| ref: Dispatch<SetAction<null | Element>> | null, entry: IntersectionObserverEntry | null |};
declare export default useIntersect;