{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/console.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,uBAGjB,CAAA;AACD,eAAO,MAAM,KAAK,uBAGjB,CAAA;AAGD,eAAO,MAAM,GAAG,uBAEf,CAAA;AAED,eAAO,MAAM,KAAK,YAKjB,CAAA","sourcesContent":["// only print the logs if it fails, or if TSHY_VERBOSE is set\n\nlet verbose = parseInt(process.env.TSHY_VERBOSE || '0')\n\nconst errors: any[][] = []\nexport const error = (...a: any[]) => {\n  if (verbose >= 1) console.error(...a)\n  else errors.push(a)\n}\nexport const debug = (...a: any[]) => {\n  if (verbose >= 2) console.error(...a)\n  else errors.push(a)\n}\n\n// we only print stdout on success anyway\nexport const log = (...a: any[]) => {\n  if (verbose >= 1) console.log(...a)\n}\n\nexport const print = () => {\n  for (const a of errors) {\n    console.error(...a)\n  }\n  errors.length = 0\n}\n"]}