diff --git a/native/crash_handler/.gitignore b/native/crash_handler/.gitignore index b8a35d2..dbb958a 100644 --- a/native/crash_handler/.gitignore +++ b/native/crash_handler/.gitignore @@ -1,2 +1,3 @@ .idea/ cmake-build-* +!exports/*.d.ts \ No newline at end of file diff --git a/native/crash_handler/exports/exports.d.ts b/native/crash_handler/exports/exports.d.ts new file mode 100644 index 0000000..7595a43 --- /dev/null +++ b/native/crash_handler/exports/exports.d.ts @@ -0,0 +1,12 @@ +declare module "teaclient_crash_handler" { + export function setup_crash_handler( + component_name: string, + crash_dump_folder: string, + success_command_line: string, /* %crash_path% for crash dump path */ + error_command_line: string /* %error_message% for the error message */ + ); + export function finalize(); + export function crash_handler_active() : boolean; + + export function crash(); +} \ No newline at end of file