Skip to content

Missing type for option 'nulls' in OrderBy #2332

@gabonessi

Description

@gabonessi

I am using objection 3.0.0

I want to use OrderBy which now it has 3 arguments as specified in the Knex doc

The type OrderByDescriptor is missing the option nulls

Objection index.d.ts

interface OrderByDescriptor {
    column: ColumnRef;
    order?: OrderByDirection;
  }

  type ColumnRefOrOrderByDescriptor = ColumnRef | OrderByDescriptor;

  interface OrderByMethod<QB extends AnyQueryBuilder> {
    (column: ColumnRef, order?: OrderByDirection): QB;
    (columns: ColumnRefOrOrderByDescriptor[]): QB;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions