Enable tsconfig noUncheckedIndexedAccess

This commit is contained in:
Jamie
2026-03-12 16:24:01 -07:00
committed by GitHub
parent 34b0f9cd50
commit 1d45a52da7
311 changed files with 2146 additions and 1589 deletions

View File

@@ -46,7 +46,8 @@ export class BackOff {
) {}
public get(): number {
let result = this.timeouts[this.#count];
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
let result = this.timeouts[this.#count]!;
const { jitter = 0, random = DEFAULT_RANDOM } = this.options;
// Do not apply jitter larger than the timeout value. It is supposed to be