Report hasn't been filed before.
What version of drizzle-orm are you using?
0.40.0
What version of drizzle-kit are you using?
0.30.5
Other packages
node@23
Describe the Bug
Hello. I stumbled upon a small issue when using nodejs >= 23.
What is the undesired behavior?
When running drizzle-kit pull, the schema file contains an AnySQLiteColumn import for a type, but this import is not prefixed by the type keyword. Since nodejs does a "dumb" type stripping, it doesn't strip AnySQLiteColumn and throws a runtime error because there is no JS AnySQLiteColumn export.
What are the steps to reproduce it?
Run AnySQLiteColumn with any DB and try to use the schema. At runtime it throws something like this:

What is the desired result?
The AnySQLiteColumn import should be prefixed by type.
This is what is curenly output:
import {
sqliteTable,
AnySQLiteColumn,
integer,
text,
foreignKey,
} from "drizzle-orm/sqlite-core";
This is the desired output:
import {
sqliteTable,
type AnySQLiteColumn,
integer,
text,
foreignKey,
} from "drizzle-orm/sqlite-core";
Not urgent ;)
This is more of an "upcoming" issue as people will likely rely more and more on the "type striping" feature of node in the upcoming years.
Report hasn't been filed before.
What version of
drizzle-ormare you using?0.40.0
What version of
drizzle-kitare you using?0.30.5
Other packages
node@23
Describe the Bug
Hello. I stumbled upon a small issue when using nodejs >= 23.
What is the undesired behavior?
When running
drizzle-kit pull, the schema file contains anAnySQLiteColumnimport for a type, but this import is not prefixed by thetypekeyword. Since nodejs does a "dumb" type stripping, it doesn't stripAnySQLiteColumnand throws a runtime error because there is no JSAnySQLiteColumnexport.What are the steps to reproduce it?
Run
AnySQLiteColumnwith any DB and try to use the schema. At runtime it throws something like this:What is the desired result?
The
AnySQLiteColumnimport should be prefixed bytype.This is what is curenly output:
This is the desired output:
Not urgent ;)
This is more of an "upcoming" issue as people will likely rely more and more on the "type striping" feature of node in the upcoming years.