request-builder.ts:262:72 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | boolean'.
262 this._bodyContent = pairs.map((p) => `${encodeURIComponent(p[0])}=${encodeURIComponent(p[1])}`).join('&');
p[0] and p[1] maybe be undefined according to typescript compiler with this option.
With Typescript compiler option
"noUncheckedIndexedAccess": true
enabled on my project, it throw me some error. https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#no-unchecked-indexed-accessp[0]
andp[1]
maybe be undefined according to typescript compiler with this option.Changing type from :
to :
Remove that error.
Thx a lot for your tool