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.
When I have soft delete enabled models with typescript, I have to do this:
to be able to call
includeDeletedon 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.