Added defined constants to typedefinition for TypeScript

This commit is contained in:
koloml committed 2025-08-08 19:39:48 +04:00
1 parent 4837184d40
commit 234f80b992
1 file changed
+10
+10
View File
@@ -4,6 +4,16 @@ import MaintenanceProfile from "$entities/MaintenanceProfile";
import type TagGroup from "$entities/TagGroup";
declare global {
/**
* Identifier of the current site this extension is built for.
*/
const __CURRENT_SITE__: string;
/**
* Name of the site.
*/
const __CURRENT_SITE_NAME__: string;
// Helper type to not deal with differences between the setTimeout of @types/node and usual web browser's type.
type Timeout = ReturnType<typeof setTimeout>;