hashchange: Convert module to TypeScript. (#32670)

This commit is contained in:
Anders Kaseorg
2024-12-11 09:15:18 -08:00
committed by GitHub
parent 38ad1e8bdc
commit 666ce4519d
12 changed files with 61 additions and 36 deletions

View File

@@ -46,7 +46,7 @@ export function is_same_server_message_link(url: string): boolean {
);
}
export function is_overlay_hash(hash: string): boolean {
export function is_overlay_hash(hash: string | undefined): boolean {
// Hash changes within this list are overlays and should not unnarrow (etc.)
const overlay_list = [
// In 2024, stream was renamed to channel in the Zulip API and UI.