diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index be30e315133bd4760c08852e7407899d7632c66e..d57d5d584337035b5b747c5bc2a8d010495b6ded 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 25a5638add5f88f66fc6f9898409566c8284a626..4211bcd01a9a59f1c19136194d95c5ff3b73b800 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; } /**