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:
41
applications/system/js_app/packages/fz-sdk/flipper/index.d.ts
vendored
Normal file
41
applications/system/js_app/packages/fz-sdk/flipper/index.d.ts
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Module for querying device properties
|
||||
* @version Added in JS SDK 0.1
|
||||
* @module
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Returns the device model
|
||||
* @version Added in JS SDK 0.1
|
||||
*/
|
||||
export declare function getModel(): string;
|
||||
|
||||
/**
|
||||
* @brief Returns the name of the virtual dolphin
|
||||
* @version Added in JS SDK 0.1
|
||||
*/
|
||||
export declare function getName(): string;
|
||||
|
||||
/**
|
||||
* @brief Returns the battery charge percentage
|
||||
* @version Added in JS SDK 0.1
|
||||
*/
|
||||
export declare function getBatteryCharge(): number;
|
||||
|
||||
/**
|
||||
* @warning Do **NOT** use this to check the presence or absence of features. If
|
||||
* you do, I'm gonna be sad :( Instead, refer to `checkSdkFeatures` and
|
||||
* other similar mechanisms.
|
||||
* @note Original firmware reports `"flipperdevices"`.
|
||||
* @version Added in JS SDK 0.1
|
||||
*/
|
||||
export declare const firmwareVendor: string;
|
||||
|
||||
/**
|
||||
* @warning Do **NOT** use this to check the presence or absence of features. If
|
||||
* you do, I'm gonna be sad :( Instead, refer to
|
||||
* `checkSdkCompatibility` and other similar mechanisms.
|
||||
* @note You're looking at JS SDK 0.1
|
||||
* @version Added in JS SDK 0.1
|
||||
*/
|
||||
export declare const jsSdkVersion: [number, number];
|
||||
Reference in New Issue
Block a user