npm.io
3.0.2 • Published 2 years ago

@types/react-close-on-escape

Licence
MIT
Version
3.0.2
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Robert Baruck.