Skip to content

add a TS typings for query builder #6

@capaj

Description

@capaj

When I have soft delete enabled models with typescript, I have to do this:

type SoftDeleteQueryBuilder = QueryBuilder<PathwayModelAsEditor> & {
  includeDeleted: () => void
}

to be able to call includeDeleted on the query builder.

It would be nice if this package had it's own typings for query builder so we wouldn't have to extend the objection one inline in our own models.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions