diff --git a/api/application/DriverExtensionContext.d.ts b/api/application/DriverExtensionContext.d.ts index 6a87f00f86f6edd33cbbc860c39e688e07c8f4d7..6328904b7e7122757b5a770a94a076e533b3a0c9 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;