animated-scroll-to
Advanced tools
Comparing version 2.0.8 to 2.0.9
# 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 @@ |
@@ -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, |
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
56725