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

[useAspidaQuery] 第三引数のbodyの型の入力補完が効かない

IshinoJun opened this issue · comments

commented

Description

第三引数のbodyの型の入力補完が効かない

Environment

以下再現リポジトリを参照。
https://github.com/IshinoJun/test-aspida

  • Package version: vX.X.X
  • OS:
    • Linux
    • Windows
    • macOS
  • Node.js version: v16.13.2
  • npm version: 8.1.2

Additional context

横から失礼します。
こちら手元の環境で試したのですが、
VS Codeで推論自体は効いているように見えたのですが、
入力補完だけ効かないが問題点の認識で合っていますか?
問題点の認識が間違っていたらすみませんmm

  • 推論されている?
    スクリーンショット 2022-05-06 12 27 33

  • 入力補完は効かないが、body: { offset: 0, limit: 10 }のように入力するとエラー無しになる
    スクリーンショット 2022-05-06 12 28 44

  • 環境

    • macOS: 12.3.1
    • Node: 16.15.0
    • npm: 8.5.5
commented

@ki504178
返事遅くなりました...

入力補完だけ効かないが問題点の認識で合っていますか?

あ、そうです!今の書き方だと伝われないですね...
修正しておきます。