Convert apiUtils to TypeScript.

Review Request #14157 — Created Sept. 11, 2024 and updated

Information

Review Board
master

Reviewers

This change converts our API methods to TypeScript. Our apiUtils file
has a few methods, primary among them being apiCall. This change adds
typing for everything, and cleans up some old cruft. It does not yet
make any changes to the internals of how API requests work.

In order to facilitate using jasmine for unit tests. these methods are
all exported under a new top-level object called API.

  • Ran js-tests.
  • Smoke tested the UI and verified that things still worked correctly.
Summary ID
Convert apiUtils to TypeScript.
This change converts our API methods to TypeScript. Our apiUtils file has a few methods, primary among them being `apiCall`. This change adds typing for everything, and cleans up some old cruft. It does not yet make any changes to the internals of how API requests work. In order to facilitate using jasmine for unit tests. these methods are all exported under a new top-level object called `API`. Testing Done: - Ran js-tests. - Smoke tested the UI and verified that things still worked correctly.
0419e1712936fa2c135d34dba6d86215ab2e4945
Checks run (2 succeeded)
flake8 passed.
JSHint passed.