@types/react-close-on-escape
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Installation

npm install --save @types/react-close-on-escape

Summary

This package contains type definitions for react-close-on-escape (https://github.com/conorhastings/react-close-on-escape#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-close-on-escape.

index.d.ts

import * as React from "react";

export interface CloseOnEscapeProps {
    /**
     * Callback triggered by pressing ESC
     */
    onEscape(): void;
}

export default class CloseOnEscape extends React.Component<CloseOnEscapeProps> {}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Robert Baruck.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-close-on-escape

Weekly Downloads

14

Version

3.0.2

License

MIT

Unpacked Size

3.22 kB

Total Files

5

Last publish

Collaborators

  • types