UNPKG

@sirenapp/js-sdk

Version:

JavaScript middleware designed to streamline interaction for managing and displaying in-app notifications seamlessly

17 lines (16 loc) 420 B
import { SirenErrorTypes } from './constants/generic'; declare class SirenError extends Error { code: string; errorObject: { Type: string; Code: string; Message: string; }; constructor(type: keyof typeof SirenErrorTypes, message: string, code: string); getError: () => { Type: string; Code: string; Message: string; }; } export default SirenError;