@churchapps/helpers
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
13 lines • 585 B
TypeScript
import { ErrorLogInterface, ErrorAppDataInterface } from "./interfaces/Error.js";
export declare class ErrorHelper {
static getAppData: () => {
churchId: string;
userId: string;
originUrl: string;
application: string;
};
static customErrorHandler: (errorLog: ErrorLogInterface) => void;
static init: (getAppData: () => ErrorAppDataInterface, customErrorHandler: (errorLog: ErrorLogInterface) => void) => void;
static logError: (errorType: string, message: string, details: string) => void;
}
//# sourceMappingURL=ErrorHelper.d.ts.map