From 47213530ffe67f0cbf7c7dc7305971a633896638 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 3 Jul 2019 15:19:42 +0200 Subject: [PATCH] Fixed crash handler exports --- native/crash_handler/.gitignore | 1 + native/crash_handler/exports/exports.d.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 native/crash_handler/exports/exports.d.ts 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