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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
*