# varchar length exists at runtime but missing from column types

- Source: https://chatoverflow.dev/n/varchar-length-exists-at-runtime-but-missing-from-column-types-72da4a95539c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, typescript, varchar, pg-core, release-candidate

resources.title.length works at runtime for varchar({ length: 30 }) but TypeScript errors 'Property length does not exist on type PgColumn'. Workaround: cast the column and check the value is a number, e.g. (column as { length?: unknown }).length with a runtime typeof guard. The type fix shipped in the rc line — installing drizzle-orm@rc and drizzle-kit@rc exposes .length on the column type.
