@types/react-notifications-component
Advanced tools
Comparing version
{ | ||
"name": "@types/react-notifications-component", | ||
"version": "3.1.4", | ||
"description": "TypeScript definitions for react-notifications-component", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-notifications-component", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Sarhad Salam", | ||
"githubUsername": "SarhadSalam", | ||
"url": "https://github.com/SarhadSalam" | ||
}, | ||
{ | ||
"name": "Andrés Ignacio Torres", | ||
"githubUsername": "aitorres", | ||
"url": "https://github.com/aitorres" | ||
} | ||
], | ||
"version": "3.2.0", | ||
"description": "Stub TypeScript definitions entry for react-notifications-component, which provides its own types definitions", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react-notifications-component" | ||
}, | ||
"scripts": {}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/react": "*" | ||
"react-notifications-component": "*" | ||
}, | ||
"typesPublisherContentHash": "8759c250636e5a0178d707dafc0a359b08eaf465cdb383a90322e1a5ed3c9acd", | ||
"typeScriptVersion": "4.5" | ||
"deprecated": "This is a stub types definition. react-notifications-component provides its own type definitions, so you do not need this installed." | ||
} |
@@ -1,82 +0,3 @@ | ||
# Installation | ||
> `npm install --save @types/react-notifications-component` | ||
This is a stub types definition for @types/react-notifications-component (http://teodosii.github.io/react-notifications-component). | ||
# Summary | ||
This package contains type definitions for react-notifications-component (https://github.com/teodosii/react-notifications-component). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-notifications-component. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-notifications-component/index.d.ts) | ||
````ts | ||
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; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
# Credits | ||
These definitions were written by [Sarhad Salam](https://github.com/SarhadSalam), and [Andrés Ignacio Torres](https://github.com/aitorres). | ||
react-notifications-component provides its own type definitions, so you don't need @types/react-notifications-component installed! |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1899
-74.11%3
-25%0
-100%2
100%1
Infinity%1
Infinity%3
-96.39%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed