import { getConnection , SelectQueryBuilder , ObjectType } from 'typeorm' ; export function createQueryBuilder < T > ( entity , alias ) { return getConnection ( ) . getRepository ( entity ) . createQueryBuilder ( alias ) ; }