does work:
/// @zod.import(["import { myFunction,myFunction2 } from 'mypackage'"])
/// @zod.import(["import { myFunction } from 'mypackage'", "import { myFunction } from 'mypackage'"])
does not work:
/// @zod.import(["import { myFunction, myFunction2 } from 'mypackage'"])
/// @zod.import(["import { myFunction } from 'mypackage'","import { myFunction } from 'mypackage'"])
This happens because your split definition at line 209 in packages/generator/src/classes/extendedDMMFModel.ts:
const importsList = importStatements.groups?.['imports']?.split(', ');
custom imports works depending on spaces
does work: /// @zod.import(["import { myFunction,myFunction2 } from 'mypackage'"]) /// @zod.import(["import { myFunction } from 'mypackage'", "import { myFunction } from 'mypackage'"])
does not work: /// @zod.import(["import { myFunction, myFunction2 } from 'mypackage'"]) /// @zod.import(["import { myFunction } from 'mypackage'","import { myFunction } from 'mypackage'"])
This happens because your split definition at line 209 in packages/generator/src/classes/extendedDMMFModel.ts: const importsList = importStatements.groups?.['imports']?.split(', ');