@types/react-alert
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -59,3 +59,3 @@ // Type definitions for react-alert 5.2 | ||
*/ | ||
offset?: string; | ||
offset?: string | undefined; | ||
/** | ||
@@ -66,3 +66,3 @@ * The position of the alerts in the page | ||
*/ | ||
position?: AlertPosition; | ||
position?: AlertPosition | undefined; | ||
/** | ||
@@ -73,3 +73,3 @@ * Timeout to alert remove itself, if set to 0 it never removes itself | ||
*/ | ||
timeout?: number; | ||
timeout?: number | undefined; | ||
/** | ||
@@ -80,3 +80,3 @@ * The default alert type used when calling this.props.alert.show | ||
*/ | ||
type?: AlertType; | ||
type?: AlertType | undefined; | ||
/** | ||
@@ -87,3 +87,3 @@ * The transition animation | ||
*/ | ||
transition?: AlertTransition; | ||
transition?: AlertTransition | undefined; | ||
/** | ||
@@ -94,3 +94,3 @@ * The style of the alert container | ||
*/ | ||
containerStyle?: React.CSSProperties; | ||
containerStyle?: React.CSSProperties | undefined; | ||
/** | ||
@@ -103,3 +103,3 @@ * The alert component for each message | ||
*/ | ||
context?: React.Context<AlertManager | undefined>; | ||
context?: React.Context<AlertManager | undefined> | undefined; | ||
} | ||
@@ -124,3 +124,3 @@ | ||
*/ | ||
timeout?: number; | ||
timeout?: number | undefined; | ||
/** | ||
@@ -137,7 +137,7 @@ * Callback that will be executed after this alert open | ||
export interface AlertCustomOptionsWithType extends AlertCustomOptions { | ||
type?: AlertType; | ||
type?: AlertType | undefined; | ||
} | ||
export interface AlertManager { | ||
root?: HTMLElement; | ||
root?: HTMLElement | undefined; | ||
alerts: AlertComponentProps[]; | ||
@@ -144,0 +144,0 @@ show( |
{ | ||
"name": "@types/react-alert", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "TypeScript definitions for react-alert", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-alert", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -25,4 +26,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "1133a596257d282daa2af24f15c59105397a68dc9b0f7d264d60f870d9aa9f23", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "9f7811f07b7e389f3c470406302ab4c739dea5aee254d0b6cc81fd92b3da5d36", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for react-alert ( https://github.com/schiehll/react-alert ). | ||
This package contains type definitions for react-alert (https://github.com/schiehll/react-alert). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-alert | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-alert. | ||
Additional Details | ||
* Last updated: Wed, 20 Mar 2019 17:54:34 GMT | ||
* Dependencies: @types/react | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 20:20:23 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Yue Yang <https://github.com/g1eny0ung>. | ||
These definitions were written by [Yue Yang](https://github.com/g1eny0ung). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6498
0