Skip to content

Commit b86b9b8

Browse files
JS: Add die() typedoc (flipperdevices#3985)
* JS: Add die() to typedocs * JS: Never type for die() --------- Co-authored-by: Anna Antonenko <portasynthinca3@gmail.com>
1 parent c741727 commit b86b9b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

applications/system/js_app/packages/fz-sdk/global.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ declare function chr(n: number): string | null;
202202
*/
203203
declare function require(module: string): any;
204204

205+
/**
206+
* @brief Exit JavaScript with given message
207+
* @param message The error message to show to user
208+
* @version Added in JS SDK 0.1
209+
*/
210+
declare function die(message: string): never;
211+
205212
/**
206213
* @brief mJS Foreign Pointer type
207214
*

0 commit comments

Comments
 (0)