npm.io
0.2.3 • Published 2 years ago

@types/react-confirm

Licence
MIT
Version
0.2.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0

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

Credits

These definitions were written by santiagodoldan, and Mark Nelissen.