UNPKG

typeorm-linq-repository

Version:

Wraps TypeORM repository pattern and QueryBuilder using fluent, LINQ-style queries.

10 lines (9 loc) 314 B
import { SelectQueryBuilder } from "typeorm"; import { EntityBase } from "../../types/EntityBase"; /** * Represents a part of a TypeORM SelectQueryBuilder of type T. */ export interface IQueryBuilderPart<T extends EntityBase> { queryParams: any[]; queryAction(...params: any[]): SelectQueryBuilder<T>; }