{"version":3,"file":"common.mjs","sourceRoot":"","sources":["../../src/utils/common.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,UAAkB,EAAU,EAAE;IACpE,IAAI,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACrC,OAAO,UAAU,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACrD,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC","sourcesContent":["/**\n * Function to stripe array brackets if string defining the type has it.\n *\n * @param typeString - String defining type from which array brackets are required to be removed.\n * @returns Parameter string with array brackets [] removed.\n */\nexport const stripArrayTypeIfPresent = (typeString: string): string => {\n  if (typeString?.match(/\\S\\[\\d*\\]$/u)) {\n    return typeString.replace(/\\[\\d*\\]$/gu, '').trim();\n  }\n  return typeString;\n};\n"]}