From 51a40e396679f769bbad8c1709e76b5bf6e4e7b4 Mon Sep 17 00:00:00 2001 From: Convly Date: Tue, 12 Jul 2022 14:56:54 +0200 Subject: [PATCH] Add missing properties to the Strapi Interface --- .../strapi/lib/types/core/strapi/index.d.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/core/strapi/lib/types/core/strapi/index.d.ts b/packages/core/strapi/lib/types/core/strapi/index.d.ts index 2da70d796d..5e07ae1705 100644 --- a/packages/core/strapi/lib/types/core/strapi/index.d.ts +++ b/packages/core/strapi/lib/types/core/strapi/index.d.ts @@ -1,4 +1,5 @@ import type Koa from 'koa'; +import { Database } from '@strapi/database'; import type { StringMap } from './utils'; import type { GenericController } from '../core-api/controller' @@ -335,6 +336,26 @@ export interface Strapi { * Telemetry util used to collect anonymous data on the application usage */ telemetry: any; + + /** + * Strapi DB layer instance + */ + db: Database; + + /** + * Core Store accessor + */ + store: any; + + /** + * Entity Validator instance + */ + entityValidator: any; + + /** + * Entity Service instance + */ + entityService: any; } export interface Lifecycles {