Socket
Socket
Sign inDemoInstall

@types/toastify-js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/toastify-js - npm Package Compare versions

Comparing version 1.9.1 to 1.9.2

32

toastify-js/index.d.ts

@@ -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`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc