Add attributes to worker the lack of annotation

issue: https://gitee.com/openharmony/interface_sdk-js/issues/I63XWU

Signed-off-by: yqhan <hanyuqing2@huawei.com>
This commit is contained in:
yqhan 2022-11-30 16:30:51 +08:00
parent 4c66edbf84
commit 24983d6b79

13
api/@ohos.worker.d.ts vendored
View File

@ -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;