From c4df6936f61fbd7566a93300c124ba9db0dd6ef5 Mon Sep 17 00:00:00 2001 From: fuhao <632951357@qq.com> Date: Thu, 6 Mar 2025 15:49:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(tt):=20=E6=8A=96=E9=9F=B3=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=20chooseVideo=20=E6=94=AF=E6=8C=81=20Promise?= =?UTF-8?q?=20=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-tt/src/apis-list.ts | 1 + packages/taro/types/api/media/video.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/taro-tt/src/apis-list.ts b/packages/taro-tt/src/apis-list.ts index ca0527b0d837..3af4b11ebc0e 100644 --- a/packages/taro-tt/src/apis-list.ts +++ b/packages/taro-tt/src/apis-list.ts @@ -19,4 +19,5 @@ export const needPromiseApis = new Set([ 'rateAwemeOrder', 'showDouyinOpenAuth', 'showInteractionBar', + 'chooseMedia', ]) diff --git a/packages/taro/types/api/media/video.d.ts b/packages/taro/types/api/media/video.d.ts index fbf13418c9a4..2a51c4285d7b 100644 --- a/packages/taro/types/api/media/video.d.ts +++ b/packages/taro/types/api/media/video.d.ts @@ -505,7 +505,7 @@ declare module '../../index' { chooseVideo(option: chooseVideo.Option): Promise /** 拍摄或从手机相册中选择图片或视频。 - * @supported weapp, h5, harmony_hybrid + * @supported weapp, h5, harmony_hybrid, tt, * @example * ```tsx * Taro.chooseMedia({