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.