0.5.6 • Published 6 months ago

@types/react-notify-toast v0.5.6

Weekly downloads
782
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for react-notify-toast 0.5
// Project: https://github.com/jesusoterogomez/react-notify-toast
// Definitions by: Klaas Cuvelier <https://github.com/klaascuvelier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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: Thu, 08 Jul 2021 22:41:23 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Klaas Cuvelier.

0.5.4

7 months ago

0.5.6

6 months ago

0.5.5

7 months ago

0.5.3

3 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago