types-mediawiki
Advanced tools
Comparing version 1.8.1 to 1.8.2
@@ -30,38 +30,2 @@ declare global { | ||
* | ||
* Recognised browser names: | ||
* | ||
* - `android` (legacy Android browser, prior to Chrome Mobile) | ||
* - `chrome` (includes Chrome Mobile, Microsoft Edge, Opera, and others) | ||
* - `crios` (Chrome on iOS, which uses Mobile Safari) | ||
* - `edge` (legacy Microsoft Edge, which uses EdgeHTML) | ||
* - `firefox` (includes Firefox Mobile, Iceweasel, and others) | ||
* - `fxios` (Firefox on iOS, which uses Mobile Safari) | ||
* - `konqueror` | ||
* - `msie` | ||
* - `opera` (legacy Opera, which uses Presto) | ||
* - `rekonq` | ||
* - `safari` (including Mobile Safari) | ||
* - `silk` | ||
* | ||
* Recognised layout engines: | ||
* | ||
* - `edge` (EdgeHTML 12-18, as used by legacy Microsoft Edge) | ||
* - `gecko` | ||
* - `khtml` | ||
* - `presto` | ||
* - `trident` | ||
* - `webkit` | ||
* | ||
* Note that Chrome and Chromium-based browsers like Opera have their layout | ||
* engine identified as `webkit`. | ||
* | ||
* Recognised platforms: | ||
* | ||
* - `ipad` | ||
* - `iphone` | ||
* - `linux` | ||
* - `mac` | ||
* - `solaris` (untested) | ||
* - `win` | ||
* | ||
* @example | ||
@@ -136,2 +100,3 @@ * ```js | ||
type ClientProfileLayout = "edge" | "gecko" | "khtml" | "presto" | "trident" | "webkit"; | ||
type ClientProfileName = | ||
@@ -150,2 +115,3 @@ | "android" | ||
| "silk"; | ||
type ClientProfilePlatform = "ipad" | "iphone" | "linux" | "mac" | "solaris" | "win"; | ||
@@ -162,7 +128,68 @@ type ComparisonOperator = "==" | "===" | "!=" | "!==" | "<" | "<=" | ">" | ">="; | ||
/** | ||
* An object containing information about the client. | ||
* | ||
* @example | ||
* ```js | ||
* { | ||
* 'name': 'firefox', | ||
* 'layout': 'gecko', | ||
* 'layoutVersion': 20101026, | ||
* 'platform': 'linux' | ||
* 'version': '3.5.1', | ||
* 'versionBase': '3', | ||
* 'versionNumber': 3.5, | ||
* } | ||
* ``` | ||
* @see https://doc.wikimedia.org/jquery-client/master/jQuery.client.html#.Profile | ||
*/ | ||
interface ClientProfile { | ||
layout: "edge" | "gecko" | "khtml" | "presto" | "trident" | "webkit"; | ||
layoutVersion: number; | ||
name: ClientProfileName; | ||
platform: "ipad" | "iphone" | "linux" | "mac" | "solaris" | "win"; | ||
/** | ||
* Name of the layout engine. Recognised layout engines: | ||
* | ||
* - `edge` (EdgeHTML 12-18, as used by legacy Microsoft Edge) | ||
* - `gecko` | ||
* - `khtml` | ||
* - `presto` | ||
* - `trident` | ||
* - `webkit` | ||
* | ||
* Note that Chrome and Chromium-based browsers like Opera have their layout | ||
* engine identified as `webkit`. | ||
*/ | ||
layout: ClientProfileLayout | "unknown"; | ||
/** | ||
* Version of the layout engine, | ||
* e.g. `6` or `20101026`. | ||
*/ | ||
layoutVersion: number | "unknown"; | ||
/** | ||
* Name of the browser. Recognized browser names: | ||
* | ||
* - `android` (legacy Android browser, prior to Chrome Mobile) | ||
* - `chrome` (includes Chrome Mobile, Microsoft Edge, Opera, and others) | ||
* - `crios` (Chrome on iOS, which uses Mobile Safari) | ||
* - `edge` (legacy Microsoft Edge, which uses EdgeHTML) | ||
* - `firefox` (includes Firefox Mobile, Iceweasel, and others) | ||
* - `fxios` (Firefox on iOS, which uses Mobile Safari) | ||
* - `konqueror` | ||
* - `msie` | ||
* - `opera` (legacy Opera, which uses Presto) | ||
* - `rekonq` | ||
* - `safari` (including Mobile Safari) | ||
* - `silk` | ||
*/ | ||
name: ClientProfileName | "unknown"; | ||
/** | ||
* Operating system the browser is running on. | ||
* Recognised platforms: | ||
* | ||
* - `ipad` | ||
* - `iphone` | ||
* - `linux` | ||
* - `mac` | ||
* - `solaris` (untested) | ||
* - `win` | ||
*/ | ||
platform: ClientProfilePlatform | "unknown"; | ||
version: string; | ||
@@ -169,0 +196,0 @@ versionBase: string; |
{ | ||
"name": "types-mediawiki", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "TypeScript definitions for MediaWiki JS interface", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
533524
13682