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

0.5.6 • Public • Published

Installation

npm install --save @types/react-notify-toast

Summary

This package contains type definitions for react-notify-toast (https://github.com/jesusoterogomez/react-notify-toast).

Details

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

index.d.ts

import * as React from "react";

interface reactNotifyToastColor {
    background: string;
    text: string;
}

declare class reactNotifyToast {
    show(
        text: string,
        type?: "success" | "error" | "warning" | "custom",
        timeout?: number,
        color?: reactNotifyToastColor,
    ): void;

    hide(): void;
    createShowQueue(): reactNotifyToast;
}

interface Options {
    wrapperId?: string | undefined;
    animationDuration?: number | undefined;
    timeout?: number | undefined;
    zIndex?: number | undefined;
    top?: number | string | undefined;
    colors?: any;
}

interface NotificationProps {
    options?: Options | undefined;
}

export class Notification extends React.Component<NotificationProps, any> {}

export const notify: reactNotifyToast;
export default Notification;

Additional Details

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

Credits

These definitions were written by Klaas Cuvelier.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-notify-toast

Weekly Downloads

747

Version

0.5.6

License

MIT

Unpacked Size

4.36 kB

Total Files

5

Last publish

Collaborators

  • types