mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 03:07:32 +00:00
Extend the nodejs global interface & add the strapi global variable to it
This commit is contained in:
parent
034e39083e
commit
e4a05b3b1a
7
packages/core/strapi/lib/global.d.ts
vendored
7
packages/core/strapi/lib/global.d.ts
vendored
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user