-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update type information for new blockPosition param
- Loading branch information
1 parent
8db6e7f
commit 73227bf
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
/** | ||
* Smooth scrolling onClick event handler | ||
* @param {string} selector argument will be passed to `querySelector`, usually an HTML id | ||
* @param {string} [blockPosition='start'] argument will be used to determine position where will be scrolled to | ||
* @returns {boolean} false if `document.querySelector` doesn't find a match, otherwise true | ||
*/ | ||
declare const scrollTo: (selector: string) => boolean; | ||
declare const scrollTo: ( | ||
selector: string, | ||
blockPosition?: 'start' | 'center' | 'end' | 'nearest' | ||
) => boolean; | ||
export default scrollTo; |