Doc: update vibrate doc type to reflect new type

- Updated the `vibrate` type in the docs to Vec<u16>.
This commit is contained in:
Hector Candelaria 2024-08-23 00:01:25 -04:00
parent 2443c695e9
commit 5133c0308c

View file

@ -281,7 +281,7 @@ pub struct UseWebNotificationOptions {
#[builder(into)] #[builder(into)]
silent: Option<bool>, silent: Option<bool>,
/// A JsValue array specifying the vibration pattern in which the device is vibrating and not vibrating. /// A `Vec<u16>` value specifying the vibration pattern in which the device is vibrating and not vibrating.
#[builder(into)] #[builder(into)]
vibrate: Option<Vec<u16>>, vibrate: Option<Vec<u16>>,
@ -416,7 +416,7 @@ pub struct ShowOptions {
#[builder(into)] #[builder(into)]
silent: Option<bool>, silent: Option<bool>,
/// A JsValue array specifying the vibration pattern in which the device is vibrating and not vibrating. /// A `Vec<u16>` value specifying the vibration pattern in which the device is vibrating and not vibrating.
#[builder(into)] #[builder(into)]
vibrate: Option<Vec<u16>>, vibrate: Option<Vec<u16>>,
} }