import superagent = require('superagent'); import { ObjectLiteral } from 'typeorm'; /** * Make `SuperTest` string-indexable. */ declare module 'supertest' { interface SuperTest extends superagent.SuperAgent, Record {} } /** * Prevent `repository.delete({})` (non-criteria) from triggering the type error * `Expression produces a union type that is too complex to represent.ts(2590)` */ declare module 'typeorm' { interface Repository { delete(criteria: {}): Promise; } }