Closed icopp closed 3 years ago
object doesn't allow properly looking up values on headers (for example, headers['Authorization'] will be rejected by Typescript). Using Partial<Record<string, string>> allows this lookup and accounts for potentially undefined headers.
object
headers
headers['Authorization']
Partial<Record<string, string>>
object
doesn't allow properly looking up values onheaders
(for example,headers['Authorization']
will be rejected by Typescript). UsingPartial<Record<string, string>>
allows this lookup and accounts for potentially undefined headers.