ts: Migrate `spectators.js` to typescript.

This commit is contained in:
Lalit Kumar Singh 2023-08-15 08:18:25 +05:30 committed by Tim Abbott
parent cd16176c10
commit a0cb034731
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ EXEMPT_FILES = make_set(
"web/src/settings_user_topics.js",
"web/src/settings_users.js",
"web/src/setup.ts",
"web/src/spectators.js",
"web/src/spectators.ts",
"web/src/spoilers.ts",
"web/src/starred_messages_ui.js",
"web/src/stream_bar.js",

View File

@ -14,7 +14,7 @@ import * as hash_util from "./hash_util";
import * as overlays from "./overlays";
import {page_params} from "./page_params";
export function login_to_access(empty_narrow) {
export function login_to_access(empty_narrow?: boolean): void {
// Hide all overlays, popover and go back to the previous hash if the
// hash has changed.
const login_link = hash_util.build_login_link();