@types/toastify-js
Advanced tools
Comparing version 1.12.1 to 1.12.2
@@ -1,7 +0,1 @@ | ||
// Type definitions for toastify-js 1.12 | ||
// 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 StartToastifyInstance { | ||
@@ -8,0 +2,0 @@ function reposition(): void; |
{ | ||
"name": "@types/toastify-js", | ||
"version": "1.12.1", | ||
"version": "1.12.2", | ||
"description": "TypeScript definitions for toastify-js", | ||
@@ -10,9 +10,9 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toastify-js", | ||
"name": "adblanc", | ||
"url": "https://github.com/adblanc", | ||
"githubUsername": "adblanc" | ||
"githubUsername": "adblanc", | ||
"url": "https://github.com/adblanc" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"url": "https://github.com/peterblazejewicz", | ||
"githubUsername": "peterblazejewicz" | ||
"githubUsername": "peterblazejewicz", | ||
"url": "https://github.com/peterblazejewicz" | ||
} | ||
@@ -29,4 +29,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d32e24025f59a346dc67a35e4087aa5741c12f9419e5be98d16af09fca2f2378", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "d09a41d7a5910244b173b4b012f5191b34402314c573a06c7b490686567a9df0", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,91 @@ # 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 | ||
declare namespace StartToastifyInstance { | ||
function reposition(): void; | ||
interface Offset { | ||
x: number | string; | ||
y: number | string; | ||
} | ||
interface Options { | ||
text?: string | undefined; | ||
node?: Node | undefined; | ||
duration?: number | undefined; | ||
selector?: string | Node | undefined; | ||
destination?: string | undefined; | ||
newWindow?: boolean | undefined; | ||
close?: boolean | undefined; | ||
gravity?: "top" | "bottom" | undefined; | ||
position?: "left" | "center" | "right" | undefined; | ||
/** | ||
* Announce the toast to screen readers | ||
* @default 'polite' | ||
*/ | ||
ariaLive?: "off" | "polite" | "assertive" | undefined; | ||
/** | ||
* @deprecated use style.background option instead | ||
*/ | ||
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; | ||
/** | ||
* Toggle the default behavior of escaping HTML markup | ||
*/ | ||
escapeMarkup?: boolean | undefined; | ||
/** | ||
* HTML DOM Style properties to add any style directly to toast | ||
*/ | ||
style?: { [cssRule: string]: string }; | ||
/** | ||
* Set the order in which toasts are stacked in page | ||
*/ | ||
oldestFirst?: boolean | undefined; | ||
} | ||
} | ||
declare class Toastify { | ||
/** | ||
* The configuration object to configure Toastify | ||
*/ | ||
readonly options: StartToastifyInstance.Options; | ||
/** | ||
* The element that is the Toast | ||
*/ | ||
readonly toastElement: Element | null; | ||
/** | ||
* Display the toast | ||
*/ | ||
showToast(): void; | ||
/** | ||
* Hide the toast | ||
*/ | ||
hideToast(): void; | ||
} | ||
declare function StartToastifyInstance(options?: Toastify.Options): Toastify; | ||
export as namespace Toastify; | ||
export = StartToastifyInstance; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 12 Sep 2023 12:34:46 GMT | ||
* Last updated: Wed, 18 Oct 2023 11:45:07 GMT | ||
* Dependencies: none | ||
* Global values: `Toastify` | ||
# Credits | ||
These definitions were written by [adblanc](https://github.com/adblanc), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). |
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
7218
99
75