diff --git a/api/@ohos.worker.d.ts b/api/@ohos.worker.d.ts index 40570f2fd26991c2b886bc56937a45850958cb46..f3a00cc45949339b0f57ea5bf585fbd81271fe4f 100644 --- a/api/@ohos.worker.d.ts +++ b/api/@ohos.worker.d.ts @@ -779,8 +779,21 @@ declare namespace worker { */ terminate(): void; } + + /** + * The object used by the worker thread to communicate with the host thread. + * @since 7 + * @deprecated since 9 + * @useinstead ohos.worker.workerPort + * @syscap SystemCapability.Utils.Lang + */ const parentPort: DedicatedWorkerGlobalScope; + /** + * The object used by the worker thread to communicate with the host thread. + * @since 9 + * @syscap SystemCapability.Utils.Lang + */ const workerPort: ThreadWorkerGlobalScope; } export default worker; \ No newline at end of file