{"version":3,"file":"check.cjs","sources":["../../../src/utils/check.ts"],"sourcesContent":["import { SNSError } from \"../errors\";\r\n\r\n/**\r\n * Internal assertion helper that throws the provided error when a condition is false.\r\n *\r\n * @template T Type of error to throw\r\n * @param bool Boolean condition to check\r\n * @param error Error to throw when the condition is false\r\n * @throws The provided error if the condition is false.\r\n */\r\n/** Implementation helper that throws `error` when a validation condition fails. */\r\nexport const _check = <T extends SNSError>(bool: boolean, error: T) => {\r\n  if (!bool) {\r\n    throw error;\r\n  }\r\n};\r\n"],"names":[],"mappings":";;;;AAEA;;;;;;;AAOG;AACH;MACa,MAAM,GAAG,CAAqB,IAAa,EAAE,KAAQ,KAAI;IACpE,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,MAAM,KAAK;;AAEf;;;;"}