kysely
    Preparing search index...

    Type Alias NotNull

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

    Example:

    import type { NotNull } from 'kysely'

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

    Properties

    Properties

    __notNull__: unique symbol