solid-ui
Version:
UI library for Solid applications
14 lines • 739 B
TypeScript
/**
* Create an error message block
* @param dom The DOM on which dom.createElement will be called
* @param err The error message string to display (or an error object)
* @param backgroundColor Background color. Default: '#fee'
* @param err2 Is the second param is a string, you can put the original Error in here
* @returns A div element with the err string
*
* This will return a DOM element you can put in the UI as a notice for the user
* Meanwhile the stack is dumped to the console for the developer, so you actually know
* where it happened!
*/
export declare function errorMessageBlock(dom: HTMLDocument, err: string | Error, backgroundColor?: string, err2?: Error): HTMLDivElement;
//# sourceMappingURL=error.d.ts.map