@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
15 lines • 633 B
TypeScript
/**
* Scrolls an element into view with boolean options.
* @param {HTMLElement} element - The element to scroll to.
* @param {boolean} [options] - Scroll options.
* @returns {void}
*/
export default function scrollToElement(element: HTMLElement, options?: boolean): void;
/**
* Scrolls an element into view with ScrollIntoViewOptions.
* @param {HTMLElement} element - The element to scroll to.
* @param {ScrollIntoViewOptions} [options] - Scroll options.
* @returns {void}
*/
export default function scrollToElement(element: HTMLElement, options?: ScrollIntoViewOptions): void;
//# sourceMappingURL=scrollToElement.d.ts.map