鸿蒙OS应用开发之——api升级到10问题及解决办法
一 问题概述
- 'params' is possibly 'undefined'. <ArkTSCheck>
- Not all code paths return a value. <ArkTSCheck>
- Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)
- Argument of type 'Tag[]' is not assignable to parameter of type 'string'.
- Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)
- Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals) <ArkTSCheck>
- Type 'null' is not assignable to type 'UserData'. <ArkTSCheck>
- try catch报错
- 传值null问题
- Property 'searchEvent' has no initializer and is not definitely assigned in the constructor