diff --git a/.changeset/tasty-lizards-boil.md b/.changeset/tasty-lizards-boil.md new file mode 100644 index 0000000000..b240579f46 --- /dev/null +++ b/.changeset/tasty-lizards-boil.md @@ -0,0 +1,5 @@ +--- +"@electric-sql/prisma-generator": patch +--- + +Import types using import type in generated Electric client. diff --git a/generator/src/functions/writeSingleFileImportStatements.ts b/generator/src/functions/writeSingleFileImportStatements.ts index fb054681ac..4b8a45893c 100644 --- a/generator/src/functions/writeSingleFileImportStatements.ts +++ b/generator/src/functions/writeSingleFileImportStatements.ts @@ -19,7 +19,7 @@ export const writeSingleFileImportStatements: WriteStatements = ( } writeImport( - `{ TableSchema, DbSchema, Relation, ElectricClient, HKT }`, + `{ type TableSchema, DbSchema, Relation, ElectricClient, type HKT }`, 'electric-sql/client/model' )