Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
channel: Use TypeScript unions for 'AjaxRequestHandler'.
Varun Singh9b9ea01dfa7d
diff --git a/web/src/channel.ts b/web/src/channel.tsindex 6e4d9e34057..1e9d4d020c5 100644--- a/web/src/channel.ts+++ b/web/src/channel.ts@@ -25,7 +25,7 @@ type PatchRequestData =| {processData: false; data: FormData}| {processData?: true; data: Record<string, unknown>};-export type AjaxRequestHandler = typeof call;+export type AjaxRequestHandler = typeof call | typeof patch;let password_change_in_progress = false;export let password_changes = 0;