DefinitelyTyped/types/react-close-on-escape/index.d.ts
Robert Baruck 2ebc83a318 [react] add typings for react-close-on-escape (#29789)
* [react] add typings for react-close-on-escape

* TASK: make component default export
2018-10-16 12:56:31 -07:00

17 lines
520 B
TypeScript

// Type definitions for react-close-on-escape 3.0
// Project: https://github.com/conorhastings/react-close-on-escape#readme
// Definitions by: Robert Baruck <https://github.com/JamesAlias>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
export interface CloseOnEscapeProps {
/**
* Callback triggered by pressing ESC
*/
onEscape(): void;
}
export default class CloseOnEscape extends React.Component<CloseOnEscapeProps> {}