@open-dy/vibecoding-sdk-taro 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/dist/adapters/interest-card/eslint/eslint-plugin-custom-navigation.mjs +290 -0
  2. package/dist/adapters/interest-card/eslint/taro.mjs +55 -0
  3. package/dist/adapters/interest-card/runtime/microapp.d.ts +7 -0
  4. package/dist/adapters/interest-card/runtime/microapp.js +8 -0
  5. package/dist/adapters/interest-card/runtime/microapp.js.map +1 -0
  6. package/dist/adapters/interest-card/types/taro.d.ts +28 -0
  7. package/dist/build/config-overrides.d.ts +19 -0
  8. package/dist/build/config-overrides.js +35 -0
  9. package/dist/build/config-overrides.js.map +1 -0
  10. package/dist/build/index.d.ts +1 -0
  11. package/dist/build/index.js +2 -0
  12. package/dist/build/index.js.map +1 -0
  13. package/dist/build/plugins/app-config.cjs +43 -0
  14. package/dist/build/plugins/vite-depend-card.d.ts +29 -0
  15. package/dist/build/plugins/vite-depend-card.js +250 -0
  16. package/dist/build/plugins/vite-depend-card.js.map +1 -0
  17. package/dist/build/plugins/vite-image-asset-import.d.ts +10 -0
  18. package/dist/build/plugins/vite-image-asset-import.js +150 -0
  19. package/dist/build/plugins/vite-image-asset-import.js.map +1 -0
  20. package/dist/build/plugins/vite-inline-json.d.ts +4 -0
  21. package/dist/build/plugins/vite-inline-json.js +129 -0
  22. package/dist/build/plugins/vite-inline-json.js.map +1 -0
  23. package/dist/build/plugins/vite-taro-source-location.d.ts +13 -0
  24. package/dist/build/plugins/vite-taro-source-location.js +159 -0
  25. package/dist/build/plugins/vite-taro-source-location.js.map +1 -0
  26. package/dist/build/taro.d.ts +53 -0
  27. package/dist/build/taro.js +729 -0
  28. package/dist/build/taro.js.map +1 -0
  29. package/dist/components/miniapp-open-card.d.ts +19 -0
  30. package/dist/components/miniapp-open-card.js +3 -0
  31. package/dist/components/miniapp-open-card.js.map +1 -0
  32. package/dist/eslint/eslint-plugin-microapp-pages.mjs +659 -0
  33. package/dist/eslint/server.mjs +69 -0
  34. package/dist/eslint/taro.mjs +553 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +3 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/internal/runtime/douyin-open-button.d.ts +29 -0
  39. package/dist/internal/runtime/iframe-auth/identity.d.ts +20 -0
  40. package/dist/internal/runtime/iframe-auth/identity.js +156 -0
  41. package/dist/internal/runtime/iframe-auth/identity.js.map +1 -0
  42. package/dist/internal/runtime/iframe-auth/index.d.ts +2 -0
  43. package/dist/internal/runtime/iframe-auth/index.js +3 -0
  44. package/dist/internal/runtime/iframe-auth/index.js.map +1 -0
  45. package/dist/internal/runtime/iframe-auth/sync.d.ts +2 -0
  46. package/dist/internal/runtime/iframe-auth/sync.js +23 -0
  47. package/dist/internal/runtime/iframe-auth/sync.js.map +1 -0
  48. package/dist/lib/measure.d.ts +21 -0
  49. package/dist/lib/measure.js +101 -0
  50. package/dist/lib/measure.js.map +1 -0
  51. package/dist/lib/platform.d.ts +2 -0
  52. package/dist/lib/platform.js +11 -0
  53. package/dist/lib/platform.js.map +1 -0
  54. package/dist/lib/utils.d.ts +2 -0
  55. package/dist/lib/utils.js +6 -0
  56. package/dist/lib/utils.js.map +1 -0
  57. package/dist/reference/llms.txt +36 -0
  58. package/dist/reference/sdk-api/build/taro/BuildContext.md +53 -0
  59. package/dist/reference/sdk-api/build/taro/CreateMicroappTaroConfigOptions.md +62 -0
  60. package/dist/reference/sdk-api/build/taro/createMicroappTaroConfig.md +66 -0
  61. package/dist/reference/sdk-api/build/taro/index.md +11 -0
  62. package/dist/reference/sdk-api/runtime/CreateMicroappClientOptions.md +47 -0
  63. package/dist/reference/sdk-api/runtime/createMicroappClient.md +378 -0
  64. package/dist/reference/sdk-api/runtime/index.md +10 -0
  65. package/dist/reference/sdk-api.json +1534 -0
  66. package/dist/reference/sdk-api.md +43 -0
  67. package/dist/runtime/client.d.ts +63 -0
  68. package/dist/runtime/client.js +194 -0
  69. package/dist/runtime/client.js.map +1 -0
  70. package/dist/runtime/closed-domain-request-header.d.ts +4 -0
  71. package/dist/runtime/closed-domain-request-header.js +8 -0
  72. package/dist/runtime/closed-domain-request-header.js.map +1 -0
  73. package/dist/runtime/default-client.d.ts +57 -0
  74. package/dist/runtime/default-client.js +21 -0
  75. package/dist/runtime/default-client.js.map +1 -0
  76. package/dist/runtime/default-iframe-auth.d.ts +8 -0
  77. package/dist/runtime/default-iframe-auth.js +10 -0
  78. package/dist/runtime/default-iframe-auth.js.map +1 -0
  79. package/dist/runtime/douyin-container-request.d.ts +11 -0
  80. package/dist/runtime/douyin-container-request.js +301 -0
  81. package/dist/runtime/douyin-container-request.js.map +1 -0
  82. package/dist/runtime/douyin-login-request.d.ts +32 -0
  83. package/dist/runtime/douyin-login-request.js +400 -0
  84. package/dist/runtime/douyin-login-request.js.map +1 -0
  85. package/dist/runtime/globals.d.ts +342 -0
  86. package/dist/runtime/index.d.ts +4 -0
  87. package/dist/runtime/index.js +4 -0
  88. package/dist/runtime/index.js.map +1 -0
  89. package/dist/runtime/network-url.d.ts +3 -0
  90. package/dist/runtime/network-url.js +53 -0
  91. package/dist/runtime/network-url.js.map +1 -0
  92. package/dist/types/taro.d.ts +1 -0
  93. package/dist/ui/accordion.d.ts +17 -0
  94. package/dist/ui/accordion.js +60 -0
  95. package/dist/ui/accordion.js.map +1 -0
  96. package/dist/ui/alert-dialog.d.ts +33 -0
  97. package/dist/ui/alert-dialog.js +96 -0
  98. package/dist/ui/alert-dialog.js.map +1 -0
  99. package/dist/ui/alert.d.ts +11 -0
  100. package/dist/ui/alert.js +49 -0
  101. package/dist/ui/alert.js.map +1 -0
  102. package/dist/ui/aspect-ratio.d.ts +5 -0
  103. package/dist/ui/aspect-ratio.js +10 -0
  104. package/dist/ui/aspect-ratio.js.map +1 -0
  105. package/dist/ui/avatar.d.ts +14 -0
  106. package/dist/ui/avatar.js +50 -0
  107. package/dist/ui/avatar.js.map +1 -0
  108. package/dist/ui/badge.d.ts +8 -0
  109. package/dist/ui/badge.js +27 -0
  110. package/dist/ui/badge.js.map +1 -0
  111. package/dist/ui/button-group.d.ts +14 -0
  112. package/dist/ui/button-group.js +52 -0
  113. package/dist/ui/button-group.js.map +1 -0
  114. package/dist/ui/button.d.ts +30 -0
  115. package/dist/ui/button.js +75 -0
  116. package/dist/ui/button.js.map +1 -0
  117. package/dist/ui/calendar.d.ts +29 -0
  118. package/dist/ui/calendar.js +141 -0
  119. package/dist/ui/calendar.js.map +1 -0
  120. package/dist/ui/card.d.ts +12 -0
  121. package/dist/ui/card.js +38 -0
  122. package/dist/ui/card.js.map +1 -0
  123. package/dist/ui/carousel.d.ts +30 -0
  124. package/dist/ui/carousel.js +60 -0
  125. package/dist/ui/carousel.js.map +1 -0
  126. package/dist/ui/checkbox.d.ts +9 -0
  127. package/dist/ui/checkbox.js +20 -0
  128. package/dist/ui/checkbox.js.map +1 -0
  129. package/dist/ui/collapsible.d.ts +18 -0
  130. package/dist/ui/collapsible.js +53 -0
  131. package/dist/ui/collapsible.js.map +1 -0
  132. package/dist/ui/combobox.d.ts +55 -0
  133. package/dist/ui/combobox.js +165 -0
  134. package/dist/ui/combobox.js.map +1 -0
  135. package/dist/ui/dialog.d.ts +26 -0
  136. package/dist/ui/dialog.js +54 -0
  137. package/dist/ui/dialog.js.map +1 -0
  138. package/dist/ui/drawer.d.ts +21 -0
  139. package/dist/ui/drawer.js +57 -0
  140. package/dist/ui/drawer.js.map +1 -0
  141. package/dist/ui/dropdown-menu.d.ts +52 -0
  142. package/dist/ui/dropdown-menu.js +112 -0
  143. package/dist/ui/dropdown-menu.js.map +1 -0
  144. package/dist/ui/empty.d.ts +12 -0
  145. package/dist/ui/empty.js +35 -0
  146. package/dist/ui/empty.js.map +1 -0
  147. package/dist/ui/field.d.ts +26 -0
  148. package/dist/ui/field.js +117 -0
  149. package/dist/ui/field.js.map +1 -0
  150. package/dist/ui/helpers.d.ts +6 -0
  151. package/dist/ui/helpers.js +23 -0
  152. package/dist/ui/helpers.js.map +1 -0
  153. package/dist/ui/index.d.ts +47 -0
  154. package/dist/ui/index.js +48 -0
  155. package/dist/ui/index.js.map +1 -0
  156. package/dist/ui/input-group.d.ts +17 -0
  157. package/dist/ui/input-group.js +122 -0
  158. package/dist/ui/input-group.js.map +1 -0
  159. package/dist/ui/input-otp.d.ts +18 -0
  160. package/dist/ui/input-otp.js +48 -0
  161. package/dist/ui/input-otp.js.map +1 -0
  162. package/dist/ui/input.d.ts +5 -0
  163. package/dist/ui/input.js +8 -0
  164. package/dist/ui/input.js.map +1 -0
  165. package/dist/ui/item.d.ts +22 -0
  166. package/dist/ui/item.js +83 -0
  167. package/dist/ui/item.js.map +1 -0
  168. package/dist/ui/label.d.ts +3 -0
  169. package/dist/ui/label.js +8 -0
  170. package/dist/ui/label.js.map +1 -0
  171. package/dist/ui/menubar.d.ts +65 -0
  172. package/dist/ui/menubar.js +244 -0
  173. package/dist/ui/menubar.js.map +1 -0
  174. package/dist/ui/navigation-menu.d.ts +27 -0
  175. package/dist/ui/navigation-menu.js +72 -0
  176. package/dist/ui/navigation-menu.js.map +1 -0
  177. package/dist/ui/pagination.d.ts +17 -0
  178. package/dist/ui/pagination.js +28 -0
  179. package/dist/ui/pagination.js.map +1 -0
  180. package/dist/ui/popover.d.ts +27 -0
  181. package/dist/ui/popover.js +139 -0
  182. package/dist/ui/popover.js.map +1 -0
  183. package/dist/ui/portal.d.ts +5 -0
  184. package/dist/ui/portal.js +18 -0
  185. package/dist/ui/portal.js.map +1 -0
  186. package/dist/ui/progress.d.ts +45 -0
  187. package/dist/ui/progress.js +67 -0
  188. package/dist/ui/progress.js.map +1 -0
  189. package/dist/ui/radio-group.d.ts +12 -0
  190. package/dist/ui/radio-group.js +29 -0
  191. package/dist/ui/radio-group.js.map +1 -0
  192. package/dist/ui/resizable.d.ts +20 -0
  193. package/dist/ui/resizable.js +244 -0
  194. package/dist/ui/resizable.js.map +1 -0
  195. package/dist/ui/scroll-area.d.ts +8 -0
  196. package/dist/ui/scroll-area.js +34 -0
  197. package/dist/ui/scroll-area.js.map +1 -0
  198. package/dist/ui/select.d.ts +35 -0
  199. package/dist/ui/select.js +136 -0
  200. package/dist/ui/select.js.map +1 -0
  201. package/dist/ui/separator.d.ts +5 -0
  202. package/dist/ui/separator.js +8 -0
  203. package/dist/ui/separator.js.map +1 -0
  204. package/dist/ui/sheet.d.ts +26 -0
  205. package/dist/ui/sheet.js +67 -0
  206. package/dist/ui/sheet.js.map +1 -0
  207. package/dist/ui/skeleton.d.ts +3 -0
  208. package/dist/ui/skeleton.js +8 -0
  209. package/dist/ui/skeleton.js.map +1 -0
  210. package/dist/ui/slider.d.ts +12 -0
  211. package/dist/ui/slider.js +94 -0
  212. package/dist/ui/slider.js.map +1 -0
  213. package/dist/ui/sonner.d.ts +6 -0
  214. package/dist/ui/sonner.js +13 -0
  215. package/dist/ui/sonner.js.map +1 -0
  216. package/dist/ui/spinner.d.ts +3 -0
  217. package/dist/ui/spinner.js +9 -0
  218. package/dist/ui/spinner.js.map +1 -0
  219. package/dist/ui/switch.d.ts +11 -0
  220. package/dist/ui/switch.js +33 -0
  221. package/dist/ui/switch.js.map +1 -0
  222. package/dist/ui/table.d.ts +13 -0
  223. package/dist/ui/table.js +54 -0
  224. package/dist/ui/table.js.map +1 -0
  225. package/dist/ui/tabs.d.ts +23 -0
  226. package/dist/ui/tabs.js +61 -0
  227. package/dist/ui/tabs.js.map +1 -0
  228. package/dist/ui/tailwind.css +2 -0
  229. package/dist/ui/textarea.d.ts +3 -0
  230. package/dist/ui/textarea.js +13 -0
  231. package/dist/ui/textarea.js.map +1 -0
  232. package/dist/ui/theme.css +234 -0
  233. package/dist/ui/toggle-group.d.ts +19 -0
  234. package/dist/ui/toggle-group.js +73 -0
  235. package/dist/ui/toggle-group.js.map +1 -0
  236. package/dist/ui/toggle.d.ts +14 -0
  237. package/dist/ui/toggle.js +41 -0
  238. package/dist/ui/toggle.js.map +1 -0
  239. package/package.json +97 -0
