Skip to content

Commit c4df693

Browse files
committed
feat(tt): 抖音小程序 chooseVideo 支持 Promise 风格
1 parent dd987d8 commit c4df693

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

+1
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

+1-1
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)