Installation
npm install --save @types/react-outside-click-handler
Summary
This package contains type definitions for react-outside-click-handler (https://github.com/airbnb/react-outside-click-handler).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-outside-click-handler.
index.d.ts
import * as React from "react";
export interface DefaultProps {
disabled: boolean;
useCapture: boolean;
display: "block" | "flex" | "inline" | "inline-block" | "contents";
}
// TODO: Remove partial once DT support TS 3.0, so skipping mandatory listed in default props won't result in compile error
export interface Props extends Partial<DefaultProps> {
children: React.ReactNode;
onOutsideClick: (e: MouseEvent) => void;
}
export default class OutsideClickHandler extends React.Component<Props> {
static defaultProps: DefaultProps;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Ivan Zub, JadowityHerbatnik, and Adam Jones.