@types/toastify-js
Advanced tools
Comparing version 1.9.1 to 1.9.2
@@ -16,27 +16,27 @@ // Type definitions for toastify-js 1.9 | ||
interface Options { | ||
text?: string; | ||
node?: Node; | ||
duration?: number; | ||
selector?: string; | ||
destination?: string; | ||
newWindow?: boolean; | ||
close?: boolean; | ||
gravity?: 'top' | 'bottom'; | ||
position?: 'left' | 'center' | 'right'; | ||
backgroundColor?: string; | ||
text?: string | undefined; | ||
node?: Node | undefined; | ||
duration?: number | undefined; | ||
selector?: string | undefined; | ||
destination?: string | undefined; | ||
newWindow?: boolean | undefined; | ||
close?: boolean | undefined; | ||
gravity?: 'top' | 'bottom' | undefined; | ||
position?: 'left' | 'center' | 'right' | undefined; | ||
backgroundColor?: string | undefined; | ||
/** | ||
* Image/icon to be shown before text | ||
*/ | ||
avatar?: string; | ||
className?: string; | ||
avatar?: string | undefined; | ||
className?: string | undefined; | ||
/** | ||
* @default true | ||
*/ | ||
stopOnFocus?: boolean; | ||
stopOnFocus?: boolean | undefined; | ||
/** | ||
* Invoked when the toast is dismissed | ||
*/ | ||
callback?: () => void; | ||
onClick?: () => void; | ||
offset?: Offset; | ||
callback?: (() => void) | undefined; | ||
onClick?: (() => void) | undefined; | ||
offset?: Offset | undefined; | ||
} | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "@types/toastify-js", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "TypeScript definitions for toastify-js", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toastify-js", | ||
"license": "MIT", | ||
@@ -27,4 +28,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a11aaab495a32eb9c490a22912c8b4673e4ddb13aa2a8d6a0144f1d306e66e9d", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "41f35374282dd100f68e777bc0ab40931b6987b1669f9efb87c25d270b297a7f", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,60 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toastify-js. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toastify-js/index.d.ts) | ||
````ts | ||
// Type definitions for toastify-js 1.9 | ||
// Project: https://github.com/apvarun/toastify-js#readme | ||
// Definitions by: adblanc <https://github.com/adblanc> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
declare namespace Toastify { | ||
function reposition(): void; | ||
interface Offset { | ||
x: number | string; | ||
y: number | string; | ||
} | ||
interface Options { | ||
text?: string | undefined; | ||
node?: Node | undefined; | ||
duration?: number | undefined; | ||
selector?: string | undefined; | ||
destination?: string | undefined; | ||
newWindow?: boolean | undefined; | ||
close?: boolean | undefined; | ||
gravity?: 'top' | 'bottom' | undefined; | ||
position?: 'left' | 'center' | 'right' | undefined; | ||
backgroundColor?: string | undefined; | ||
/** | ||
* Image/icon to be shown before text | ||
*/ | ||
avatar?: string | undefined; | ||
className?: string | undefined; | ||
/** | ||
* @default true | ||
*/ | ||
stopOnFocus?: boolean | undefined; | ||
/** | ||
* Invoked when the toast is dismissed | ||
*/ | ||
callback?: (() => void) | undefined; | ||
onClick?: (() => void) | undefined; | ||
offset?: Offset | undefined; | ||
} | ||
} | ||
declare function Toastify( | ||
options?: Toastify.Options, | ||
): { | ||
showToast(): void; | ||
}; | ||
export as namespace Toastify; | ||
export = Toastify; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 10 Nov 2020 00:22:55 GMT | ||
* Last updated: Fri, 02 Jul 2021 19:37:12 GMT | ||
* Dependencies: none | ||
@@ -14,0 +69,0 @@ * Global values: `Toastify` |
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
5763
0
72