提交 7b051c4c 编写于 作者: fxy060608's avatar fxy060608

chore: bump typescript from 5.0.2 to 5.0.3

上级 673f0b9c
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
"simple-git-hooks": "^2.8.0", "simple-git-hooks": "^2.8.0",
"terser": "^5.4.0", "terser": "^5.4.0",
"ts-jest": "^29.0.3", "ts-jest": "^29.0.3",
"typescript": "^5.0.2", "typescript": "^5.0.3",
"vite": "4.2.1", "vite": "4.2.1",
"vue": "3.2.47", "vue": "3.2.47",
"vue-router": "^4.1.6", "vue-router": "^4.1.6",
......
...@@ -124,7 +124,7 @@ function invokeWxsMethod( ...@@ -124,7 +124,7 @@ function invokeWxsMethod(
formatLog('wxs', 'module ' + moduleName + ' not found') formatLog('wxs', 'module ' + moduleName + ' not found')
) )
} }
const method = module[methodName] const method = (module as Record<string, any>)[methodName]
if (!isFunction(method)) { if (!isFunction(method)) {
return console.error(moduleName + '.' + methodName + ' is not a function') return console.error(moduleName + '.' + methodName + ' is not a function')
} }
......
export interface ComponentJson { export interface ComponentJson {
component: true component: true
usingComponents?: UsingComponents usingComponents?: UsingComponents
usingSwanComponents?: UsingComponents // 百度小程序特有
// mp-alipay // mp-alipay
styleIsolation?: 'apply-shared' | 'shared' styleIsolation?: 'apply-shared' | 'shared'
} }
......
...@@ -45,7 +45,7 @@ function resolveJsonObj( ...@@ -45,7 +45,7 @@ function resolveJsonObj(
) { ) {
return filterJsonObj return filterJsonObj
} }
const value = jsonObj[names[0]] const value = (jsonObj as Record<string, any>)[names[0]]
if (_isI18nStr(value)) { if (_isI18nStr(value)) {
return jsonObj return jsonObj
} }
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册