{"version":3,"file":"check.cjs","sources":["../../../src/utils/check.ts"],"sourcesContent":["import { SNSError } from \"../errors\";\r\n\r\n/**\r\n * Checks a boolean condition and throws a specified error if the condition is false.\r\n * This function is intended for internal use only.\r\n * @template T - The type of error to be thrown, extending SNSError.\r\n * @param {boolean} bool - The boolean condition to check.\r\n * @param {T} error - The error to be thrown if the condition is false.\r\n * @throws {T} Throws the specified error if the condition is false.\r\n */\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":["bool","error"],"mappings":"4BAUsB,CAAqBA,EAAeC,KACxD,IAAKD,EACH,MAAMC"}