mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
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:
parent
4c66edbf84
commit
24983d6b79
13
api/@ohos.worker.d.ts
vendored
13
api/@ohos.worker.d.ts
vendored
@ -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;
|
Loading…
Reference in New Issue
Block a user