UNPKG

231 BTypeScriptView Raw
1/**
2 * If `condition` is true it throws error with `msg` in dev and `console.error`s `msg` otherwise
3 * @param condition
4 * @param msg
5 */
6export default function throwErrorInDev(condition: boolean, msg: string, info?: any): void;