Migrate a TypeScript module to ArkTS without fighting the compiler
Когда использовать: You pasted TS into an ArkTS file and the compiler erupted.
Поток
-
Paste the errorsUse skill-arkts-syntax-assistant — here's the TS file and the ArkTS compile errors. What's incompatible?✓ Скопировано→ Errors explained with ArkTS's stricter rules, not generic TS advice
-
Get a compliant rewriteRewrite the file to be ArkTS-valid while preserving behavior.✓ Скопировано→ Rewrite with typed declarations and no dynamic object mutations
Итог: A clean ArkTS port with a note on why each change was needed.
Подводные камни
- Dynamic property access patterns are everywhere in the original — Skill will refactor to typed interfaces — accept the added verbosity