From 9b9254c9b09a58e39c845a1ac97a3602c683c273 Mon Sep 17 00:00:00 2001 From: h00514358 Date: Tue, 14 Dec 2021 12:09:23 +0000 Subject: [PATCH] Signed-off-by:hellohyh001 Signed-off-by: h00514358 --- api/@ohos.sensor.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 2df661d48b..73774f2dd4 100755 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -14,8 +14,6 @@ */ import { AsyncCallback } from './basic'; -export interface Response {} - /** * This module provides the capability to subscribe to sensor data. * @@ -451,6 +449,15 @@ declare namespace sensor { SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED = 281, /**< Uncalibrated acceleration sensor */ } + /** + * The basic data structure of the sensor event. + * @devices phone, tablet + * @sysCap SystemCapability.Sensors.Sensor + */ + interface Response { + timestamp: number; /**< The timestamp of the reported sensor data */ + } + /** * Acceleration sensor event data. * @devices phone, tablet -- Gitee