ts: Migrate scroll_util.js to TypeScript.

This commit migrates `scroll_util.js` to typescript. I made a helper
type `JQueryOrZJQuery` for the argument of `get_scroll_element` instead
of adding a `__zjquery` property to the global JQuery object because it
isn't being used anywhere outside of this function and hence it makes
sense to have a little helper type than to add the property to the global
object.
This commit is contained in:
Lalit
2023-04-27 09:14:27 +05:30
committed by Tim Abbott
parent b6aa004334
commit c7b8f0658b
2 changed files with 22 additions and 12 deletions

View File

@@ -149,7 +149,7 @@ EXEMPT_FILES = make_set(
"web/src/scheduled_messages.js",
"web/src/scheduled_messages_overlay_ui.js",
"web/src/scroll_bar.ts",
"web/src/scroll_util.js",
"web/src/scroll_util.ts",
"web/src/search_pill_widget.js",
"web/src/sent_messages.js",
"web/src/sentry.ts",