
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@types/react-notifications-component
Advanced tools
TypeScript definitions for react-notifications-component
npm install --save @types/react-notifications-component
This package contains type definitions for react-notifications-component (https://github.com/teodosii/react-notifications-component).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-notifications-component.
// Type definitions for react-notifications-component 3.1
// Project: https://github.com/teodosii/react-notifications-component
// Definitions by: Sarhad Salam <https://github.com/SarhadSalam>
// Andrés Ignacio Torres <https://github.com/aitorres>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from "react";
export default class extends React.Component<ReactNotificationProps> {}
export interface ReactNotificationProps {
isMobile?: boolean | undefined;
breakpoint?: number | undefined;
types?: string[] | undefined;
className?: string | undefined;
id?: string | undefined;
}
export const store: {
addNotification: (options: ReactNotificationOptions) => string;
removeNotification: (id: string) => void;
};
export interface ReactNotificationOptions {
id?: string | undefined;
onRemoval?: ((id: string, removedBy: any) => void) | undefined;
title?: string | React.ReactNode | React.FunctionComponent | undefined;
message?: string | React.ReactNode | React.FunctionComponent | undefined;
content?: React.ComponentClass | React.FunctionComponent | React.ReactNode | undefined;
type?: "success" | "danger" | "info" | "default" | "warning" | undefined;
container:
| "top-full"
| "top-left"
| "top-right"
| "top-center"
| "center"
| "bottom-full"
| "bottom-left"
| "bottom-right"
| "bottom-center";
insert?: "top" | "bottom" | undefined;
dismiss?: DismissOptions | undefined;
animationIn?: string[] | undefined;
animationOut?: string[] | undefined;
slidingEnter?: TransitionOptions | undefined;
slidingExit?: TransitionOptions | undefined;
touchRevert?: TransitionOptions | undefined;
touchSlidingExit?: {
fade?: TransitionOptions | undefined;
swipe?: TransitionOptions | undefined;
} | undefined;
width?: number | undefined;
}
export interface TransitionOptions {
duration?: number | undefined;
timingFunction?: "ease" | "linear" | "ease-in" | "ease-out" | "ease-in-out" | "step-start" | "step-end" | undefined;
delay?: number | undefined;
}
export interface DismissOptions {
duration?: number | undefined;
onScreen?: boolean | undefined;
pauseOnHover?: boolean | undefined;
waitForAnimation?: boolean | undefined;
click?: boolean | undefined;
touch?: boolean | undefined;
showIcon?: boolean | undefined;
}
These definitions were written by Sarhad Salam, and Andrés Ignacio Torres.
FAQs
Stub TypeScript definitions entry for react-notifications-component, which provides its own types definitions
The npm package @types/react-notifications-component receives a total of 3,994 weekly downloads. As such, @types/react-notifications-component popularity was classified as popular.
We found that @types/react-notifications-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.