diff --git a/frameworks/ets/taihe/idl/ohos.vibrator.taihe b/frameworks/ets/taihe/idl/ohos.vibrator.taihe index bf4e15ca7a20b02640b9644b620e36c49960e7da..ebc91895bbd1cbf77614a9949e3fd24fa77d4ece 100644 --- a/frameworks/ets/taihe/idl/ohos.vibrator.taihe +++ b/frameworks/ets/taihe/idl/ohos.vibrator.taihe @@ -53,20 +53,20 @@ struct VibratePreset { /** * The number of vibration repetitions. * - * @type { Optional } + * @type { Optional } * @syscap SystemCapability.Sensors.MiscDevice * @since 12 */ - count: Optional; + count: Optional; /** * The intensity of vibration effect. * - * @type { Optional } + * @type { Optional } * @syscap SystemCapability.Sensors.MiscDevice * @since 12 */ - intensity: Optional; + intensity: Optional; } /** @@ -110,12 +110,12 @@ struct VibrateTime { /** * The duration of the vibration, in ms. * - * @type { f64 } + * @type { i32 } * @syscap SystemCapability.Sensors.MiscDevice * @atomicservice * @since 11 */ - duration: f64; /** The duration of the vibration, in ms */ + duration: i32; /** The duration of the vibration, in ms */ } /** @@ -165,12 +165,12 @@ struct VibrateAttribute { /** * Vibrator id, default is 0. * - * @type { Optional } + * @type { Optional } * @syscap SystemCapability.Sensors.MiscDevice * @atomicservice * @since 11 */ - id: Optional; + id: Optional; /** * The use of vibration.