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

0.2.3 • Public • Published

Installation

npm install --save @types/react-confirm

Summary

This package contains type definitions for react-confirm (https://github.com/haradakunihiko/react-confirm).

Details

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

index.d.ts

import * as React from "react";

export function confirmable<P>(component: React.ComponentType<ReactConfirmProps & P>): React.ComponentType<P>;
export function createConfirmation(
    component: React.ComponentType<any>,
    unmountDelay?: number,
    mountingNode?: HTMLElement,
): (props: any) => Promise<string>;

export interface ReactConfirmProps {
    confirmation: string | React.ReactElement;
    dismiss: () => void;
    proceed: (value?: string) => void;
    cancel: (value?: string) => void;
    show: boolean;
}

Additional Details

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

Credits

These definitions were written by santiagodoldan, and Mark Nelissen.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @types/react-confirm

Weekly Downloads

13,078

Version

0.2.3

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • types