openharmony 鸿蒙 js-apidiff-compiler-and-runtime

2023-06-24 浏览 (582)
Change TypeOld VersionNew Versiond.ts File
AddedNAModule name: ohos.taskpool
Class name: taskpool
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Priority
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Priority
Method or attribute name: HIGH
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Priority
Method or attribute name: MEDIUM
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Priority
Method or attribute name: LOW
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Task
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Task
Method or attribute name: constructor(func: Function, ...args: unknown[]);
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Task
Method or attribute name: function: Function;
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: Task
Method or attribute name: arguments?: unknown[];
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: taskpool
Method or attribute name: function execute(func: Function, ...args: unknown[]): Promise;
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: taskpool
Method or attribute name: function execute(task: Task, priority?: Priority): Promise;
@ohos.taskpool.d.ts
AddedNAModule name: ohos.taskpool
Class name: taskpool
Method or attribute name: function cancel(task: Task): void;
@ohos.taskpool.d.ts
AddedNAClass name: URLParams
Method or attribute name: constructor(init?: string[][] |Record<string, string> |string |URLParams);
@ohos.url.d.ts
AddedNAClass name: URL
Method or attribute name: readonly params: URLParams;
@ohos.url.d.ts
Deprecated version changedClass name: URL
Method or attribute name: readonly searchParams: URLSearchParams;
Deprecated version: N/A
Class name: URL
Method or attribute name: readonly searchParams: URLSearchParams;
Deprecated version: 9
Substitute API: ohos.url.URL.params
@ohos.url.d.ts
Deprecated version changedClass name: worker
Method or attribute name: const parentPort: DedicatedWorkerGlobalScope;
Deprecated version: N/A
Class name: worker
Method or attribute name: const parentPort: DedicatedWorkerGlobalScope;
Deprecated version: 9
Substitute API: ohos.worker.workerPort
@ohos.worker.d.ts
Initial version changedClass name: URL
Method or attribute name: static parseURL(url: string, base?: string |URL): URL;
Initial version: N/A
Class name: URL
Method or attribute name: static parseURL(url: string, base?: string |URL): URL;
Initial version: 9
@ohos.url.d.ts
Initial version changedClass name: worker
Method or attribute name: const parentPort: DedicatedWorkerGlobalScope;
Initial version: N/A
Class name: worker
Method or attribute name: const parentPort: DedicatedWorkerGlobalScope;
Initial version: 7
@ohos.worker.d.ts
Initial version changedClass name: worker
Method or attribute name: const workerPort: ThreadWorkerGlobalScope;
Initial version: N/A
Class name: worker
Method or attribute name: const workerPort: ThreadWorkerGlobalScope;
Initial version: 9
@ohos.worker.d.ts
Function changedClass name: DedicatedWorkerGlobalScope
Method or attribute name: onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
Class name: DedicatedWorkerGlobalScope
Method or attribute name: onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
@ohos.worker.d.ts
Function changedClass name: DedicatedWorkerGlobalScope
Method or attribute name: onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
Class name: DedicatedWorkerGlobalScope
Method or attribute name: onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
@ohos.worker.d.ts
Function changedClass name: Worker
Method or attribute name: onmessage?: (event: MessageEvent) => void;
Class name: Worker
Method or attribute name: onmessage?: (event: MessageEvent) => void;
@ohos.worker.d.ts
Function changedClass name: Worker
Method or attribute name: onmessageerror?: (event: MessageEvent) => void;
Class name: Worker
Method or attribute name: onmessageerror?: (event: MessageEvent) => void;
@ohos.worker.d.ts

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API Differences

harmony 鸿蒙js-apidiff-ability

harmony 鸿蒙js-apidiff-account

harmony 鸿蒙js-apidiff-application

harmony 鸿蒙js-apidiff-arkui

harmony 鸿蒙js-apidiff-battery

harmony 鸿蒙js-apidiff-bundle

harmony 鸿蒙js-apidiff-communication

harmony 鸿蒙js-apidiff-distributed-data

harmony 鸿蒙js-apidiff-file-management

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