Remove broken & useless typdef (#10085)

This commit is contained in:
Alexandre BODIN 2021-04-20 17:02:24 +02:00 committed by GitHub
parent 19a15b4eea
commit e46a96c2b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +0,0 @@
export function createDatabaseManager(strapi: any): Promise<DatabaseManager>;
interface ConnectionInfo {
name: string;
}
export class DatabaseManager {
connections: Array<ConnectionInfo>;
initialize(): Promise<DatabaseManager>;
query(model: string, plugin: string): Repository;
getModel(model: string, plugin: string): Model;
getModelByAssoc(assoc: object): Model;
}
class Model {}
export class Repository {
model: Model;
find(params: object): Promise<Array<ModelValue>>;
findOne(params: object): Promise<ModelValue>;
create(input: object): Promise<ModelValue>;
update(params: object, input: object): Promise<ModelValue>;
delete(params: object): Promise<ModelValue | Array<ModelValue>>;
count(params: object): Promise<number>;
search(params: object): Promise<Array<ModelValue>>;
countSearch(params: object): Promise<number>;
}
interface ModelValue {
id: string | number;
[propName: string]: any;
}