Extend the nodejs global interface & add the strapi global variable to it

This commit is contained in:
Convly 2022-06-16 17:54:11 +02:00
parent 034e39083e
commit e4a05b3b1a

View File

@ -51,4 +51,11 @@ declare global {
* Strapi global variable definition * Strapi global variable definition
**/ **/
export const strapi: StrapiInterface; export const strapi: StrapiInterface;
/**
* Adds the strapi global variable to the NodeJS Global interface
*/
export interface Global {
strapi: StrapiInterface;
}
} }