1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 05:06:30 +04:00
Files
unleashed-firmware/applications/system/js_app/packages/fz-sdk/notification/index.d.ts
WillyJL 69aa4cd254 JS: Fix merge of 3963 and 3961 (#3980)
* toString() was moved, not duplicated
* These had gotten lost
* This is now implemented
* Add missing version doctags
2024-11-01 13:52:54 +09:00

33 lines
873 B
TypeScript

/**
* Module for using the color LED and vibration motor
* @version Added in JS SDK 0.1
* @module
*/
/**
* @brief Signals success to the user via the color LED, speaker and vibration
* motor
* @version Added in JS SDK 0.1
*/
export declare function success(): void;
/**
* @brief Signals failure to the user via the color LED, speaker and vibration
* motor
* @version Added in JS SDK 0.1
*/
export declare function error(): void;
/**
* @version Added in JS SDK 0.1
*/
export type Color = "red" | "green" | "blue" | "yellow" | "cyan" | "magenta";
/**
* @brief Displays a basic color on the color LED
* @param color The color to display, see `Color`
* @param duration The duration, either `"short"` (10ms) or `"long"` (100ms)
* @version Added in JS SDK 0.1
*/
export declare function blink(color: Color, duration: "short" | "long"): void;