Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.11.1 to 1.12.0

7

toastify-js/index.d.ts

@@ -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 @@ */

6

toastify-js/package.json
{
"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`

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