diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 2df661d48ba1e3226bc3ad5923398883de209a29..73774f2dd4d75a1c99d806996d594db821863233 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