: never
+
+export type RemoveReactAttribute = 'children' | 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
+
+export type TransformReact2SolidType> = DistributiveOmit
& SlimProps & JSX.DirectiveAttributes & JSX.CustomAttributes
+
+type Components = (props: TransformReact2SolidType) => JSXElement;
+
+
+/** 视图容器 */
+export declare const Block: Components
+export declare const CoverImage: Components
+export declare const CoverView: Components
+export declare const GridView: Components
+export declare const ListView: Components
+export declare const MatchMedia: Components
+export declare const MovableArea: Components
+export declare const MovableView: Components
+export declare const PageContainer: Components
+export declare const RootPortal: Components
+export declare const ScrollView: Components
+export declare const ShareElement: Components
+export declare const StickyHeader: Components
+export declare const StickySection: Components
+export declare const Swiper: Components
+export declare const SwiperItem: Components
+export declare const View: Components
+/** 基础内容 */
+export declare const Icon: Components
+export declare const Progress: Components
+export declare const RichText: Components
+export declare const Text: Components
+/** 表单组件 */
+export declare const Button: Components
+export declare const Checkbox: Components
+export declare const CheckboxGroup: Components
+export declare const Editor: Components
+export declare const Form: Components
+export declare const Input: Components
+export declare const KeyboardAccessory: Components
+export declare const Label: Components
+export declare const Picker: Components
+export declare const PickerView: Components
+export declare const PickerViewColumn: Components
+export declare const Radio: Components
+export declare const RadioGroup: Components
+export declare const Slider: Components
+export declare const Switch: Components
+export declare const Textarea: Components
+/** 导航 */
+export declare const FunctionalPageNavigator: Components
+export declare const Navigator: Components
+export declare const NavigationBar: Components
+/** 媒体组件 */
+export declare const Audio: Components
+export declare const Camera: Components
+export declare const ChannelLive: Components
+export declare const ChannelVideo: Components
+export declare const Image: Components
+export declare const LivePlayer: Components
+export declare const LivePusher: Components
+export declare const Video: Components
+export declare const VoipRoom: Components
+/** 地图 */
+export declare const Map: Components
+/** 画布 */
+export declare const Canvas: Components
+/** 开放能力 */
+export declare const Ad: Components
+export declare const AdCustom: Components
+export declare const OfficialAccount: Components
+export declare const OpenData: Components
+export declare const WebView: Components
+/** 配置节点 */
+export declare const PageMeta: Components
+
+export declare const CustomWrapper: Components
+export declare const Slot: Components
+export declare const NativeSlot: Components
+
+declare global {
+ namespace JSX {
+ interface IntrinsicElements {
+ /** 视图容器 */
+ block: TransformReact2SolidType
+ 'taro-block-core': TransformReact2SolidType
+ 'cover-image': TransformReact2SolidType
+ 'taro-cover-image-core': TransformReact2SolidType
+ 'cover-view': TransformReact2SolidType
+ 'taro-cover-view-core': TransformReact2SolidType
+ 'match-media': TransformReact2SolidType
+ 'taro-match-media-core': TransformReact2SolidType
+ 'movable-area': TransformReact2SolidType
+ 'taro-movable-area-core': TransformReact2SolidType
+ 'movable-view': TransformReact2SolidType
+ 'taro-movable-view-core': TransformReact2SolidType
+ 'page-container': TransformReact2SolidType
+ 'taro-page-container-core': TransformReact2SolidType
+ 'root-portal': TransformReact2SolidType
+ 'taro-root-portal-core': TransformReact2SolidType
+ 'scroll-view': TransformReact2SolidType
+ 'taro-scroll-view-core': TransformReact2SolidType
+ swiper: TransformReact2SolidType
+ 'taro-swiper-core': TransformReact2SolidType
+ 'swiper-item': TransformReact2SolidType
+ 'taro-swiper-item-core': TransformReact2SolidType
+ view: TransformReact2SolidType
+ 'taro-view-core': TransformReact2SolidType
+ /** 基础内容 */
+ icon: TransformReact2SolidType
+ 'taro-icon-core': TransformReact2SolidType
+ progress: TransformReact2SolidType
+ 'taro-progress-core': TransformReact2SolidType
+ 'rich-text': TransformReact2SolidType
+ 'taro-rich-text-core': TransformReact2SolidType
+ text: TransformReact2SolidType
+ 'taro-text-core': TransformReact2SolidType
+ /** 表单组件 */
+ button: TransformReact2SolidType
+ 'taro-button-core': TransformReact2SolidType
+ checkbox: TransformReact2SolidType
+ 'taro-checkbox-core': TransformReact2SolidType
+ 'checkbox-group': TransformReact2SolidType
+ 'taro-checkbox-group-core': TransformReact2SolidType
+ editor: TransformReact2SolidType
+ 'taro-editor-core': TransformReact2SolidType
+ form: TransformReact2SolidType
+ 'taro-form-core': TransformReact2SolidType
+ input: TransformReact2SolidType
+ 'taro-input-core': TransformReact2SolidType
+ 'keyboard-accessory': TransformReact2SolidType
+ 'taro-keyboard-accessory-core': TransformReact2SolidType
+ label: TransformReact2SolidType
+ 'taro-label-core': TransformReact2SolidType
+ picker: TransformReact2SolidType
+ 'taro-picker-core': TransformReact2SolidType
+ 'picker-view': TransformReact2SolidType
+ 'taro-picker-view-core': TransformReact2SolidType
+ 'picker-view-column': TransformReact2SolidType
+ 'taro-picker-view-column-core': TransformReact2SolidType
+ radio: TransformReact2SolidType
+ 'taro-radio-core': TransformReact2SolidType
+ 'radio-group': TransformReact2SolidType
+ 'taro-radio-group-core': TransformReact2SolidType
+ slider: TransformReact2SolidType
+ 'taro-slider-core': TransformReact2SolidType
+ switch: TransformReact2SolidType
+ 'taro-switch-core': TransformReact2SolidType
+ textarea: TransformReact2SolidType
+ 'taro-textarea-core': TransformReact2SolidType
+ /** Skyline */
+ 'grid-view': TransformReact2SolidType
+ 'taro-grid-view-core': TransformReact2SolidType
+ 'list-view': TransformReact2SolidType
+ 'taro-list-view-core': TransformReact2SolidType
+ 'share-element': TransformReact2SolidType
+ 'taro-share-element-core': TransformReact2SolidType
+ 'snapshot': TransformReact2SolidType
+ 'taro-snapshot-core': TransformReact2SolidType
+ 'sticky-header': TransformReact2SolidType
+ 'taro-sticky-header-core': TransformReact2SolidType
+ 'sticky-section': TransformReact2SolidType
+ 'taro-sticky-section-core': TransformReact2SolidType
+ /** 导航 */
+ 'functional-page-navigator': TransformReact2SolidType
+ 'taro-functional-page-navigator-core': TransformReact2SolidType
+ navigator: TransformReact2SolidType
+ 'taro-navigator-core': TransformReact2SolidType
+ 'navigation-bar': TransformReact2SolidType
+ 'taro-navigation-bar-core': TransformReact2SolidType
+ /** 媒体组件 */
+ audio: TransformReact2SolidType
+ 'taro-audio-core': TransformReact2SolidType
+ camera: TransformReact2SolidType
+ 'taro-camera-core': TransformReact2SolidType
+ 'channel-live': TransformReact2SolidType
+ 'taro-channel-live-core': TransformReact2SolidType
+ 'channel-video': TransformReact2SolidType
+ 'taro-channel-video-core': TransformReact2SolidType
+ image: TransformReact2SolidType
+ 'taro-image-core': TransformReact2SolidType
+ 'live-player': TransformReact2SolidType
+ 'taro-live-player-core': TransformReact2SolidType
+ 'live-pusher': TransformReact2SolidType
+ 'taro-live-pusher-core': TransformReact2SolidType
+ video: TransformReact2SolidType
+ 'taro-video-core': TransformReact2SolidType
+ 'voip-room': TransformReact2SolidType
+ 'taro-voip-room-core': TransformReact2SolidType
+ /** 地图 */
+ map: TransformReact2SolidType
+ 'taro-map-core': TransformReact2SolidType
+ /** 画布 */
+ canvas: TransformReact2SolidType
+ 'taro-canvas-core': TransformReact2SolidType
+ /** 开放能力 */
+ ad: TransformReact2SolidType
+ 'taro-ad-core': TransformReact2SolidType
+ 'ad-custom': TransformReact2SolidType
+ 'taro-ad-custom-core': TransformReact2SolidType
+ 'official-account': TransformReact2SolidType
+ 'taro-official-account-core': TransformReact2SolidType
+ 'open-data': TransformReact2SolidType
+ 'taro-open-data-core': TransformReact2SolidType
+ 'web-view': TransformReact2SolidType
+ 'taro-web-view-core': TransformReact2SolidType
+ /** 配置节点 */
+ 'page-meta': TransformReact2SolidType
+ 'taro-page-meta-core': TransformReact2SolidType
+
+ 'custom-wrapper': TransformReact2SolidType
+ 'taro-custom-wrapper-core': TransformReact2SolidType
+ /** 为了不与vue3模板默认的slot冲突,增加 Record */
+ 'slot': TransformReact2SolidType & Record
+ 'taro-slot-core': TransformReact2SolidType
+ 'native-slot': TransformReact2SolidType
+ 'taro-native-slot-core': TransformReact2SolidType
+ }
+ }
+}
+
+
diff --git a/packages/taro/types/api/base/env.d.ts b/packages/taro/types/api/base/env.d.ts
index 4af6ec22599a..2eb5a32b346f 100644
--- a/packages/taro/types/api/base/env.d.ts
+++ b/packages/taro/types/api/base/env.d.ts
@@ -9,7 +9,7 @@ declare module '../../index' {
env: {
[key: string]: string | undefined
/** 框架 */
- FRAMEWORK: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
+ FRAMEWORK: 'react' | 'preact' | 'solid' | 'vue3'
/** Taro 环境变量 */
TARO_ENV: 'weapp' | 'h5' | 'rn' | 'swan' | 'alipay' | 'tt' | 'qq' | 'jd' | 'quickapp'
/** 文件系统中的用户目录路径 (本地路径) */
diff --git a/packages/taro/types/api/base/system.d.ts b/packages/taro/types/api/base/system.d.ts
index 09bd8430117f..3e20b53b49f8 100644
--- a/packages/taro/types/api/base/system.d.ts
+++ b/packages/taro/types/api/base/system.d.ts
@@ -546,7 +546,7 @@ declare module '../../index' {
getSystemSetting(): getSystemSetting.Result
/** [Taro.getSystemInfo](./getSystemInfo) 的同步版本
- * @supported weapp, h5, rn, tt, harmony_hybrid
+ * @supported weapp, h5, rn, tt, harmony, harmony_hybrid
* @h5 不支持 version、statusBarHeight、fontSizeSetting、SDKVersion
* @weapp 小程序可以在微信和企业微信中调用此接口,但是在企业微信中调用此接口时,会额外返回一个 environment 字段(微信中不返回),如此字段值为 wxwork,则表示当前小程序运行在企业微信环境中。
* @example
@@ -591,7 +591,7 @@ declare module '../../index' {
getSystemInfoAsync(res?: getSystemInfoAsync.Option): Promise
/** 获取系统信息,支持 `Promise` 化使用。
- * @supported weapp, h5, rn, tt, harmony_hybrid
+ * @supported weapp, h5, rn, tt, harmony, harmony_hybrid
* @h5 不支持 version、statusBarHeight、fontSizeSetting、SDKVersion
* @weapp 小程序可以在微信和企业微信中调用此接口,但是在企业微信中调用此接口时,会额外返回一个 environment 字段(微信中不返回),如此字段值为 wxwork,则表示当前小程序运行在企业微信环境中。
* @example
diff --git a/packages/taro/types/api/base/weapp/app-event.d.ts b/packages/taro/types/api/base/weapp/app-event.d.ts
index 9613b3c9c72d..b67bd4bfca12 100644
--- a/packages/taro/types/api/base/weapp/app-event.d.ts
+++ b/packages/taro/types/api/base/weapp/app-event.d.ts
@@ -113,7 +113,7 @@ declare module '../../../index' {
*
* **注意**
* - 所有的 unhandledRejection 都可以被这一监听捕获,但只有 Error 类型的才会在小程序后台触发报警。
- * @supported weapp, tt, h5, harmony_hybrid
+ * @supported weapp, tt, h5, harmony, harmony_hybrid
* @see https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onUnhandledRejection.html
*/
onUnhandledRejection(callback: onUnhandledRejection.Callback): void
@@ -137,7 +137,7 @@ declare module '../../../index' {
onPageNotFound(callback: onPageNotFound.Callback): void
/** 监听小程序错误事件。如脚本错误或 API 调用报错等。该事件与 [`App.onError`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onerrorstring-error) 的回调时机与参数一致。
- * @supported weapp, tt, h5, harmony_hybrid
+ * @supported weapp, tt, h5, harmony, harmony_hybrid
* @see https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onError.html
*/
onError(callback: onError.Callback): void
@@ -196,7 +196,7 @@ declare module '../../../index' {
): void
/** 取消监听未处理的 Promise 拒绝事件
- * @supported weapp, tt, h5, harmony_hybrid
+ * @supported weapp, tt, h5, harmony, harmony_hybrid
* @see https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offUnhandledRejection.html
*/
offUnhandledRejection(callback: onUnhandledRejection.Callback): void
@@ -217,7 +217,7 @@ declare module '../../../index' {
): void
/** 取消监听音频播放错误事件
- * @supported weapp, tt, h5, harmony_hybrid
+ * @supported weapp, tt, h5, harmony, harmony_hybrid
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/InnerAudioContext.offError.html
*/
diff --git a/packages/taro/types/api/device/accelerometer.d.ts b/packages/taro/types/api/device/accelerometer.d.ts
index 02cf4b7a0e2c..3d5e8bbba23f 100644
--- a/packages/taro/types/api/device/accelerometer.d.ts
+++ b/packages/taro/types/api/device/accelerometer.d.ts
@@ -56,7 +56,7 @@ declare module '../../index' {
* ```tsx
* Taro.startAccelerometer({ interval: 'game' })
* ```
- * @supported weapp, alipay, swan, jd, qq, tt, h5, rn
+ * @supported weapp, alipay, swan, jd, qq, tt, h5, rn, harmony
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.startAccelerometer.html
*/
startAccelerometer (res?: startAccelerometer.Option): Promise
@@ -67,14 +67,14 @@ declare module '../../index' {
* ```tsx
* Taro.stopAccelerometer()
* ```
- * @supported weapp, alipay, swan, jd, qq, tt, h5, rn
+ * @supported weapp, alipay, swan, jd, qq, tt, h5, rn, harmony
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.stopAccelerometer.html
*/
stopAccelerometer (res?: stopAccelerometer.Option): Promise
/**
* 监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 `Taro.stopAccelerometer` 停止监听。
- * @supported weapp, alipay, swan, jd, qq, tt, h5, rn
+ * @supported weapp, alipay, swan, jd, qq, tt, h5, rn, harmony
* @example
* ```tsx
* Taro.onAccelerometerChange(res => {
@@ -91,7 +91,7 @@ declare module '../../index' {
/**
* 取消监听加速度数据事件,参数为空,则取消所有的事件监听。
- * @supported weapp, alipay, swan, jd, tt, h5, rn
+ * @supported weapp, alipay, swan, jd, tt, h5, rn, harmony
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.offAccelerometerChange.html
*/
offAccelerometerChange(
diff --git a/packages/taro/types/api/device/battery.d.ts b/packages/taro/types/api/device/battery.d.ts
index 58baf1180378..516bd4695435 100644
--- a/packages/taro/types/api/device/battery.d.ts
+++ b/packages/taro/types/api/device/battery.d.ts
@@ -32,13 +32,13 @@ declare module '../../index' {
interface TaroStatic {
/** Taro.getBatteryInfo 的同步版本
- * @supported weapp, alipay, swan, jd, qq
+ * @supported weapp, alipay, swan, jd, qq, harmony
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/battery/wx.getBatteryInfoSync.html
*/
getBatteryInfoSync(): getBatteryInfoSync.Result
/** 获取设备电量。同步 API Taro.getBatteryInfoSync 在 iOS 上不可用。
- * @supported weapp, alipay, swan, jd, qq, h5, harmony_hybrid
+ * @supported weapp, alipay, swan, jd, qq, h5, harmony, harmony_hybrid
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/battery/wx.getBatteryInfo.html
*/
getBatteryInfo(option?: getBatteryInfo.Option): Promise