From 27e77bf03056f5eb7853e270c40f68f545c9099d Mon Sep 17 00:00:00 2001 From: xiapan Date: Fri, 30 May 2025 11:00:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:arkts1.2=20taihe=E9=80=82=E9=85=8Dapplicat?= =?UTF-8?q?ion/DriverExtensionContext.d.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xiapan --- api/application/DriverExtensionContext.d.ts | 23 ++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/api/application/DriverExtensionContext.d.ts b/api/application/DriverExtensionContext.d.ts index 6a87f00f86..6328904b7e 100644 --- a/api/application/DriverExtensionContext.d.ts +++ b/api/application/DriverExtensionContext.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"), * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -27,16 +27,25 @@ import ExtensionContext from './ExtensionContext'; * @extends ExtensionContext * @syscap SystemCapability.Driver.ExternalDevice * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ -export default class DriverExtensionContext extends ExtensionContext { - - +declare class DriverExtensionContext extends ExtensionContext { /** * update the state of driver extension. * @syscap SystemCapability.Driver.ExternalDevice * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ updateDriverState(): void; -} \ No newline at end of file +} +/** + * Define a DriverExtensionContext. + * + * @typedef { DriverExtensionContext } + * @syscap SystemCapability.Driver.ExternalDevice + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 + */ +export default DriverExtensionContext; -- Gitee