From 1a2dae9718331df200f0d6bb6440336877108a7d Mon Sep 17 00:00:00 2001 From: yqhan Date: Wed, 30 Nov 2022 16:30:51 +0800 Subject: [PATCH] fixed 24983d6 from https://gitee.com/hyq5234/interface_sdk-js/pulls/3643 Add attributes to worker the lack of annotation issue: https://gitee.com/openharmony/interface_sdk-js/issues/I63XWU Signed-off-by: yqhan --- api/@ohos.worker.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/@ohos.worker.d.ts b/api/@ohos.worker.d.ts index 40570f2fd2..f3a00cc459 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 -- Gitee