n8n/packages/cli/test/integration/shared/augmentation.d.ts
कारतोफ्फेलस्क्रिप्ट™ 0a5ab560b1
refactor: Upgrade typeorm to 0.3.x (#5151)
2023-01-13 18:12:22 +01:00

22 lines
588 B
TypeScript

import superagent = require('superagent');
import type { ObjectLiteral } from 'typeorm';
/**
* Make `SuperTest<T>` string-indexable.
*/
declare module 'supertest' {
interface SuperTest<T extends superagent.SuperAgentRequest>
extends superagent.SuperAgent<T>,
Record<string, any> {}
}
/**
* 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<Entity extends ObjectLiteral> {
delete(criteria: {}): Promise<void>;
}
}