mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user