Skip to content

Commit

Permalink
refactor(types): sync components types
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Aug 9, 2023
1 parent 379ba79 commit 2d91f95
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/taro/types/compile/config/rn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { IOption, IPostcssOption } from './util'

export interface IRNConfig {
/** 设置 RN bundle 中注册应用的名称 */
appName: string
appName?: string

/** entry 利用模块查找规则{name}.{platform}.{ext}自动区分平台 */
entry?: string
Expand Down Expand Up @@ -53,4 +53,12 @@ export interface IRNConfig {

/** 将 svg 文件转换为组件引入。默认值 false,不开启 */
enableSvgTransform?: boolean

alias?: IOption

/** 设计稿尺寸 */
designWidth?: number | ((size?: string | number | Input) => number)

/** 设计稿尺寸换算规则 */
deviceRatio?: TaroGeneral.TDeviceRatio
}

0 comments on commit 2d91f95

Please sign in to comment.