admin: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-27 15:27:47 -08:00
committed by Tim Abbott
parent ff99302dfe
commit 0048dfabd0
8 changed files with 43 additions and 35 deletions

View File

@@ -540,10 +540,10 @@ If you're adding a non-checkbox field, you'll need to specify the type
of the field via the `data-setting-widget-type` attribute in the HTML
template.
Then add the new form control in `web/src/admin.js`.
Then add the new form control in `web/src/admin.ts`.
```diff
// web/src/admin.js
// web/src/admin.ts
export function build_page() {
const options = {