openharmony 鸿蒙 changelog-resourceschedule

2023-06-24 浏览 (697)

Resource Scheduler Subsystem Changelog

cl.resourceschedule.workScheduler

The data type of the parameters attribute value is changed. Specifically, the number, string, and boolean types are supported, but the any type is not.

Change Impact

For applications developed based on OpenHarmony3.2.10.7 and later SDK versions, the parameters attribute value can use the number, string, and boolean types only. If it uses the any type, a compilation error is reported.

Key API/Component Changes

The parameters attribute in @ohos.resourceschedule.workScheduler.d.ts is changed.

ClassAPI TypeStatement Before the ChangeStatement After the Change
workScheduler.WorkInfofieldparameters?: {[key: string]: any}parameters?: {[key: string]: number

Adaptation Guide

The parameters attribute uses the {[key: string]: number|string|boolean} data type.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Telephony Subsystem Changelog

harmony 鸿蒙Web Subsystem Changelog

harmony 鸿蒙Ability Framework Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Bundle Manager Subsystem Changelog

harmony 鸿蒙Util Subsystem Changelog

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/967c6bc5059a4b149ddb081a1f52d4c5