@types/react-alert
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -12,33 +12,33 @@ // Type definitions for react-alert 7.0 | ||
import { CSSProperties, ReactNode, ComponentType, Component, Context } from 'react'; | ||
import { Component, ComponentType, Context, CSSProperties, ReactNode } from "react"; | ||
export type AlertPositionV4 = | ||
| 'top left' | ||
| 'top center' | ||
| 'top right' | ||
| 'bottom left' | ||
| 'bottom center' | ||
| 'bottom right'; | ||
export type AlertPosition = AlertPositionV4 | 'middle left' | 'middle' | 'middle right'; | ||
export type AlertType = 'info' | 'success' | 'error'; | ||
export type AlertTransition = 'fade' | 'scale'; | ||
| "top left" | ||
| "top center" | ||
| "top right" | ||
| "bottom left" | ||
| "bottom center" | ||
| "bottom right"; | ||
export type AlertPosition = AlertPositionV4 | "middle left" | "middle" | "middle right"; | ||
export type AlertType = "info" | "success" | "error"; | ||
export type AlertTransition = "fade" | "scale"; | ||
export interface Positions { | ||
TOP_LEFT: 'top left'; | ||
TOP_CENTER: 'top center'; | ||
TOP_RIGHT: 'top right'; | ||
MIDDLE_LEFT: 'middle left'; | ||
MIDDLE: 'middle'; | ||
MIDDLE_RIGHT: 'middle right'; | ||
BOTTOM_LEFT: 'bottom left'; | ||
BOTTOM_CENTER: 'bottom center'; | ||
BOTTOM_RIGHT: 'bottom right'; | ||
TOP_LEFT: "top left"; | ||
TOP_CENTER: "top center"; | ||
TOP_RIGHT: "top right"; | ||
MIDDLE_LEFT: "middle left"; | ||
MIDDLE: "middle"; | ||
MIDDLE_RIGHT: "middle right"; | ||
BOTTOM_LEFT: "bottom left"; | ||
BOTTOM_CENTER: "bottom center"; | ||
BOTTOM_RIGHT: "bottom right"; | ||
} | ||
export interface Types { | ||
INFO: 'info'; | ||
SUCCESS: 'success'; | ||
ERROR: 'error'; | ||
INFO: "info"; | ||
SUCCESS: "success"; | ||
ERROR: "error"; | ||
} | ||
export interface Transitions { | ||
FADE: 'fade'; | ||
SCALE: 'scale'; | ||
FADE: "fade"; | ||
SCALE: "scale"; | ||
} | ||
@@ -112,3 +112,3 @@ | ||
export interface AlertTemplateProps extends Omit<AlertInstance, 'id'> { | ||
export interface AlertTemplateProps extends Omit<AlertInstance, "id"> { | ||
/** | ||
@@ -164,5 +164,5 @@ * The style contains only the margin given as offset. | ||
export function withAlert<P extends InjectedAlertProps = InjectedAlertProps>( | ||
context?: Context<P['alert']>, | ||
): (c: ComponentType<P>) => ComponentType<Omit<P, 'alert'>>; | ||
context?: Context<P["alert"]>, | ||
): (c: ComponentType<P>) => ComponentType<Omit<P, "alert">>; | ||
export function useAlert<T extends AlertContainer = AlertContainer>(context?: Context<T>): T; |
{ | ||
"name": "@types/react-alert", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "TypeScript definitions for react-alert", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-alert", | ||
}, | ||
"typesPublisherContentHash": "3ef104ab70e4289b90f6e84de39cdeff4041815041ff359bf8ff3af5d01482d7", | ||
"typeScriptVersion": "3.9" | ||
"typesPublisherContentHash": "4c7f72814e02e9f54722ed377db3e4db4826ac74199f5681b5692256ea46052f", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 19 Mar 2022 17:31:43 GMT | ||
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
10892