Add missing properties to the Strapi Interface

This commit is contained in:
Convly 2022-07-12 14:56:54 +02:00
parent 2bb361eeec
commit 51a40e3966

View File

@ -1,4 +1,5 @@
import type Koa from 'koa'; import type Koa from 'koa';
import { Database } from '@strapi/database';
import type { StringMap } from './utils'; import type { StringMap } from './utils';
import type { GenericController } from '../core-api/controller' 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 util used to collect anonymous data on the application usage
*/ */
telemetry: any; 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 { export interface Lifecycles {