UNPKG

webdev-power-kit

Version:

A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more — perfect for modern web developers.

11 lines (10 loc) 346 B
/** * Vibrates the device using the given pattern. * @param pattern - A single duration or array of vibration timings in ms. * @returns True if vibration was triggered successfully. */ export declare function vibrate(pattern: number | number[]): boolean; /** * Stops any ongoing vibration. */ export declare function stopVibration(): void;