aspida / aspida

TypeScript friendly HTTP client wrapper for the browser and node.js.

Home Page:https://github.com/aspida/aspida

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certain type checking of query, reqBody and resBody fails since v1.10.0

SegaraRai opened this issue · comments

Description

Certain type checking no longer passes due to restrictions introduced in #750.
(tsc complains that Index signature for type 'string' is missing in type ...)
Repro: https://stackblitz.com/edit/aspida-bug-repro?file=README.md

Environment

  • Package version: v1.10.0
  • OS:
    • Linux
    • Windows
    • macOS
  • Node.js version: 16.14.2
  • npm version: 7.17.0

Additional context

Downgrading to v1.9.1 solves the issue.

commented

Thanks.
This PR #753 may fix this.
I'll release soon.

Confirmed working with v1.10.1, thanks!