mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
[FL-3925, FL-3942, FL-3944] JS features & bugfixes (SDK 0.2) (#4075)
* feat: JS GPIO PWM, JS GUI Widget view; fix: JS EvtLoop stop on request, JS EvtLoop stop on error * fix: f18 build * docs: widget * fix: js unit test * change feature naming Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
11
applications/system/js_app/packages/fz-sdk/gui/icon.d.ts
vendored
Normal file
11
applications/system/js_app/packages/fz-sdk/gui/icon.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export type BuiltinIcon = "DolphinWait_59x54" | "js_script_10px";
|
||||
|
||||
export type IconData = symbol & { "__tag__": "icon" };
|
||||
// introducing a nominal type in a hacky way; the `__tag__` property doesn't really exist.
|
||||
|
||||
/**
|
||||
* Gets a built-in firmware icon for use in GUI
|
||||
* @param icon Name of the icon
|
||||
* @version Added in JS SDK 0.2, extra feature `"gui-widget"`
|
||||
*/
|
||||
export declare function getBuiltin(icon: BuiltinIcon): IconData;
|
||||
Reference in New Issue
Block a user