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

animated-scroll-to

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animated-scroll-to - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

11

CHANGELOG.md
# Changelog
### v2.0.9
25.06.2020.
Fixed
* Added `Promise<boolean>` as a return type in the types definition file.
-----
### v2.0.8

@@ -4,0 +15,0 @@

6

lib/animated-scroll-to.d.ts

@@ -13,5 +13,5 @@ export declare type TCoords = [number | null, number | null];

}
declare function animateScrollTo(y: number, userOptions?: IOptions): any;
declare function animateScrollTo(coords: TCoords, userOptions?: IOptions): any;
declare function animateScrollTo(scrollToElement: Element, userOptions?: IOptions): any;
declare function animateScrollTo(y: number, userOptions?: IOptions): Promise<boolean>;
declare function animateScrollTo(coords: TCoords, userOptions?: IOptions): Promise<boolean>;
declare function animateScrollTo(scrollToElement: Element, userOptions?: IOptions): Promise<boolean>;
export default animateScrollTo;
{
"name": "animated-scroll-to",
"version": "2.0.8",
"version": "2.0.9",
"description": "Simple, plain JavaScript animated window scroll",

@@ -5,0 +5,0 @@ "main": "./lib/animated-scroll-to.js",

@@ -159,5 +159,5 @@ export type TCoords = [number | null, number | null];

function animateScrollTo(y:number, userOptions?:IOptions);
function animateScrollTo(coords:TCoords, userOptions?:IOptions);
function animateScrollTo(scrollToElement: Element, userOptions?:IOptions);
function animateScrollTo(y:number, userOptions?:IOptions): Promise<boolean>;
function animateScrollTo(coords:TCoords, userOptions?:IOptions): Promise<boolean>;
function animateScrollTo(scrollToElement: Element, userOptions?:IOptions): Promise<boolean>;
function animateScrollTo(

@@ -164,0 +164,0 @@ numberOrCoordsOrElement: number | TCoords | Element,

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