mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-11-07 16:18:19 +00:00
Added defined constants to typedefinition for TypeScript
This commit is contained in:
1 parent
4837184d40
commit
234f80b992
1 file changed
+10
Vendored
+10
@@ -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>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user