We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db6e7f commit 73227bfCopy full SHA for 73227bf
index.d.ts
@@ -1,7 +1,11 @@
1
/**
2
* Smooth scrolling onClick event handler
3
* @param {string} selector argument will be passed to `querySelector`, usually an HTML id
4
+ * @param {string} [blockPosition='start'] argument will be used to determine position where will be scrolled to
5
* @returns {boolean} false if `document.querySelector` doesn't find a match, otherwise true
6
*/
-declare const scrollTo: (selector: string) => boolean;
7
+declare const scrollTo: (
8
+ selector: string,
9
+ blockPosition?: 'start' | 'center' | 'end' | 'nearest'
10
+) => boolean;
11
export default scrollTo;
0 commit comments