Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS: Add die() typedoc #3985

Merged
merged 3 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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