Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

NotNull

A type constant for marking a column as not null. Can be used with $narrowPartial.

Example:

const person = await db.selectFrom('person')
  .where('nullable_column', 'is not', null)
  .selectAll()
  .$narrowType<{ nullable_column: NotNull }>()
  .executeTakeFirstOrThrow()
type NotNull = {
readonly __notNull__: unique symbol;
}
;

§Type

§
{
readonly __notNull__: unique symbol;
}
[src]