From 2d91f95e0314b77d4b9367bf88895255853cd2dd Mon Sep 17 00:00:00 2001 From: ZakaryCode Date: Wed, 9 Aug 2023 02:25:23 +0000 Subject: [PATCH] refactor(types): sync components types --- packages/taro/types/compile/config/rn.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/taro/types/compile/config/rn.d.ts b/packages/taro/types/compile/config/rn.d.ts index afec982590cd..221a8660976c 100644 --- a/packages/taro/types/compile/config/rn.d.ts +++ b/packages/taro/types/compile/config/rn.d.ts @@ -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 @@ -53,4 +53,12 @@ export interface IRNConfig { /** 将 svg 文件转换为组件引入。默认值 false,不开启 */ enableSvgTransform?: boolean + + alias?: IOption + + /** 设计稿尺寸 */ + designWidth?: number | ((size?: string | number | Input) => number) + + /** 设计稿尺寸换算规则 */ + deviceRatio?: TaroGeneral.TDeviceRatio }