Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setLogFatalErrorCallback (fn: null | (errorMessage: string) => void): void {
if (fn == null) {
this._tdlib.td_set_log_fatal_error_callback(null)
} else {
this._tdlib.td_set_log_fatal_error_callback(
ffi.Callback('void', ['string'], fn))
}
}
}