mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-14 06:52:38 +00: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:
parent
c741727b96
commit
b86b9b87b8
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue