From 7d0a9d19d7f90434f6d426e14bf6ab3ff1a43add Mon Sep 17 00:00:00 2001 From: 15691852971 Date: Tue, 17 Aug 2021 09:33:22 +0000 Subject: [PATCH] huangshujie@huawei.com Signed-off-by: 15691852971 --- interfaces/kits/js/@ohos.brightness.d.ts | 5 ++-- interfaces/kits/js/basic.d.ts | 30 ------------------------ 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 interfaces/kits/js/basic.d.ts diff --git a/interfaces/kits/js/@ohos.brightness.d.ts b/interfaces/kits/js/@ohos.brightness.d.ts index 4784db5..204ef53 100644 --- a/interfaces/kits/js/@ohos.brightness.d.ts +++ b/interfaces/kits/js/@ohos.brightness.d.ts @@ -20,7 +20,7 @@ import { AsyncCallback } from './basic'; * * @SysCap SystemCapability.PowerMgr.DisplayManager * @devices phone, tablet - * @since 6 + * @since 7 */ declare namespace brightness { /** @@ -29,7 +29,8 @@ declare namespace brightness { * @param value Brightness value, ranging from 0 to 255. * @SysCap SystemCapability.PowerMgr.DisplayManager * @devices phone, tablet - * @since 6 + * @systemapi + * @since 7 */ function setValue(value: number): void; } diff --git a/interfaces/kits/js/basic.d.ts b/interfaces/kits/js/basic.d.ts deleted file mode 100644 index c556bc5..0000000 --- a/interfaces/kits/js/basic.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2021 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export interface Callback { - (data: T): void; -} - -export interface ErrorCallback { - (err: T): void; -} - -export interface AsyncCallback { - (err: BusinessError, data: T): void; -} - -export interface BusinessError extends Error { - code: number; -} \ No newline at end of file -- Gitee