UNPKG

pretty-easy-rgb-to-hex

Version:
11 lines (10 loc) 225 B
/** * @description * Returns a instance of an Error class * with a message from an input * * @export * @param {string} info * @returns {Error} */ export const returnError = (info: string): Error => new Error(info);