1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

JS: Add die() typedoc (#3985)

* JS: Add die() to typedocs

* JS: Never type for die()

---------

Co-authored-by: Anna Antonenko <portasynthinca3@gmail.com>
This commit is contained in:
WillyJL
2024-11-05 11:41:03 +00:00
committed by GitHub
parent c741727b96
commit b86b9b87b8

View File

@@ -202,6 +202,13 @@ declare function chr(n: number): string | null;
*/
declare function require(module: string): any;
/**
* @brief Exit JavaScript with given message
* @param message The error message to show to user
* @version Added in JS SDK 0.1
*/
declare function die(message: string): never;
/**
* @brief mJS Foreign Pointer type
*