Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] typescript template #131

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

neko1990
Copy link
Contributor

修几个ts模板和语法的问题:

  1. commit 88c09b 引入两个 + 模板报错:
ret 'for (let _e of ' + 'this.' + + fieldName + ') { _e?.resolve(tables); }'

|ERROR|===> "One or more errors occurred. (<input>(44,49) : error : Unexpected value `keys / Type: string`. Cannot negate(-)/positive(+) a non-numeric value)"
|ERROR|===> "<input>(44,49) : error : Unexpected value `keys / Type: string`. Cannot negate(-)/positive(+) a non-numeric value"
|ERROR|run failed!!!
  1. 最初这段末尾少一个 + 模板报错 commit 3d1fae
ret 'foreach (var [_, _e] of ' + fieldName ') { _e?.resolve(tables); }'

|ERROR|===> "One or more errors occurred. (<input>(46,52) : error : Invalid target function `multiRows4` (string))"
|ERROR|===> "<input>(46,52) : error : Invalid target function `multiRows4` (string)"
|ERROR|run failed!!!
  1. typescript 没有 foreach 关键字,对 map 的迭代也用 for
  2. 用 let 替换 var,减小scope

@pirunxi pirunxi merged commit 7f8e076 into focus-creative-games:main Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants