mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
[FL-3918] Full-fledged JS SDK + npm packages (#3963)
* feat: js sdk * refactor: move js back where it belongs * docs: generate docs using typedoc * feat: sdk versioning scheme * ci: silence pvs warning * docs: bring back old incomplete js docs * style: readAnalog naming * fix: rename script compatibility screens Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
31
applications/system/js_app/packages/fz-sdk/notification/index.d.ts
vendored
Normal file
31
applications/system/js_app/packages/fz-sdk/notification/index.d.ts
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
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;
|
||||
Reference in New Issue
Block a user