Raw sql nullable types, sql<Type | undefined>

const result = await db.select({
  customField: sql<Type | null>`...`


This gets inferred to
SQL<any>


Is there a way to have a nullable type when using raw sql?
Was this page helpful?