Object literal must correspond t

2024-08-12  本文已影响0人  冰点雨
 let param:object = {
      'key1':value1,
      'key2': value2
    }

上面代码报错:
Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)

修改后:

    let param:object = Object({
    'key1':value1,
      'key2': value2
    })
上一篇下一篇

猜你喜欢

热点阅读