Skip to content

Commit

Permalink
JS: Add die() typedoc (#3985)
Browse files Browse the repository at this point in the history
* JS: Add die() to typedocs

* JS: Never type for die()

---------

Co-authored-by: Anna Antonenko <[email protected]>
  • Loading branch information
Willy-JL and portasynthinca3 authored Nov 5, 2024
1 parent c741727 commit b86b9b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions applications/system/js_app/packages/fz-sdk/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit b86b9b8

Please sign in to comment.