Skip to content

Network部分的类型错误 #18565

Closed

Description

@Duo-Huang

请先确认

  • 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关领域

TypeScript 类型

使用框架

React

相关平台

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 头条小程序
  • QQ 小程序
  • 钉钉小程序
  • 飞书小程序
  • 快手小程序

小程序基础库版本

No response

问题描述

Image Image 这都是啥啊

复现链接

https://github.com/NervJS/taro/blob/main/packages/taro/types/api/network/request.d.ts

复现步骤

  1. https://github.com/NervJS/taro/blob/main/packages/taro/types/api/network/request.d.ts 类型错误, 你可以npm安装完后打开看看

环境信息

╰─ npx taro info                                                                                                         ─╯
👽 Taro v4.1.7

last commit----  1155e6a
Current build env is: undefined
Current node env is: undefined

  Taro CLI 4.1.7 environment info:
    System:
      OS: macOS 26.0.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 24.11.0 - /Users/duohuang/.asdf/installs/nodejs/24.11.0/bin/node
      Yarn: 1.22.22 - /Users/duohuang/.asdf/installs/nodejs/24.11.0/bin/yarn
      npm: 11.6.1 - /Users/duohuang/.asdf/plugins/nodejs/shims/npm
    npmPackages:
      @tarojs/cli: 4.1.7 => 4.1.7 
      @tarojs/components: 4.1.7 => 4.1.7 
      @tarojs/helper: 4.1.7 => 4.1.7 
      @tarojs/plugin-framework-react: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-alipay: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-h5: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-harmony-hybrid: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-jd: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-qq: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-swan: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-tt: 4.1.7 => 4.1.7 
      @tarojs/plugin-platform-weapp: 4.1.7 => 4.1.7 
      @tarojs/react: 4.1.7 => 4.1.7 
      @tarojs/runtime: 4.1.7 => 4.1.7 
      @tarojs/shared: 4.1.7 => 4.1.7 
      @tarojs/taro: 4.1.7 => 4.1.7 
      @tarojs/taro-loader: 4.1.7 => 4.1.7 
      @tarojs/webpack5-runner: 4.1.7 => 4.1.7 
      babel-preset-taro: 4.1.7 => 4.1.7 
      eslint-config-taro: 4.1.7 => 4.1.7 
      react: ^18.0.0 => 18.3.1

开源贡献

Activity

  1. added
    A-typingsArea - TypeScript Typings 相关
    F-reactFramework - React
    T-alipayTarget - 编译到支付宝小程序
    T-h5Target - 编译到 H5
    T-harmonyTarget - 编译到 Harmony
    T-harmony_hybridTarget - 编译到 Harmony (Hybird 模式)
    T-jdTarget - 编译到京东小程序
    T-qqTarget - 编译到 QQ 小程序
    T-quickappTarget - 编译到快应用
    T-rnTarget - 编译到 React Native
    T-swanTarget - 编译到百度小程序
    T-ttTarget - 编译到字节跳动小程序
    T-weappTarget - 编译到微信小程序
    V-4Version - 4.x
    on Nov 2, 2025
  2. moved this from Padding to Done in H5on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-typingsArea - TypeScript Typings 相关F-reactFramework - ReactT-alipayTarget - 编译到支付宝小程序T-ddT-feishuT-h5Target - 编译到 H5T-harmonyTarget - 编译到 HarmonyT-harmony_hybridTarget - 编译到 Harmony (Hybird 模式)T-jdTarget - 编译到京东小程序T-kwaiT-qqTarget - 编译到 QQ 小程序T-quickappTarget - 编译到快应用T-qyT-rnTarget - 编译到 React NativeT-swanTarget - 编译到百度小程序T-ttTarget - 编译到字节跳动小程序T-weappTarget - 编译到微信小程序V-4Version - 4.xbugSomething isn't working

    Type

    No type

    Projects

    • Status
      Done
    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions