From 9d576fd9e99fea65c15e02fe9313591f6ef3eedb Mon Sep 17 00:00:00 2001 From: fuxichen <632951357@qq.com> Date: Thu, 6 Mar 2025 16:32:32 +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-platform-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-platform-tt/src/apis-list.ts b/packages/taro-platform-tt/src/apis-list.ts index ca0527b0d837..3178ec5e3cc0 100644 --- a/packages/taro-platform-tt/src/apis-list.ts +++ b/packages/taro-platform-tt/src/apis-list.ts @@ -3,6 +3,7 @@ export const needPromiseApis = new Set([ 'canRateAwemeOrders', 'checkFollowAwemeState', 'checkFollowState', + 'chooseMedia', 'continueToPay', 'createOrder', 'exitMiniProgram', diff --git a/packages/taro/types/api/media/video.d.ts b/packages/taro/types/api/media/video.d.ts index 81dc34fb13b8..d0ccaf73a42c 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, harmony + * @supported weapp, h5, harmony_hybrid, harmony, tt * @example * ```tsx * Taro.chooseMedia({