-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0b8817
commit 52d1826
Showing
7 changed files
with
185 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,71 @@ | ||
declare global { | ||
namespace mw { | ||
|
||
/** | ||
* Map of configuration values. | ||
* | ||
* Check out [the complete list of configuration values](https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config) | ||
* on mediawiki.org. | ||
* | ||
* If `$wgLegacyJavaScriptGlobals` is true, this Map will add its values to the | ||
* global `window` object. | ||
* @see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw-property-config | ||
*/ | ||
const config: mw.Map<{ | ||
debug: boolean; | ||
skin: string; | ||
stylepath: string; | ||
wgArticlePath: string; | ||
wgCaseSensitiveNamespaces: string[]; | ||
wgContentLanguage: string; | ||
wgContentNamespaces: number[]; | ||
wgDBname: string; | ||
wgEnableAPI: boolean; | ||
wgEnableWriteAPI: boolean; | ||
wgExtensionAssetsPath: string; | ||
wgFormattedNamespaces: Record<number, string>; | ||
wgNamespaceIds: Record<string, number>; | ||
wgScript: string; | ||
wgScriptPath: string; | ||
wgServer: string; | ||
wgSiteName: string; | ||
wgVariantArticlePath: string | false; | ||
wgVersion: string; | ||
wgAction: string; | ||
wgArticleId: number; | ||
wgCanonicalNamespace: string; | ||
wgCanonicalSpecialPageName: string | false; | ||
wgCategories: string[]; | ||
wgCurRevisionId: number; | ||
wgIsArticle: boolean; | ||
wgIsProbablyEditable: boolean; | ||
wgNamespaceNumber: number; | ||
wgPageContentLanguage: string; | ||
wgPageContentModel: string; | ||
wgPageName: string; | ||
wgRedirectedFrom: string; | ||
wgRelevantPageName: string; | ||
wgRelevantUserName: string; | ||
wgRelevantPageIsProbablyEditable: boolean; | ||
wgRestrictionEdit: string[]; | ||
wgRestrictionMove: string[]; | ||
wgRevisionId: number; | ||
wgSearchType: string; | ||
wgTitle: string; | ||
wgUserEditCount: number; | ||
wgUserGroups: string[]; | ||
wgUserId: number; | ||
wgUserLanguage: string; | ||
wgUserName: string; | ||
wgUserRegistration: number; | ||
wgIsMainPage: boolean; | ||
wgUserVariant: string; | ||
wgPostEdit: string; | ||
wgDiffOldId: number | false; | ||
wgDiffNewId: number; | ||
wgWikibaseItemId: string; | ||
[key: string]: unknown; // more config keys can be added by extensions | ||
}>; | ||
} | ||
namespace mw { | ||
/** | ||
* Map of configuration values. | ||
* | ||
* Check out [the complete list of configuration values](https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config) | ||
* on mediawiki.org. | ||
* | ||
* If `$wgLegacyJavaScriptGlobals` is true, this Map will add its values to the | ||
* global `window` object. | ||
* @see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw-property-config | ||
*/ | ||
const config: mw.Map<{ | ||
debug: boolean; | ||
skin: string; | ||
stylepath: string; | ||
wgArticlePath: string; | ||
wgCaseSensitiveNamespaces: string[]; | ||
wgContentLanguage: string; | ||
wgContentNamespaces: number[]; | ||
wgDBname: string; | ||
wgEnableAPI: boolean; | ||
wgEnableWriteAPI: boolean; | ||
wgExtensionAssetsPath: string; | ||
wgFormattedNamespaces: Record<number, string>; | ||
wgNamespaceIds: Record<string, number>; | ||
wgScript: string; | ||
wgScriptPath: string; | ||
wgServer: string; | ||
wgSiteName: string; | ||
wgVariantArticlePath: string | false; | ||
wgVersion: string; | ||
wgAction: string; | ||
wgArticleId: number; | ||
wgCanonicalNamespace: string; | ||
wgCanonicalSpecialPageName: string | false; | ||
wgCategories: string[]; | ||
wgCurRevisionId: number; | ||
wgIsArticle: boolean; | ||
wgIsProbablyEditable: boolean; | ||
wgNamespaceNumber: number; | ||
wgPageContentLanguage: string; | ||
wgPageContentModel: string; | ||
wgPageName: string; | ||
wgRedirectedFrom: string; | ||
wgRelevantPageName: string; | ||
wgRelevantUserName: string; | ||
wgRelevantPageIsProbablyEditable: boolean; | ||
wgRestrictionEdit: string[]; | ||
wgRestrictionMove: string[]; | ||
wgRevisionId: number; | ||
wgSearchType: string; | ||
wgTitle: string; | ||
wgUserEditCount: number; | ||
wgUserGroups: string[]; | ||
wgUserId: number; | ||
wgUserLanguage: string; | ||
wgUserName: string; | ||
wgUserRegistration: number; | ||
wgIsMainPage: boolean; | ||
wgUserVariant: string; | ||
wgPostEdit: string; | ||
wgDiffOldId: number | false; | ||
wgDiffNewId: number; | ||
wgWikibaseItemId: string; | ||
[key: string]: unknown; // more config keys can be added by extensions | ||
}>; | ||
} | ||
} | ||
|
||
export {}; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.