Skip to content

Commit 2f099c9

Browse files
author
wangluping
committed
fix: ts taro.request 支持useHighPerformanceMode字段
1 parent 8ff04a2 commit 2f099c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/taro/types/api/network/request.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ declare module '../../index' {
2525
dataType?: keyof DataType | string
2626
/** 响应的数据类型 */
2727
responseType?: keyof ResponseType
28+
/**
29+
* 使用高性能模式。从基础库 v3.5.0 开始在 Android 端默认开启,其他端暂不生效。该模式下有更优的网络性能表现。
30+
* @default true
31+
* */
32+
useHighPerformanceMode?: boolean
2833
/** 开启 http2
2934
* @default false
3035
* @supported weapp

0 commit comments

Comments
 (0)