teodosii / react-notifications-component

Delightful and highly customisable React Component to notify your users
https://teodosii.github.io/react-notifications-component/
MIT License
1.27k stars 73 forks source link

Typescript definitions doesn't contain "full" container #93

Closed milos2211 closed 2 years ago

milos2211 commented 3 years ago

Currently interface doesn't allow value "top-full" and "bottom-full"

Definitions:

export interface ReactNotificationOptions {
    id?: string;
    onRemoval?: (id: string, removedBy: any) => void;
    title?: string | React.ReactNode | React.FunctionComponent;
    message?: string | React.ReactNode | React.FunctionComponent;
    content?: React.ComponentClass | React.FunctionComponent | React.ReactNode;
    type?: 'success' | 'danger' | 'info' | 'default' | 'warning';
    container: 'top-left' | 'top-right' | 'top-center' | 'center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
    insert?: 'top' | 'bottom';
    dismiss?: DismissOptions;
    animationIn?: string[];
    animationOut?: string[];
    slidingEnter?: TransitionOptions;
    slidingExit?: TransitionOptions;
    touchRevert?: TransitionOptions;
    touchSlidingExit?: TransitionOptions;
    width?: number;
}

container field should have this value:

container: 'top-full' | 'top-left' | 'top-right' | 'top-center' | 'center' | 'bottom-full' |  'bottom-left' | 'bottom-right' | 'bottom-center';
aitorres commented 3 years ago

A new version of @types/react-notifications-component v3.1 is available now with support for these values ☺️