@types/toastify-js
Advanced tools
Comparing version 1.11.1 to 1.12.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for toastify-js 1.11 | ||
// Type definitions for toastify-js 1.12 | ||
// Project: https://github.com/apvarun/toastify-js#readme | ||
@@ -25,2 +25,7 @@ // Definitions by: adblanc <https://github.com/adblanc> | ||
/** | ||
* Announce the toast to screen readers | ||
* @default 'polite' | ||
*/ | ||
ariaLive?: 'off' | 'polite' | 'assertive' | undefined; | ||
/** | ||
* @deprecated use style.background option instead | ||
@@ -27,0 +32,0 @@ */ |
{ | ||
"name": "@types/toastify-js", | ||
"version": "1.11.1", | ||
"version": "1.12.0", | ||
"description": "TypeScript definitions for toastify-js", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toastify-js", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "478d975b86eff6df2752fa03fcca270e343c1d5c54a9d72178410d3d3cc0270a", | ||
"typeScriptVersion": "3.9" | ||
"typesPublisherContentHash": "e386929dc1378d0438049e8c239840e29175f45d222ef5d37d175dd035250f69", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -9,89 +9,5 @@ # 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.11 | ||
// 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 { | ||
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; | ||
/** | ||
* @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, 31 May 2022 21:01:36 GMT | ||
* Last updated: Sat, 15 Jul 2023 21:02:47 GMT | ||
* Dependencies: none | ||
@@ -98,0 +14,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
80
5203
17