@@ -0,0 +1,1534 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "generatedBy": "build/src/sdk-reference/skill-reference.ts",
4
+ "entryPoints": [
5
+ {
6
+ "exportPath": "@open-dy/vibecoding-sdk-taro",
7
+ "description": "根入口:类型与聚合导出。"
8
+ },
9
+ {
10
+ "exportPath": "@open-dy/vibecoding-sdk-taro/runtime",
11
+ "description": "SDK 公开 API。",
12
+ "docPath": "sdk-api/runtime/index.md"
13
+ },
14
+ {
15
+ "exportPath": "@open-dy/vibecoding-sdk-taro/interest-card/runtime/microapp",
16
+ "description": "兴趣卡普通小程序适配器,复用 runtime 入口。",
17
+ "docPath": "sdk-api/runtime/index.md"
18
+ },
19
+ {
20
+ "exportPath": "@open-dy/vibecoding-sdk-taro/interest-card/eslint/taro",
21
+ "description": "公开导出入口。"
22
+ },
23
+ {
24
+ "exportPath": "@open-dy/vibecoding-sdk-taro/interest-card/types/taro",
25
+ "description": "公开导出入口。"
26
+ },
27
+ {
28
+ "exportPath": "@open-dy/vibecoding-sdk-taro/ui",
29
+ "description": "React UI 组件入口。"
30
+ },
31
+ {
32
+ "exportPath": "@open-dy/vibecoding-sdk-taro/ui/*",
33
+ "description": "React UI 组件入口。"
34
+ },
35
+ {
36
+ "exportPath": "@open-dy/vibecoding-sdk-taro/ui/theme.css",
37
+ "description": "UI 样式资源入口。"
38
+ },
39
+ {
40
+ "exportPath": "@open-dy/vibecoding-sdk-taro/ui/tailwind.css",
41
+ "description": "UI 样式资源入口。"
42
+ },
43
+ {
44
+ "exportPath": "@open-dy/vibecoding-sdk-taro/components/miniapp-open-card",
45
+ "description": "公开导出入口。"
46
+ },
47
+ {
48
+ "exportPath": "@open-dy/vibecoding-sdk-taro/build/taro",
49
+ "description": "SDK 公开 API。",
50
+ "docPath": "sdk-api/build/taro/index.md"
51
+ },
52
+ {
53
+ "exportPath": "@open-dy/vibecoding-sdk-taro/types/taro",
54
+ "description": "平台类型声明入口。"
55
+ },
56
+ {
57
+ "exportPath": "@open-dy/vibecoding-sdk-taro/reference/sdk-api.md",
58
+ "description": "已生成的机器可读或 Markdown 参考文档。"
59
+ },
60
+ {
61
+ "exportPath": "@open-dy/vibecoding-sdk-taro/reference/sdk-api.json",
62
+ "description": "已生成的机器可读或 Markdown 参考文档。"
63
+ },
64
+ {
65
+ "exportPath": "@open-dy/vibecoding-sdk-taro/reference/llms.txt",
66
+ "description": "已生成的机器可读或 Markdown 参考文档。"
67
+ },
68
+ {
69
+ "exportPath": "@open-dy/vibecoding-sdk-taro/reference/sdk-api/*",
70
+ "description": "已生成的机器可读或 Markdown 参考文档。"
71
+ },
72
+ {
73
+ "exportPath": "@open-dy/vibecoding-sdk-taro/eslint/taro",
74
+ "description": "场景化 ESLint 配置入口。"
75
+ },
76
+ {
77
+ "exportPath": "@open-dy/vibecoding-sdk-taro/eslint/server",
78
+ "description": "场景化 ESLint 配置入口。"
79
+ },
80
+ {
81
+ "exportPath": "@open-dy/vibecoding-sdk-taro/build",
82
+ "description": "构建能力聚合入口;详细契约见 build/taro 和 build/opencard。",
83
+ "docPath": "sdk-api/build/taro/index.md"
84
+ }
85
+ ],
86
+ "apis": [
87
+ {
88
+ "id": "runtime.createMicroappClient",
89
+ "name": "createMicroappClient",
90
+ "importPath": "@open-dy/vibecoding-sdk-taro/runtime",
91
+ "source": "src/runtime/default-client.ts",
92
+ "docPath": "sdk-api/runtime/createMicroappClient.md",
93
+ "summary": "创建普通小程序的网络入口;SDK 自动绑定项目 Taro 运行时。",
94
+ "documentation": {
95
+ "summary": "创建普通小程序的网络入口;SDK 自动绑定项目 Taro 运行时。",
96
+ "parameters": [
97
+ {
98
+ "name": "options",
99
+ "description": "平台渠道配置;默认使用内场渠道。"
100
+ }
101
+ ],
102
+ "returns": "提供普通网络方法,以及显式追加 X-Closed-Domain 标记的对应方法;标记方法不改变请求目标或云服务 SERVICE_ID。",
103
+ "remarks": [
104
+ "业务优先从模板的 @/network 导入 Network;HTTP(S) 绝对地址直接交给 Taro。"
105
+ ],
106
+ "examples": [
107
+ {
108
+ "language": "ts",
109
+ "code": "const Network = createMicroappClient({ platformChannel: 'ext' })\nconst response = await Network.request({ url: '/api/products', method: 'GET' })"
110
+ }
111
+ ]
112
+ },
113
+ "ai": {
114
+ "intent": "创建绑定默认 Taro 实例的普通小程序 Network。",
115
+ "when": "业务代码需要统一调用普通小程序的 request、uploadFile、downloadFile 或 streamSse 时。",
116
+ "avoid": "不要在页面中直接调用 Taro.request,也不要传入 OpenCard 的 taro 实例。",
117
+ "example": "const Network = createMicroappClient({ platformChannel: 'ext' })"
118
+ },
119
+ "signature": "function createMicroappClient(options?: CreateMicroappClientOptions);",
120
+ "contract": {
121
+ "kind": "callable",
122
+ "signature": "(options?: CreateMicroappClientOptions): { request: <T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>; requestClosedDomain: <T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>; uploadFile: (option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }) => ReturnType<typeof Taro.uploadFile>; uploadFileClosedDomain: (option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }) => ReturnType<typeof Taro.uploadFile>; downloadFile: (option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }) => ReturnType<typeof Taro.downloadFile>; downloadFileClosedDomain: (option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }) => ReturnType<typeof Taro.downloadFile>; streamSse: (option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }) => Promise<{ close: () => void; }>; streamSseClosedDomain: (option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }) => Promise<{ close: () => void; }>; }",
123
+ "parameters": [
124
+ {
125
+ "name": "options",
126
+ "optional": false,
127
+ "type": "CreateMicroappClientOptions",
128
+ "description": "平台渠道配置;默认使用内场渠道。",
129
+ "fields": [
130
+ {
131
+ "name": "platformChannel",
132
+ "optional": true,
133
+ "type": "\"\" | \"ext\" | undefined",
134
+ "description": "平台渠道:空字符串为内场,ext 为外场;默认空字符串。"
135
+ }
136
+ ]
137
+ }
138
+ ],
139
+ "returns": {
140
+ "type": "{ request: <T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>; requestClosedDomain: <T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>; uploadFile: (option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }) => ReturnType<typeof Taro.uploadFile>; uploadFileClosedDomain: (option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }) => ReturnType<typeof Taro.uploadFile>; downloadFile: (option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }) => ReturnType<typeof Taro.downloadFile>; downloadFileClosedDomain: (option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }) => ReturnType<typeof Taro.downloadFile>; streamSse: (option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }) => Promise<{ close: () => void; }>; streamSseClosedDomain: (option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }) => Promise<{ close: () => void; }>; }",
141
+ "fields": [
142
+ {
143
+ "name": "request",
144
+ "optional": false,
145
+ "type": "<T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>",
146
+ "description": "发起请求并复用 SDK 管理的身份与当前应用服务配置。"
147
+ },
148
+ {
149
+ "name": "requestClosedDomain",
150
+ "optional": false,
151
+ "type": "<T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>",
152
+ "description": "发起请求并追加 X-Closed-Domain 标记;不改变请求目标或云服务 SERVICE_ID。"
153
+ },
154
+ {
155
+ "name": "uploadFile",
156
+ "optional": false,
157
+ "type": "(option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }) => ReturnType<typeof Taro.uploadFile>",
158
+ "description": "上传文件并返回平台上传结果。"
159
+ },
160
+ {
161
+ "name": "uploadFileClosedDomain",
162
+ "optional": false,
163
+ "type": "(option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }) => ReturnType<typeof Taro.uploadFile>",
164
+ "description": "上传文件并追加 X-Closed-Domain 标记;不改变请求目标或云服务 SERVICE_ID。"
165
+ },
166
+ {
167
+ "name": "downloadFile",
168
+ "optional": false,
169
+ "type": "(option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }) => ReturnType<typeof Taro.downloadFile>",
170
+ "description": "下载文件并返回平台下载结果。"
171
+ },
172
+ {
173
+ "name": "downloadFileClosedDomain",
174
+ "optional": false,
175
+ "type": "(option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }) => ReturnType<typeof Taro.downloadFile>",
176
+ "description": "下载文件并追加 X-Closed-Domain 标记;不改变请求目标或云服务 SERVICE_ID。"
177
+ },
178
+ {
179
+ "name": "streamSse",
180
+ "optional": false,
181
+ "type": "(option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }) => Promise<{ close: () => void; }>",
182
+ "description": "建立服务端事件流并返回可关闭的流句柄。"
183
+ },
184
+ {
185
+ "name": "streamSseClosedDomain",
186
+ "optional": false,
187
+ "type": "(option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }) => Promise<{ close: () => void; }>",
188
+ "description": "建立带 X-Closed-Domain 标记的服务端事件流;不改变请求目标或云服务 SERVICE_ID。"
189
+ }
190
+ ]
191
+ },
192
+ "methods": [
193
+ {
194
+ "name": "request",
195
+ "description": "发起请求并复用 SDK 管理的身份与当前应用服务配置。",
196
+ "signature": "<T = any, U = any>(option: Taro.request.Option<T, U>): Taro.RequestTask<T>",
197
+ "parameters": [
198
+ {
199
+ "name": "option",
200
+ "optional": false,
201
+ "type": "Taro.request.Option<T, U>",
202
+ "description": "请求、上传或下载的配置对象。",
203
+ "fields": [
204
+ {
205
+ "name": "url",
206
+ "optional": false,
207
+ "type": "string",
208
+ "description": "开发者服务器接口地址"
209
+ },
210
+ {
211
+ "name": "data",
212
+ "optional": true,
213
+ "type": "U | undefined",
214
+ "description": "请求的参数"
215
+ },
216
+ {
217
+ "name": "header",
218
+ "optional": true,
219
+ "type": "TaroGeneral.IAnyObject | undefined",
220
+ "description": "设置请求的 header,header 中不能设置 Referer。 `content-type` 默认为 `application/json`"
221
+ },
222
+ {
223
+ "name": "timeout",
224
+ "optional": true,
225
+ "type": "number | undefined",
226
+ "description": "超时时间,单位为毫秒"
227
+ },
228
+ {
229
+ "name": "method",
230
+ "optional": true,
231
+ "type": "keyof Taro.request.Method | undefined",
232
+ "description": "HTTP 请求方法"
233
+ },
234
+ {
235
+ "name": "dataType",
236
+ "optional": true,
237
+ "type": "string | undefined",
238
+ "description": "返回的数据格式"
239
+ },
240
+ {
241
+ "name": "responseType",
242
+ "optional": true,
243
+ "type": "keyof Taro.request.ResponseType | undefined",
244
+ "description": "响应的数据类型"
245
+ },
246
+ {
247
+ "name": "useHighPerformanceMode",
248
+ "optional": true,
249
+ "type": "boolean | undefined",
250
+ "description": "使用高性能模式。从基础库 v3.5.0 开始在 Android 端默认开启,其他端暂不生效。该模式下有更优的网络性能表现。"
251
+ },
252
+ {
253
+ "name": "enableHttp2",
254
+ "optional": true,
255
+ "type": "boolean | undefined",
256
+ "description": "开启 http2"
257
+ },
258
+ {
259
+ "name": "enableQuic",
260
+ "optional": true,
261
+ "type": "boolean | undefined",
262
+ "description": "开启 quic"
263
+ },
264
+ {
265
+ "name": "enableCache",
266
+ "optional": true,
267
+ "type": "boolean | undefined",
268
+ "description": "开启 cache"
269
+ },
270
+ {
271
+ "name": "enableHttpDNS",
272
+ "optional": true,
273
+ "type": "boolean | undefined",
274
+ "description": "是否开启 HttpDNS 服务。如开启,需要同时填入 httpDNSServiceId 。 HttpDNS 用法详见 移动解析HttpDNS"
275
+ },
276
+ {
277
+ "name": "httpDNSServiceId",
278
+ "optional": true,
279
+ "type": "string | undefined",
280
+ "description": "HttpDNS 服务商 Id。 HttpDNS 用法详见 移动解析HttpDNS"
281
+ },
282
+ {
283
+ "name": "enableChunked",
284
+ "optional": true,
285
+ "type": "boolean | undefined",
286
+ "description": "开启 transfer-encoding chunked。"
287
+ },
288
+ {
289
+ "name": "forceCellularNetwork",
290
+ "optional": true,
291
+ "type": "boolean | undefined",
292
+ "description": "wifi下使用移动网络发送请求"
293
+ },
294
+ {
295
+ "name": "enableCookie",
296
+ "optional": true,
297
+ "type": "boolean | undefined",
298
+ "description": "headers 中设置 cookie 字段是否生效。如果为 false,则 headers 中的 cookie 字段将被忽略,请求头中将包含服务端上一次返回的 cookie(如果有)。"
299
+ },
300
+ {
301
+ "name": "referrerStrategy",
302
+ "optional": true,
303
+ "type": "keyof Taro.request.ReferrerStrategy | undefined",
304
+ "description": "referer 策略,用于控制当前请求 header 对象中 referer 字段格式。该参数默认值可通过 app.json 中的配置进行修改。"
305
+ },
306
+ {
307
+ "name": "success",
308
+ "optional": true,
309
+ "type": "((result: Taro.request.SuccessCallbackResult<T>) => void) | undefined",
310
+ "description": "接口调用成功的回调函数"
311
+ },
312
+ {
313
+ "name": "fail",
314
+ "optional": true,
315
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
316
+ "description": "接口调用失败的回调函数"
317
+ },
318
+ {
319
+ "name": "complete",
320
+ "optional": true,
321
+ "type": "((res: Partial<Taro.request.SuccessCallbackResult> & TaroGeneral.CallbackResult) => void) | undefined",
322
+ "description": "接口调用结束的回调函数(调用成功、失败都会执行)"
323
+ },
324
+ {
325
+ "name": "jsonp",
326
+ "optional": true,
327
+ "type": "string | boolean | undefined",
328
+ "description": "设置是否使用 jsonp 方式获取数据"
329
+ },
330
+ {
331
+ "name": "jsonpCache",
332
+ "optional": true,
333
+ "type": "RequestCache | undefined",
334
+ "description": "设置 jsonp 请求 url 是否需要被缓存"
335
+ },
336
+ {
337
+ "name": "mode",
338
+ "optional": true,
339
+ "type": "keyof Taro.request.CorsMode | undefined",
340
+ "description": "设置是否允许跨域请求"
341
+ },
342
+ {
343
+ "name": "credentials",
344
+ "optional": true,
345
+ "type": "keyof Taro.request.Credentials | undefined",
346
+ "description": "设置是否携带 Cookie"
347
+ },
348
+ {
349
+ "name": "cache",
350
+ "optional": true,
351
+ "type": "keyof Taro.request.Cache | undefined",
352
+ "description": "设置缓存模式"
353
+ },
354
+ {
355
+ "name": "retryTimes",
356
+ "optional": true,
357
+ "type": "number | undefined",
358
+ "description": "设置请求重试次数"
359
+ },
360
+ {
361
+ "name": "backup",
362
+ "optional": true,
363
+ "type": "string | string[] | undefined",
364
+ "description": "设置请求的兜底接口"
365
+ },
366
+ {
367
+ "name": "signal",
368
+ "optional": true,
369
+ "type": "AbortSignal | undefined",
370
+ "description": "设置请求中止信号"
371
+ },
372
+ {
373
+ "name": "dataCheck",
374
+ "optional": true,
375
+ "type": "(() => boolean) | undefined",
376
+ "description": "设置请求响应的数据校验函数,若返回 false,则请求兜底接口,若无兜底接口,则报请求失败"
377
+ },
378
+ {
379
+ "name": "useStore",
380
+ "optional": true,
381
+ "type": "boolean | undefined",
382
+ "description": "设置请求是否使用缓存"
383
+ },
384
+ {
385
+ "name": "storeCheckKey",
386
+ "optional": true,
387
+ "type": "string | undefined",
388
+ "description": "设置请求缓存校验的 key"
389
+ },
390
+ {
391
+ "name": "storeSign",
392
+ "optional": true,
393
+ "type": "string | undefined",
394
+ "description": "设置请求缓存签名"
395
+ },
396
+ {
397
+ "name": "storeCheck",
398
+ "optional": true,
399
+ "type": "(() => boolean) | undefined",
400
+ "description": "设置请求校验函数,一般不需要设置"
401
+ }
402
+ ]
403
+ }
404
+ ],
405
+ "returns": {
406
+ "type": "Taro.RequestTask<T>",
407
+ "promise": true,
408
+ "resolvesTo": "Taro.request.SuccessCallbackResult<T>",
409
+ "fields": [
410
+ {
411
+ "name": "data",
412
+ "optional": false,
413
+ "type": "T",
414
+ "description": "开发者服务器返回的数据"
415
+ },
416
+ {
417
+ "name": "header",
418
+ "optional": false,
419
+ "type": "TaroGeneral.IAnyObject",
420
+ "description": "开发者服务器返回的 HTTP Response Header"
421
+ },
422
+ {
423
+ "name": "statusCode",
424
+ "optional": false,
425
+ "type": "number",
426
+ "description": "开发者服务器返回的 HTTP 状态码"
427
+ },
428
+ {
429
+ "name": "errMsg",
430
+ "optional": false,
431
+ "type": "string",
432
+ "description": "调用结果"
433
+ },
434
+ {
435
+ "name": "cookies",
436
+ "optional": true,
437
+ "type": "string[] | undefined",
438
+ "description": "cookies"
439
+ }
440
+ ]
441
+ }
442
+ },
443
+ {
444
+ "name": "requestClosedDomain",
445
+ "description": "发起请求并追加 X-Closed-Domain 标记;不改变请求目标或云服务 SERVICE_ID。",
446
+ "signature": "<T = any, U = any>(option: Taro.request.Option<T, U>): Taro.RequestTask<T>",
447
+ "parameters": [
448
+ {
449
+ "name": "option",
450
+ "optional": false,
451
+ "type": "Taro.request.Option<T, U>",
452
+ "description": "请求、上传或下载的配置对象。",
453
+ "fields": [
454
+ {
455
+ "name": "url",
456
+ "optional": false,
457
+ "type": "string",
458
+ "description": "开发者服务器接口地址"
459
+ },
460
+ {
461
+ "name": "data",
462
+ "optional": true,
463
+ "type": "U | undefined",
464
+ "description": "请求的参数"
465
+ },
466
+ {
467
+ "name": "header",
468
+ "optional": true,
469
+ "type": "TaroGeneral.IAnyObject | undefined",
470
+ "description": "设置请求的 header,header 中不能设置 Referer。 `content-type` 默认为 `application/json`"
471
+ },
472
+ {
473
+ "name": "timeout",
474
+ "optional": true,
475
+ "type": "number | undefined",
476
+ "description": "超时时间,单位为毫秒"
477
+ },
478
+ {
479
+ "name": "method",
480
+ "optional": true,
481
+ "type": "keyof Taro.request.Method | undefined",
482
+ "description": "HTTP 请求方法"
483
+ },
484
+ {
485
+ "name": "dataType",
486
+ "optional": true,
487
+ "type": "string | undefined",
488
+ "description": "返回的数据格式"
489
+ },
490
+ {
491
+ "name": "responseType",
492
+ "optional": true,
493
+ "type": "keyof Taro.request.ResponseType | undefined",
494
+ "description": "响应的数据类型"
495
+ },
496
+ {
497
+ "name": "useHighPerformanceMode",
498
+ "optional": true,
499
+ "type": "boolean | undefined",
500
+ "description": "使用高性能模式。从基础库 v3.5.0 开始在 Android 端默认开启,其他端暂不生效。该模式下有更优的网络性能表现。"
501
+ },
502
+ {
503
+ "name": "enableHttp2",
504
+ "optional": true,
505
+ "type": "boolean | undefined",
506
+ "description": "开启 http2"
507
+ },
508
+ {
509
+ "name": "enableQuic",
510
+ "optional": true,
511
+ "type": "boolean | undefined",
512
+ "description": "开启 quic"
513
+ },
514
+ {
515
+ "name": "enableCache",
516
+ "optional": true,
517
+ "type": "boolean | undefined",
518
+ "description": "开启 cache"
519
+ },
520
+ {
521
+ "name": "enableHttpDNS",
522
+ "optional": true,
523
+ "type": "boolean | undefined",
524
+ "description": "是否开启 HttpDNS 服务。如开启,需要同时填入 httpDNSServiceId 。 HttpDNS 用法详见 移动解析HttpDNS"
525
+ },
526
+ {
527
+ "name": "httpDNSServiceId",
528
+ "optional": true,
529
+ "type": "string | undefined",
530
+ "description": "HttpDNS 服务商 Id。 HttpDNS 用法详见 移动解析HttpDNS"
531
+ },
532
+ {
533
+ "name": "enableChunked",
534
+ "optional": true,
535
+ "type": "boolean | undefined",
536
+ "description": "开启 transfer-encoding chunked。"
537
+ },
538
+ {
539
+ "name": "forceCellularNetwork",
540
+ "optional": true,
541
+ "type": "boolean | undefined",
542
+ "description": "wifi下使用移动网络发送请求"
543
+ },
544
+ {
545
+ "name": "enableCookie",
546
+ "optional": true,
547
+ "type": "boolean | undefined",
548
+ "description": "headers 中设置 cookie 字段是否生效。如果为 false,则 headers 中的 cookie 字段将被忽略,请求头中将包含服务端上一次返回的 cookie(如果有)。"
549
+ },
550
+ {
551
+ "name": "referrerStrategy",
552
+ "optional": true,
553
+ "type": "keyof Taro.request.ReferrerStrategy | undefined",
554
+ "description": "referer 策略,用于控制当前请求 header 对象中 referer 字段格式。该参数默认值可通过 app.json 中的配置进行修改。"
555
+ },
556
+ {
557
+ "name": "success",
558
+ "optional": true,
559
+ "type": "((result: Taro.request.SuccessCallbackResult<T>) => void) | undefined",
560
+ "description": "接口调用成功的回调函数"
561
+ },
562
+ {
563
+ "name": "fail",
564
+ "optional": true,
565
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
566
+ "description": "接口调用失败的回调函数"
567
+ },
568
+ {
569
+ "name": "complete",
570
+ "optional": true,
571
+ "type": "((res: Partial<Taro.request.SuccessCallbackResult> & TaroGeneral.CallbackResult) => void) | undefined",
572
+ "description": "接口调用结束的回调函数(调用成功、失败都会执行)"
573
+ },
574
+ {
575
+ "name": "jsonp",
576
+ "optional": true,
577
+ "type": "string | boolean | undefined",
578
+ "description": "设置是否使用 jsonp 方式获取数据"
579
+ },
580
+ {
581
+ "name": "jsonpCache",
582
+ "optional": true,
583
+ "type": "RequestCache | undefined",
584
+ "description": "设置 jsonp 请求 url 是否需要被缓存"
585
+ },
586
+ {
587
+ "name": "mode",
588
+ "optional": true,
589
+ "type": "keyof Taro.request.CorsMode | undefined",
590
+ "description": "设置是否允许跨域请求"
591
+ },
592
+ {
593
+ "name": "credentials",
594
+ "optional": true,
595
+ "type": "keyof Taro.request.Credentials | undefined",
596
+ "description": "设置是否携带 Cookie"
597
+ },
598
+ {
599
+ "name": "cache",
600
+ "optional": true,
601
+ "type": "keyof Taro.request.Cache | undefined",
602
+ "description": "设置缓存模式"
603
+ },
604
+ {
605
+ "name": "retryTimes",
606
+ "optional": true,
607
+ "type": "number | undefined",
608
+ "description": "设置请求重试次数"
609
+ },
610
+ {
611
+ "name": "backup",
612
+ "optional": true,
613
+ "type": "string | string[] | undefined",
614
+ "description": "设置请求的兜底接口"
615
+ },
616
+ {
617
+ "name": "signal",
618
+ "optional": true,
619
+ "type": "AbortSignal | undefined",
620
+ "description": "设置请求中止信号"
621
+ },
622
+ {
623
+ "name": "dataCheck",
624
+ "optional": true,
625
+ "type": "(() => boolean) | undefined",
626
+ "description": "设置请求响应的数据校验函数,若返回 false,则请求兜底接口,若无兜底接口,则报请求失败"
627
+ },
628
+ {
629
+ "name": "useStore",
630
+ "optional": true,
631
+ "type": "boolean | undefined",
632
+ "description": "设置请求是否使用缓存"
633
+ },
634
+ {
635
+ "name": "storeCheckKey",
636
+ "optional": true,
637
+ "type": "string | undefined",
638
+ "description": "设置请求缓存校验的 key"
639
+ },
640
+ {
641
+ "name": "storeSign",
642
+ "optional": true,
643
+ "type": "string | undefined",
644
+ "description": "设置请求缓存签名"
645
+ },
646
+ {
647
+ "name": "storeCheck",
648
+ "optional": true,
649
+ "type": "(() => boolean) | undefined",
650
+ "description": "设置请求校验函数,一般不需要设置"
651
+ }
652
+ ]
653
+ }
654
+ ],
655
+ "returns": {
656
+ "type": "Taro.RequestTask<T>",
657
+ "promise": true,
658
+ "resolvesTo": "Taro.request.SuccessCallbackResult<T>",
659
+ "fields": [
660
+ {
661
+ "name": "data",
662
+ "optional": false,
663
+ "type": "T",
664
+ "description": "开发者服务器返回的数据"
665
+ },
666
+ {
667
+ "name": "header",
668
+ "optional": false,
669
+ "type": "TaroGeneral.IAnyObject",
670
+ "description": "开发者服务器返回的 HTTP Response Header"
671
+ },
672
+ {
673
+ "name": "statusCode",
674
+ "optional": false,
675
+ "type": "number",
676
+ "description": "开发者服务器返回的 HTTP 状态码"
677
+ },
678
+ {
679
+ "name": "errMsg",
680
+ "optional": false,
681
+ "type": "string",
682
+ "description": "调用结果"
683
+ },
684
+ {
685
+ "name": "cookies",
686
+ "optional": true,
687
+ "type": "string[] | undefined",
688
+ "description": "cookies"
689
+ }
690
+ ]
691
+ }
692
+ },
693
+ {
694
+ "name": "uploadFile",
695
+ "description": "上传文件并返回平台上传结果。",
696
+ "signature": "(option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }): ReturnType<typeof Taro.uploadFile>",
697
+ "parameters": [
698
+ {
699
+ "name": "option",
700
+ "optional": false,
701
+ "type": "Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }",
702
+ "description": "请求、上传或下载的配置对象。",
703
+ "fields": [
704
+ {
705
+ "name": "filePath",
706
+ "optional": false,
707
+ "type": "string",
708
+ "description": "要上传文件资源的路径"
709
+ },
710
+ {
711
+ "name": "header",
712
+ "optional": true,
713
+ "type": "TaroGeneral.IAnyObject | undefined",
714
+ "description": "HTTP 请求 Header,Header 中不能设置 Referer"
715
+ },
716
+ {
717
+ "name": "formData",
718
+ "optional": true,
719
+ "type": "TaroGeneral.IAnyObject | undefined",
720
+ "description": "HTTP 请求中其他额外的 form data"
721
+ },
722
+ {
723
+ "name": "timeout",
724
+ "optional": true,
725
+ "type": "number | undefined",
726
+ "description": "超时时间,单位为毫秒"
727
+ },
728
+ {
729
+ "name": "fileName",
730
+ "optional": true,
731
+ "type": "string | undefined",
732
+ "description": "上传的文件名"
733
+ },
734
+ {
735
+ "name": "withCredentials",
736
+ "optional": true,
737
+ "type": "boolean | undefined",
738
+ "description": "是否应使用传出凭据 (cookie) 发送此请求"
739
+ },
740
+ {
741
+ "name": "complete",
742
+ "optional": true,
743
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
744
+ "description": "接口调用结束的回调函数(调用成功、失败都会执行)"
745
+ },
746
+ {
747
+ "name": "fail",
748
+ "optional": true,
749
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
750
+ "description": "接口调用失败的回调函数"
751
+ },
752
+ {
753
+ "name": "success",
754
+ "optional": true,
755
+ "type": "((result: Taro.uploadFile.SuccessCallbackResult) => void) | undefined",
756
+ "description": "接口调用成功的回调函数"
757
+ },
758
+ {
759
+ "name": "url",
760
+ "optional": true,
761
+ "type": "string | undefined",
762
+ "description": "请求地址。"
763
+ },
764
+ {
765
+ "name": "name",
766
+ "optional": true,
767
+ "type": "string | undefined"
768
+ }
769
+ ]
770
+ }
771
+ ],
772
+ "returns": {
773
+ "type": "Taro.UploadTask.UploadTaskPromise",
774
+ "promise": true,
775
+ "resolvesTo": "Taro.uploadFile.SuccessCallbackResult",
776
+ "fields": [
777
+ {
778
+ "name": "data",
779
+ "optional": false,
780
+ "type": "string",
781
+ "description": "开发者服务器返回的数据"
782
+ },
783
+ {
784
+ "name": "statusCode",
785
+ "optional": false,
786
+ "type": "number",
787
+ "description": "开发者服务器返回的 HTTP 状态码"
788
+ },
789
+ {
790
+ "name": "errMsg",
791
+ "optional": false,
792
+ "type": "string",
793
+ "description": "调用结果"
794
+ },
795
+ {
796
+ "name": "header",
797
+ "optional": true,
798
+ "type": "TaroGeneral.IAnyObject | undefined",
799
+ "description": "开发者服务器返回的 HTTP Response Header"
800
+ },
801
+ {
802
+ "name": "cookies",
803
+ "optional": true,
804
+ "type": "string[] | undefined",
805
+ "description": "cookies"
806
+ }
807
+ ]
808
+ }
809
+ },
810
+ {
811
+ "name": "uploadFileClosedDomain",
812
+ "description": "上传文件并追加 X-Closed-Domain 标记;不改变请求目标或云服务 SERVICE_ID。",
813
+ "signature": "(option: Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }): ReturnType<typeof Taro.uploadFile>",
814
+ "parameters": [
815
+ {
816
+ "name": "option",
817
+ "optional": false,
818
+ "type": "Omit<Taro.uploadFile.Option, \"url\" | \"name\"> & { url?: string; name?: string; }",
819
+ "description": "请求、上传或下载的配置对象。",
820
+ "fields": [
821
+ {
822
+ "name": "filePath",
823
+ "optional": false,
824
+ "type": "string",
825
+ "description": "要上传文件资源的路径"
826
+ },
827
+ {
828
+ "name": "header",
829
+ "optional": true,
830
+ "type": "TaroGeneral.IAnyObject | undefined",
831
+ "description": "HTTP 请求 Header,Header 中不能设置 Referer"
832
+ },
833
+ {
834
+ "name": "formData",
835
+ "optional": true,
836
+ "type": "TaroGeneral.IAnyObject | undefined",
837
+ "description": "HTTP 请求中其他额外的 form data"
838
+ },
839
+ {
840
+ "name": "timeout",
841
+ "optional": true,
842
+ "type": "number | undefined",
843
+ "description": "超时时间,单位为毫秒"
844
+ },
845
+ {
846
+ "name": "fileName",
847
+ "optional": true,
848
+ "type": "string | undefined",
849
+ "description": "上传的文件名"
850
+ },
851
+ {
852
+ "name": "withCredentials",
853
+ "optional": true,
854
+ "type": "boolean | undefined",
855
+ "description": "是否应使用传出凭据 (cookie) 发送此请求"
856
+ },
857
+ {
858
+ "name": "complete",
859
+ "optional": true,
860
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
861
+ "description": "接口调用结束的回调函数(调用成功、失败都会执行)"
862
+ },
863
+ {
864
+ "name": "fail",
865
+ "optional": true,
866
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
867
+ "description": "接口调用失败的回调函数"
868
+ },
869
+ {
870
+ "name": "success",
871
+ "optional": true,
872
+ "type": "((result: Taro.uploadFile.SuccessCallbackResult) => void) | undefined",
873
+ "description": "接口调用成功的回调函数"
874
+ },
875
+ {
876
+ "name": "url",
877
+ "optional": true,
878
+ "type": "string | undefined",
879
+ "description": "请求地址。"
880
+ },
881
+ {
882
+ "name": "name",
883
+ "optional": true,
884
+ "type": "string | undefined"
885
+ }
886
+ ]
887
+ }
888
+ ],
889
+ "returns": {
890
+ "type": "Taro.UploadTask.UploadTaskPromise",
891
+ "promise": true,
892
+ "resolvesTo": "Taro.uploadFile.SuccessCallbackResult",
893
+ "fields": [
894
+ {
895
+ "name": "data",
896
+ "optional": false,
897
+ "type": "string",
898
+ "description": "开发者服务器返回的数据"
899
+ },
900
+ {
901
+ "name": "statusCode",
902
+ "optional": false,
903
+ "type": "number",
904
+ "description": "开发者服务器返回的 HTTP 状态码"
905
+ },
906
+ {
907
+ "name": "errMsg",
908
+ "optional": false,
909
+ "type": "string",
910
+ "description": "调用结果"
911
+ },
912
+ {
913
+ "name": "header",
914
+ "optional": true,
915
+ "type": "TaroGeneral.IAnyObject | undefined",
916
+ "description": "开发者服务器返回的 HTTP Response Header"
917
+ },
918
+ {
919
+ "name": "cookies",
920
+ "optional": true,
921
+ "type": "string[] | undefined",
922
+ "description": "cookies"
923
+ }
924
+ ]
925
+ }
926
+ },
927
+ {
928
+ "name": "downloadFile",
929
+ "description": "下载文件并返回平台下载结果。",
930
+ "signature": "(option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }): ReturnType<typeof Taro.downloadFile>",
931
+ "parameters": [
932
+ {
933
+ "name": "option",
934
+ "optional": false,
935
+ "type": "Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }",
936
+ "description": "请求、上传或下载的配置对象。",
937
+ "fields": [
938
+ {
939
+ "name": "filePath",
940
+ "optional": true,
941
+ "type": "string | undefined",
942
+ "description": "指定文件下载后存储的路径"
943
+ },
944
+ {
945
+ "name": "header",
946
+ "optional": true,
947
+ "type": "TaroGeneral.IAnyObject | undefined",
948
+ "description": "HTTP 请求的 Header,Header 中不能设置 Referer"
949
+ },
950
+ {
951
+ "name": "timeout",
952
+ "optional": true,
953
+ "type": "number | undefined",
954
+ "description": "超时时间,单位为毫秒"
955
+ },
956
+ {
957
+ "name": "withCredentials",
958
+ "optional": true,
959
+ "type": "boolean | undefined",
960
+ "description": "是否应使用传出凭据 (cookie) 发送此请求"
961
+ },
962
+ {
963
+ "name": "complete",
964
+ "optional": true,
965
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
966
+ "description": "接口调用结束的回调函数(调用成功、失败都会执行)"
967
+ },
968
+ {
969
+ "name": "fail",
970
+ "optional": true,
971
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
972
+ "description": "接口调用失败的回调函数"
973
+ },
974
+ {
975
+ "name": "success",
976
+ "optional": true,
977
+ "type": "((result: Taro.downloadFile.FileSuccessCallbackResult) => void) | undefined",
978
+ "description": "接口调用成功的回调函数"
979
+ },
980
+ {
981
+ "name": "url",
982
+ "optional": true,
983
+ "type": "string | undefined",
984
+ "description": "请求地址。"
985
+ }
986
+ ]
987
+ }
988
+ ],
989
+ "returns": {
990
+ "type": "Taro.DownloadTask.DownloadTaskPromise",
991
+ "promise": true,
992
+ "resolvesTo": "Taro.downloadFile.FileSuccessCallbackResult",
993
+ "fields": [
994
+ {
995
+ "name": "filePath",
996
+ "optional": false,
997
+ "type": "string",
998
+ "description": "用户文件路径。传入 filePath 时会返回,跟传入的 filePath 一致"
999
+ },
1000
+ {
1001
+ "name": "statusCode",
1002
+ "optional": false,
1003
+ "type": "number",
1004
+ "description": "开发者服务器返回的 HTTP 状态码"
1005
+ },
1006
+ {
1007
+ "name": "tempFilePath",
1008
+ "optional": false,
1009
+ "type": "string",
1010
+ "description": "临时文件路径。没传入 filePath 指定文件存储路径时会返回,下载后的文件会存储到一个临时文件"
1011
+ },
1012
+ {
1013
+ "name": "errMsg",
1014
+ "optional": false,
1015
+ "type": "string",
1016
+ "description": "调用结果"
1017
+ },
1018
+ {
1019
+ "name": "header",
1020
+ "optional": true,
1021
+ "type": "TaroGeneral.IAnyObject | undefined",
1022
+ "description": "开发者服务器返回的 HTTP Response Header"
1023
+ },
1024
+ {
1025
+ "name": "dataLength",
1026
+ "optional": true,
1027
+ "type": "number | undefined",
1028
+ "description": "数据长度,单位 Byte"
1029
+ },
1030
+ {
1031
+ "name": "cookies",
1032
+ "optional": true,
1033
+ "type": "string[] | undefined",
1034
+ "description": "cookies"
1035
+ },
1036
+ {
1037
+ "name": "profile",
1038
+ "optional": true,
1039
+ "type": "TaroGeneral.IAnyObject | undefined",
1040
+ "description": "网络请求过程中一些调试信息"
1041
+ }
1042
+ ]
1043
+ }
1044
+ },
1045
+ {
1046
+ "name": "downloadFileClosedDomain",
1047
+ "description": "下载文件并追加 X-Closed-Domain 标记;不改变请求目标或云服务 SERVICE_ID。",
1048
+ "signature": "(option: Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }): ReturnType<typeof Taro.downloadFile>",
1049
+ "parameters": [
1050
+ {
1051
+ "name": "option",
1052
+ "optional": false,
1053
+ "type": "Omit<Taro.downloadFile.Option, \"url\"> & { url?: string; }",
1054
+ "description": "请求、上传或下载的配置对象。",
1055
+ "fields": [
1056
+ {
1057
+ "name": "filePath",
1058
+ "optional": true,
1059
+ "type": "string | undefined",
1060
+ "description": "指定文件下载后存储的路径"
1061
+ },
1062
+ {
1063
+ "name": "header",
1064
+ "optional": true,
1065
+ "type": "TaroGeneral.IAnyObject | undefined",
1066
+ "description": "HTTP 请求的 Header,Header 中不能设置 Referer"
1067
+ },
1068
+ {
1069
+ "name": "timeout",
1070
+ "optional": true,
1071
+ "type": "number | undefined",
1072
+ "description": "超时时间,单位为毫秒"
1073
+ },
1074
+ {
1075
+ "name": "withCredentials",
1076
+ "optional": true,
1077
+ "type": "boolean | undefined",
1078
+ "description": "是否应使用传出凭据 (cookie) 发送此请求"
1079
+ },
1080
+ {
1081
+ "name": "complete",
1082
+ "optional": true,
1083
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
1084
+ "description": "接口调用结束的回调函数(调用成功、失败都会执行)"
1085
+ },
1086
+ {
1087
+ "name": "fail",
1088
+ "optional": true,
1089
+ "type": "((res: TaroGeneral.CallbackResult) => void) | undefined",
1090
+ "description": "接口调用失败的回调函数"
1091
+ },
1092
+ {
1093
+ "name": "success",
1094
+ "optional": true,
1095
+ "type": "((result: Taro.downloadFile.FileSuccessCallbackResult) => void) | undefined",
1096
+ "description": "接口调用成功的回调函数"
1097
+ },
1098
+ {
1099
+ "name": "url",
1100
+ "optional": true,
1101
+ "type": "string | undefined",
1102
+ "description": "请求地址。"
1103
+ }
1104
+ ]
1105
+ }
1106
+ ],
1107
+ "returns": {
1108
+ "type": "Taro.DownloadTask.DownloadTaskPromise",
1109
+ "promise": true,
1110
+ "resolvesTo": "Taro.downloadFile.FileSuccessCallbackResult",
1111
+ "fields": [
1112
+ {
1113
+ "name": "filePath",
1114
+ "optional": false,
1115
+ "type": "string",
1116
+ "description": "用户文件路径。传入 filePath 时会返回,跟传入的 filePath 一致"
1117
+ },
1118
+ {
1119
+ "name": "statusCode",
1120
+ "optional": false,
1121
+ "type": "number",
1122
+ "description": "开发者服务器返回的 HTTP 状态码"
1123
+ },
1124
+ {
1125
+ "name": "tempFilePath",
1126
+ "optional": false,
1127
+ "type": "string",
1128
+ "description": "临时文件路径。没传入 filePath 指定文件存储路径时会返回,下载后的文件会存储到一个临时文件"
1129
+ },
1130
+ {
1131
+ "name": "errMsg",
1132
+ "optional": false,
1133
+ "type": "string",
1134
+ "description": "调用结果"
1135
+ },
1136
+ {
1137
+ "name": "header",
1138
+ "optional": true,
1139
+ "type": "TaroGeneral.IAnyObject | undefined",
1140
+ "description": "开发者服务器返回的 HTTP Response Header"
1141
+ },
1142
+ {
1143
+ "name": "dataLength",
1144
+ "optional": true,
1145
+ "type": "number | undefined",
1146
+ "description": "数据长度,单位 Byte"
1147
+ },
1148
+ {
1149
+ "name": "cookies",
1150
+ "optional": true,
1151
+ "type": "string[] | undefined",
1152
+ "description": "cookies"
1153
+ },
1154
+ {
1155
+ "name": "profile",
1156
+ "optional": true,
1157
+ "type": "TaroGeneral.IAnyObject | undefined",
1158
+ "description": "网络请求过程中一些调试信息"
1159
+ }
1160
+ ]
1161
+ }
1162
+ },
1163
+ {
1164
+ "name": "streamSse",
1165
+ "description": "建立服务端事件流并返回可关闭的流句柄。",
1166
+ "signature": "(option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }): Promise<{ close: () => void; }>",
1167
+ "parameters": [
1168
+ {
1169
+ "name": "option",
1170
+ "optional": false,
1171
+ "type": "{ url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }",
1172
+ "description": "请求、上传或下载的配置对象。",
1173
+ "fields": [
1174
+ {
1175
+ "name": "url",
1176
+ "optional": false,
1177
+ "type": "string",
1178
+ "description": "请求地址。"
1179
+ },
1180
+ {
1181
+ "name": "method",
1182
+ "optional": true,
1183
+ "type": "string | undefined",
1184
+ "description": "HTTP 请求方法。"
1185
+ },
1186
+ {
1187
+ "name": "data",
1188
+ "optional": true,
1189
+ "type": "unknown",
1190
+ "description": "请求负载。"
1191
+ },
1192
+ {
1193
+ "name": "header",
1194
+ "optional": true,
1195
+ "type": "Record<string, unknown> | undefined",
1196
+ "description": "请求头。"
1197
+ },
1198
+ {
1199
+ "name": "onMessage",
1200
+ "optional": false,
1201
+ "type": "(frame: string) => void"
1202
+ },
1203
+ {
1204
+ "name": "onError",
1205
+ "optional": true,
1206
+ "type": "((error: Error) => void) | undefined"
1207
+ },
1208
+ {
1209
+ "name": "onComplete",
1210
+ "optional": true,
1211
+ "type": "(() => void) | undefined"
1212
+ }
1213
+ ]
1214
+ }
1215
+ ],
1216
+ "returns": {
1217
+ "type": "Promise<{ close: () => void; }>",
1218
+ "promise": true,
1219
+ "resolvesTo": "{ close: () => void; }",
1220
+ "fields": [
1221
+ {
1222
+ "name": "close",
1223
+ "optional": false,
1224
+ "type": "() => void"
1225
+ }
1226
+ ]
1227
+ }
1228
+ },
1229
+ {
1230
+ "name": "streamSseClosedDomain",
1231
+ "description": "建立带 X-Closed-Domain 标记的服务端事件流;不改变请求目标或云服务 SERVICE_ID。",
1232
+ "signature": "(option: { url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }): Promise<{ close: () => void; }>",
1233
+ "parameters": [
1234
+ {
1235
+ "name": "option",
1236
+ "optional": false,
1237
+ "type": "{ url: string; method?: string; data?: unknown; header?: Record<string, unknown>; onMessage(frame: string): void; onError?(error: Error): void; onComplete?(): void; }",
1238
+ "description": "请求、上传或下载的配置对象。",
1239
+ "fields": [
1240
+ {
1241
+ "name": "url",
1242
+ "optional": false,
1243
+ "type": "string",
1244
+ "description": "请求地址。"
1245
+ },
1246
+ {
1247
+ "name": "method",
1248
+ "optional": true,
1249
+ "type": "string | undefined",
1250
+ "description": "HTTP 请求方法。"
1251
+ },
1252
+ {
1253
+ "name": "data",
1254
+ "optional": true,
1255
+ "type": "unknown",
1256
+ "description": "请求负载。"
1257
+ },
1258
+ {
1259
+ "name": "header",
1260
+ "optional": true,
1261
+ "type": "Record<string, unknown> | undefined",
1262
+ "description": "请求头。"
1263
+ },
1264
+ {
1265
+ "name": "onMessage",
1266
+ "optional": false,
1267
+ "type": "(frame: string) => void"
1268
+ },
1269
+ {
1270
+ "name": "onError",
1271
+ "optional": true,
1272
+ "type": "((error: Error) => void) | undefined"
1273
+ },
1274
+ {
1275
+ "name": "onComplete",
1276
+ "optional": true,
1277
+ "type": "(() => void) | undefined"
1278
+ }
1279
+ ]
1280
+ }
1281
+ ],
1282
+ "returns": {
1283
+ "type": "Promise<{ close: () => void; }>",
1284
+ "promise": true,
1285
+ "resolvesTo": "{ close: () => void; }",
1286
+ "fields": [
1287
+ {
1288
+ "name": "close",
1289
+ "optional": false,
1290
+ "type": "() => void"
1291
+ }
1292
+ ]
1293
+ }
1294
+ }
1295
+ ]
1296
+ }
1297
+ },
1298
+ {
1299
+ "id": "runtime.CreateMicroappClientOptions",
1300
+ "name": "CreateMicroappClientOptions",
1301
+ "importPath": "@open-dy/vibecoding-sdk-taro/runtime",
1302
+ "source": "src/runtime/client.ts",
1303
+ "docPath": "sdk-api/runtime/CreateMicroappClientOptions.md",
1304
+ "summary": "配置普通小程序 Network 的平台渠道。",
1305
+ "documentation": {
1306
+ "summary": "配置普通小程序 Network 的平台渠道。",
1307
+ "examples": [
1308
+ {
1309
+ "language": "ts",
1310
+ "code": "const options = { platformChannel: 'ext' as const }"
1311
+ }
1312
+ ]
1313
+ },
1314
+ "ai": {
1315
+ "intent": "配置普通小程序 Network 的平台渠道。",
1316
+ "when": "需要让普通小程序请求携带内场或外场渠道标识时。",
1317
+ "avoid": "不要在业务页面直接拼接渠道请求头。",
1318
+ "example": "{ platformChannel: 'ext' }"
1319
+ },
1320
+ "signature": "export interface CreateMicroappClientOptions {\n platformChannel?: '' | 'ext';\n}",
1321
+ "contract": {
1322
+ "kind": "type",
1323
+ "type": "CreateMicroappClientOptions",
1324
+ "fields": [
1325
+ {
1326
+ "name": "platformChannel",
1327
+ "optional": true,
1328
+ "type": "\"\" | \"ext\" | undefined",
1329
+ "description": "平台渠道:空字符串为内场,ext 为外场;默认空字符串。"
1330
+ }
1331
+ ]
1332
+ }
1333
+ },
1334
+ {
1335
+ "id": "build/taro.BuildContext",
1336
+ "name": "BuildContext",
1337
+ "importPath": "@open-dy/vibecoding-sdk-taro/build/taro",
1338
+ "source": "src/build/taro.ts",
1339
+ "docPath": "sdk-api/build/taro/BuildContext.md",
1340
+ "summary": "Taro 构建阶段共享的编译上下文。",
1341
+ "documentation": {
1342
+ "summary": "Taro 构建阶段共享的编译上下文。",
1343
+ "examples": [
1344
+ {
1345
+ "language": "ts",
1346
+ "code": "const context: BuildContext = { isH5: true, isTt: false, mode: 'development', projectRoot }"
1347
+ }
1348
+ ]
1349
+ },
1350
+ "ai": {
1351
+ "intent": "描述 SDK 构建插件收到的 Taro 编译上下文。",
1352
+ "when": "需要根据 H5、TT 或开发模式调整构建配置时。",
1353
+ "avoid": "不要在业务页面中手动伪造该上下文或修改构建产物。",
1354
+ "example": "{ isH5: true, isTt: false, mode: 'development', projectRoot }"
1355
+ },
1356
+ "signature": "export interface BuildContext {\n isH5: boolean;\n isTt: boolean;\n mode: string;\n projectRoot: string;\n}",
1357
+ "contract": {
1358
+ "kind": "type",
1359
+ "type": "BuildContext",
1360
+ "fields": [
1361
+ {
1362
+ "name": "isH5",
1363
+ "optional": false,
1364
+ "type": "boolean",
1365
+ "description": "是否构建 H5 输出。"
1366
+ },
1367
+ {
1368
+ "name": "isTt",
1369
+ "optional": false,
1370
+ "type": "boolean",
1371
+ "description": "是否构建 TT 小程序输出。"
1372
+ },
1373
+ {
1374
+ "name": "mode",
1375
+ "optional": false,
1376
+ "type": "string",
1377
+ "description": "当前 Taro 构建模式。"
1378
+ },
1379
+ {
1380
+ "name": "projectRoot",
1381
+ "optional": false,
1382
+ "type": "string",
1383
+ "description": "工程根目录。"
1384
+ }
1385
+ ]
1386
+ }
1387
+ },
1388
+ {
1389
+ "id": "build/taro.CreateMicroappTaroConfigOptions",
1390
+ "name": "CreateMicroappTaroConfigOptions",
1391
+ "importPath": "@open-dy/vibecoding-sdk-taro/build/taro",
1392
+ "source": "src/build/taro.ts",
1393
+ "docPath": "sdk-api/build/taro/CreateMicroappTaroConfigOptions.md",
1394
+ "summary": "创建普通小程序 Taro 配置的选项。",
1395
+ "documentation": {
1396
+ "summary": "创建普通小程序 Taro 配置的选项。",
1397
+ "parameters": [
1398
+ {
1399
+ "name": "projectRoot",
1400
+ "description": "工程根目录。"
1401
+ },
1402
+ {
1403
+ "name": "platformChannel",
1404
+ "description": "平台渠道。"
1405
+ },
1406
+ {
1407
+ "name": "viteErrorTargets",
1408
+ "description": "Vite 错误上报目标。"
1409
+ },
1410
+ {
1411
+ "name": "overrides",
1412
+ "description": "配置覆盖项。"
1413
+ }
1414
+ ],
1415
+ "examples": [
1416
+ {
1417
+ "language": "ts",
1418
+ "code": "createMicroappTaroConfig({ projectRoot: process.cwd() })"
1419
+ }
1420
+ ]
1421
+ },
1422
+ "ai": {
1423
+ "intent": "配置普通小程序的 Taro/Vite 构建入口。",
1424
+ "when": "需要从项目构建脚本创建普通小程序配置时。",
1425
+ "avoid": "不要在业务代码中直接调用 Taro/Vite 内部构建 API。",
1426
+ "example": "createMicroappTaroConfig({ projectRoot: process.cwd() })"
1427
+ },
1428
+ "signature": "export interface CreateMicroappTaroConfigOptions {\n projectRoot: string;\n platformChannel?: '' | 'ext';\n viteErrorTargets?: string[];\n overrides?: Record<string, any> | ((config: UserConfigExport, ctx: BuildContext) => UserConfigExport | void);\n}",
1429
+ "contract": {
1430
+ "kind": "type",
1431
+ "type": "CreateMicroappTaroConfigOptions",
1432
+ "fields": [
1433
+ {
1434
+ "name": "projectRoot",
1435
+ "optional": false,
1436
+ "type": "string",
1437
+ "description": "工程根目录。"
1438
+ },
1439
+ {
1440
+ "name": "platformChannel",
1441
+ "optional": true,
1442
+ "type": "\"\" | \"ext\" | undefined",
1443
+ "description": "平台渠道。"
1444
+ },
1445
+ {
1446
+ "name": "viteErrorTargets",
1447
+ "optional": true,
1448
+ "type": "string[] | undefined",
1449
+ "description": "Vite 错误上报目标列表。"
1450
+ },
1451
+ {
1452
+ "name": "overrides",
1453
+ "optional": true,
1454
+ "type": "Record<string, any> | ((config: UserConfigExport, ctx: BuildContext) => UserConfigExport | void) | undefined",
1455
+ "description": "配置对象或配置变换函数。"
1456
+ }
1457
+ ]
1458
+ }
1459
+ },
1460
+ {
1461
+ "id": "build/taro.createMicroappTaroConfig",
1462
+ "name": "createMicroappTaroConfig",
1463
+ "importPath": "@open-dy/vibecoding-sdk-taro/build/taro",
1464
+ "source": "src/build/taro.ts",
1465
+ "docPath": "sdk-api/build/taro/createMicroappTaroConfig.md",
1466
+ "summary": "创建普通小程序的 Taro/Vite 构建配置。",
1467
+ "documentation": {
1468
+ "summary": "创建普通小程序的 Taro/Vite 构建配置。",
1469
+ "parameters": [
1470
+ {
1471
+ "name": "options",
1472
+ "description": "构建配置选项。"
1473
+ }
1474
+ ],
1475
+ "returns": "Taro 配置工厂函数。",
1476
+ "examples": [
1477
+ {
1478
+ "language": "ts",
1479
+ "code": "createMicroappTaroConfig({ projectRoot: process.cwd() })"
1480
+ }
1481
+ ]
1482
+ },
1483
+ "ai": {
1484
+ "intent": "创建普通小程序的 Taro/Vite 构建配置。",
1485
+ "when": "构建脚本需要加载普通小程序的 SDK 配置时。",
1486
+ "avoid": "不要在业务页面调用该构建工厂,也不要绕过 SDK 修改代理配置。",
1487
+ "example": "createMicroappTaroConfig({ projectRoot: process.cwd() })"
1488
+ },
1489
+ "signature": "function createMicroappTaroConfig(options: CreateMicroappTaroConfigOptions): UserConfigExport;",
1490
+ "contract": {
1491
+ "kind": "callable",
1492
+ "signature": "(options: CreateMicroappTaroConfigOptions): UserConfigExport",
1493
+ "parameters": [
1494
+ {
1495
+ "name": "options",
1496
+ "optional": false,
1497
+ "type": "CreateMicroappTaroConfigOptions",
1498
+ "description": "构建配置选项。",
1499
+ "fields": [
1500
+ {
1501
+ "name": "projectRoot",
1502
+ "optional": false,
1503
+ "type": "string",
1504
+ "description": "工程根目录。"
1505
+ },
1506
+ {
1507
+ "name": "platformChannel",
1508
+ "optional": true,
1509
+ "type": "\"\" | \"ext\" | undefined",
1510
+ "description": "平台渠道。"
1511
+ },
1512
+ {
1513
+ "name": "viteErrorTargets",
1514
+ "optional": true,
1515
+ "type": "string[] | undefined",
1516
+ "description": "Vite 错误上报目标列表。"
1517
+ },
1518
+ {
1519
+ "name": "overrides",
1520
+ "optional": true,
1521
+ "type": "Record<string, any> | ((config: UserConfigExport, ctx: BuildContext) => UserConfigExport | void) | undefined",
1522
+ "description": "配置对象或配置变换函数。"
1523
+ }
1524
+ ]
1525
+ }
1526
+ ],
1527
+ "returns": {
1528
+ "type": "UserConfigExport"
1529
+ },
1530
+ "methods": []
1531
+ }
1532
+ }
1533
+ ]
1534
+ }