From cd7302f38f62168c12388356c155d52cfb983109 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Wed, 6 Jul 2022 06:46:20 +0930 Subject: [PATCH] fix: return type of CrashCallback --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2a3dee7..b005753 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,9 @@ export type SIGNAL = "SIGSEGV" | string; -export type CrashCallback = (signal: SIGNAL, address: string, stack: string[]) => any; +export type CrashCallback = (signal: SIGNAL, address: string, stack: string[]) => void; export function registerHandler(): void; export function registerHandler(file: string): void; export function registerHandler(file: string, callback: CrashCallback): void; -export function causeSegfault(): void; \ No newline at end of file +export function causeSegfault(): void;