Right now doing request.headers["Authorization"] = "..." shows an invalid type error:
I think we need to explicitly define the type as Record<string, string> since we guarantee it is by setting { headers: { "Content-Type": "application/json" } } in the implementation.
Right now doing
request.headers["Authorization"] = "..."
shows an invalid type error:I think we need to explicitly define the type as
Record<string, string>
since we guarantee it is by setting{ headers: { "Content-Type": "application/json" } }
in the implementation.