diff --git a/template/fetch.ts b/template/fetch.ts index a171c31..0144f4c 100644 --- a/template/fetch.ts +++ b/template/fetch.ts @@ -2,8 +2,8 @@ import { RequestParameters } from "./request"; import { Transport } from "../api/configuration"; const parseHeaders = (headers: Headers) => { - let res: Record = {}; - for (let [key, value] of headers.entries()) { + const res: Record = {}; + for (const [key, value] of headers.entries()) { res[key] = value; } return res;