Skip to content

Commit

Permalink
refactor(types): sync components types (#15270)
Browse files Browse the repository at this point in the history
* refactor(types): sync components types

* chore: refactor components types

* chore: refactor components types

---------

Co-authored-by: ZakaryCode <ZakaryCode@users.noreply.github.com>
Co-authored-by: chenjiajian <798095202@qq.com>
  • Loading branch information
3 people authored Mar 13, 2024
1 parent 25a55a3 commit d92303e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/taro/types/compile/config/h5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export interface IH5Config {
/** 配置需要额外的经由 Taro 预设的 postcss 编译的模块 */
esnextModules?: string[]

/** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/next/h5#react-兼容性组件库)。(默认值:false) */
/** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/h5#react-兼容性组件库)。(默认值:false) */
useHtmlComponents?: boolean

/** 用于控制在 H5 端是否使用旧版本适配器,旧版本采用全局注册组件,懒加载组件相关依赖;新版本适配器会自动注册相关组件,不再需要引入 @tarojs/components/loader 中的全局 defineCustomElements 方法。(默认值:false) */
Expand Down
2 changes: 1 addition & 1 deletion packages/taro/types/compile/config/rn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IRNConfig {
/** [less](https://lesscss.org/usage/#less-options) 相关配置 */
less?: IOption

/** [stylus](https://github.com/NervJS/taro/blob/next/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */
/** [stylus](https://github.com/NervJS/taro/blob/main/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */
stylus?: IOption

/** 配置 postcss 相关插件 */
Expand Down

0 comments on commit d92303e

Please sign in to comment.