From e46a96c2b4130eb37faa4b4d45c3d5f47860ec7d Mon Sep 17 00:00:00 2001 From: Alexandre BODIN Date: Tue, 20 Apr 2021 17:02:24 +0200 Subject: [PATCH] Remove broken & useless typdef (#10085) --- packages/strapi-database/index.d.ts | 33 ----------------------------- 1 file changed, 33 deletions(-) delete mode 100644 packages/strapi-database/index.d.ts diff --git a/packages/strapi-database/index.d.ts b/packages/strapi-database/index.d.ts deleted file mode 100644 index c015b0fb37..0000000000 --- a/packages/strapi-database/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -export function createDatabaseManager(strapi: any): Promise; - -interface ConnectionInfo { - name: string; -} - -export class DatabaseManager { - connections: Array; - - initialize(): Promise; - 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>; - findOne(params: object): Promise; - create(input: object): Promise; - update(params: object, input: object): Promise; - delete(params: object): Promise>; - count(params: object): Promise; - search(params: object): Promise>; - countSearch(params: object): Promise; -} - -interface ModelValue { - id: string | number; - [propName: string]: any; -}