about_zulip: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-10 13:20:31 -07:00
parent ce48aac3db
commit 325b308ed5
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ def make_set(files: List[str]) -> Set[str]:
EXEMPT_FILES = make_set(
[
"web/shared/src/poll_data.ts",
"web/src/about_zulip.js",
"web/src/about_zulip.ts",
"web/src/add_stream_options_popover.js",
"web/src/add_subscribers_pill.js",
"web/src/admin.js",

View File

@ -8,7 +8,7 @@ import {show_copied_confirmation} from "./copied_tooltip";
import * as overlays from "./overlays";
import {page_params} from "./page_params";
export function launch() {
export function launch(): void {
overlays.open_overlay({
name: "about-zulip",
$overlay: $("#about-zulip"),
@ -24,7 +24,7 @@ export function launch() {
});
}
export function initialize() {
export function initialize(): void {
const rendered_about_zulip = render_about_zulip({
zulip_version: page_params.zulip_version,
zulip_merge_base: page_params.zulip_merge_base,

View File

@ -4,7 +4,7 @@ import {$t} from "./i18n";
export function show_copied_confirmation(
copy_button: HTMLElement,
on_hide_callback: () => void,
on_hide_callback?: () => void,
timeout_in_ms = 1000,
): void {
// Display a tooltip to notify the user the message or code was copied.