From c1f1cd94657a75dac64b80c4846bdc5641d84b89 Mon Sep 17 00:00:00 2001 From: shenpeixing Date: Wed, 10 Sep 2025 16:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=9C=AA=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91=E7=9A=84arkts1.2=E6=94=B9?= =?UTF-8?q?=E9=80=A0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenpeixing --- api/@ohos.sensor.d.ts | 69 +++++++++++++++++------------------------ api/@ohos.vibrator.d.ts | 51 +++++++++++++----------------- 2 files changed, 50 insertions(+), 70 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index be30e31513..d57d5d5843 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -3708,72 +3708,64 @@ declare namespace sensor { * Indicates geomagnetic field data. * @typedef GeomagneticResponse * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ interface GeomagneticResponse { /** * Geomagnetic x-axis component. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - x: double; + x: number; /** * Geomagnetic y-axis component. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - y: double; + y: number; /** * Geomagnetic z-axis component. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - z: double; + z: number; /** * The Angle between the earth's magnetic field lines and the horizontal plane. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - geomagneticDip: double; + geomagneticDip: number; /** * The Angle of magnetic north and true north on a horizontal plane. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - deflectionAngle: double; + deflectionAngle: number; /** * The horizontal strength of the geomagnetic field. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - levelIntensity: double; + levelIntensity: number; /** * The total strength of the geomagnetic field. - * @type { double } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - totalIntensity: double; + totalIntensity: number; } /** @@ -4072,25 +4064,22 @@ declare namespace sensor { * Indicates the axis of the new coordinate system that coincides with the XY axis of the original coordinate system. * @typedef CoordinatesOptions * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ interface CoordinatesOptions { /** Indicates the axis of the new coordinate system that coincides with the X axis of the original coordinate system. - * @type { int } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - x: int; + x: number; /** Indicates the axis of the new coordinate system that coincides with the Y axis of the original coordinate system. - * @type { int } + * @type { number } * @syscap SystemCapability.Sensors.Sensor - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ - y: int; + y: number; } /** diff --git a/api/@ohos.vibrator.d.ts b/api/@ohos.vibrator.d.ts index 25a5638add..4211bcd01a 100644 --- a/api/@ohos.vibrator.d.ts +++ b/api/@ohos.vibrator.d.ts @@ -963,49 +963,44 @@ declare namespace vibrator { * * @interface ContinuousParam * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface ContinuousParam { /** * Intensity of vibration * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ - intensity?: int; + intensity?: number; /** * Frequency of vibration * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ - frequency?: int; + frequency?: number; /** * The points of vibration * * @type { ?VibratorCurvePoint[] } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ points?: VibratorCurvePoint[]; /** * Index of vibration * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ - index?: int; + index?: number; } /** @@ -1013,39 +1008,35 @@ declare namespace vibrator { * * @interface TransientParam * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface TransientParam { /** * Intensity of vibration * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ - intensity?: int; + intensity?: number; /** * Frequency of vibration * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ - frequency?: int; + frequency?: number; /** * Index of vibration * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Sensors.MiscDevice - * @since arkts {'1.1':'18', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ - index?: int; + index?: number; } /** -- Gitee