Skip to content

Commit cd73aa2

Browse files
fuxichenSingle-Dancer
authored andcommitted
feat(tt): 抖音小程序 chooseVideo 支持 Promise 风格
1 parent 1318e86 commit cd73aa2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/taro-tt/src/apis-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ export const needPromiseApis = new Set([
1919
'rateAwemeOrder',
2020
'showDouyinOpenAuth',
2121
'showInteractionBar',
22+
'chooseMedia',
2223
])

packages/taro/types/api/media/video.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ declare module '../../index' {
505505
chooseVideo(option: chooseVideo.Option): Promise<chooseVideo.SuccessCallbackResult>
506506

507507
/** 拍摄或从手机相册中选择图片或视频。
508-
* @supported weapp, h5, harmony_hybrid
508+
* @supported weapp, h5, harmony_hybrid, tt,
509509
* @example
510510
* ```tsx
511511
* Taro.chooseMedia({

0 commit comments

Comments
 (0)