From 90fa89c3ee5edf92d17c04889d58d4466f7bc62c Mon Sep 17 00:00:00 2001 From: ShiJie Date: Tue, 4 Jan 2022 19:14:19 +0800 Subject: [PATCH] =?UTF-8?q?runninglock.d.ts=E8=AF=AD=E6=B3=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ShiJie Change-Id: I858bb8d186da80a7ba0cf426eca03d770dbbc277 --- interfaces/kits/js/@ohos.runninglock.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/js/@ohos.runninglock.d.ts b/interfaces/kits/js/@ohos.runninglock.d.ts index 808ea5f1..b8cddbea 100644 --- a/interfaces/kits/js/@ohos.runninglock.d.ts +++ b/interfaces/kits/js/@ohos.runninglock.d.ts @@ -37,7 +37,7 @@ declare namespace runningLock { * released and the system hibernates if no other {@link RunningLock} is set. * @since 7 */ - function lock(timeout: number): void; + lock(timeout: number): void; /** * Checks whether a lock is held or in use. @@ -45,14 +45,14 @@ declare namespace runningLock { * @return Returns true if the lock is held or in use; returns false if the lock has been released. * @since 7 */ - function isUsed(): boolean; + isUsed(): boolean; /** * Release the {@link RunningLock} that prevents the system from hibernating. * * @since 7 */ - function unlock(): void; + unlock(): void; } /** -- Gitee