scroll-into-view-if-needed
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -5,3 +5,3 @@ import type { Options as Options_2 } from 'compute-scroll-into-view' | ||
/** @public */ | ||
export declare interface CustomBehaviorOptions<T> extends Options_2 { | ||
export declare interface CustomBehaviorOptions<T = unknown> extends Options_2 { | ||
behavior: CustomScrollBehaviorCallback<T> | ||
@@ -16,3 +16,3 @@ } | ||
/** @public */ | ||
export declare type Options<T> = | ||
export declare type Options<T = unknown> = | ||
| StandardBehaviorOptions | ||
@@ -19,0 +19,0 @@ | CustomBehaviorOptions<T> |
{ | ||
"name": "scroll-into-view-if-needed", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,3 +8,5 @@ import compute from 'compute-scroll-into-view' | ||
/** @public */ | ||
export type Options<T> = StandardBehaviorOptions | CustomBehaviorOptions<T> | ||
export type Options<T = unknown> = | ||
| StandardBehaviorOptions | ||
| CustomBehaviorOptions<T> | ||
@@ -20,3 +22,3 @@ /** @public */ | ||
/** @public */ | ||
export interface CustomBehaviorOptions<T> extends BaseOptions { | ||
export interface CustomBehaviorOptions<T = unknown> extends BaseOptions { | ||
behavior: CustomScrollBehaviorCallback<T> | ||
@@ -35,3 +37,3 @@ } | ||
let isCustomScrollBehavior = <T>( | ||
let isCustomScrollBehavior = <T = unknown>( | ||
options: any | ||
@@ -70,3 +72,3 @@ ): options is CustomBehaviorOptions<T> => | ||
/** @public */ | ||
export default function scrollIntoView<T>( | ||
export default function scrollIntoView<T = unknown>( | ||
target: Element, | ||
@@ -73,0 +75,0 @@ options?: StandardBehaviorOptions | CustomBehaviorOptions<T> | boolean |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36405
155