mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 17:58:07 +00:00
Extend the nodejs global interface & add the strapi global variable to it
This commit is contained in:
parent
034e39083e
commit
e4a05b3b1a
9
packages/core/strapi/lib/global.d.ts
vendored
9
packages/core/strapi/lib/global.d.ts
vendored
@ -51,4 +51,11 @@ declare global {
|
||||
* Strapi global variable definition
|
||||
**/
|
||||
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