Fix TS return type

This commit is contained in:
Fernando Rojo 2020-10-05 18:47:41 +00:00 committed by GitHub
parent be2ffc8f9a
commit 673dee075b

View File

@ -1,4 +1,4 @@
async function getHeaders(options: ApiRequestOptions): Headers {
async function getHeaders(options: ApiRequestOptions): Promise<Headers> {
const headers = new Headers({
Accept: 'application/json',
...options.headers,