Modelled as a union so the type mirrors the runtime contract: timeoutMs is
required only when draining. A single { drain?: boolean; timeoutMs: number }
shape made close({ drain: false }) a type error even though it is the
documented, working way to close without draining.
Options for
HttpClient.close().Modelled as a union so the type mirrors the runtime contract:
timeoutMsis required only when draining. A single{ drain?: boolean; timeoutMs: number }shape madeclose({ drain: false })a type error even though it is the documented, working way to close without draining.