mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Define iphone, ipad, ipod as flags in typings.d.ts
This commit is contained in:
parent
1635cd8607
commit
aea9282426
16
typings.d.ts
vendored
16
typings.d.ts
vendored
@ -8,6 +8,15 @@ export = bowser;
|
||||
export as namespace bowser;
|
||||
|
||||
declare namespace bowser {
|
||||
export interface IBowserPlatform {
|
||||
ipad: boolean;
|
||||
ipod: boolean;
|
||||
iphone: boolean;
|
||||
/** If a tablet device is detected, the flag tablet is set instead of mobile. */
|
||||
tablet: boolean;
|
||||
/** All detected mobile OSes are additionally flagged mobile, unless it's a tablet */
|
||||
mobile: boolean;
|
||||
}
|
||||
|
||||
export interface IBowserOS {
|
||||
mac: boolean;
|
||||
@ -66,11 +75,6 @@ declare namespace bowser {
|
||||
gecko: boolean;
|
||||
/** IE > 11 */
|
||||
msedge: boolean;
|
||||
/** If a tablet device is detected, the flag tablet is set instead of mobile. */
|
||||
tablet: boolean;
|
||||
/** All detected mobile OSes are additionally flagged mobile, unless it's a tablet */
|
||||
mobile: boolean;
|
||||
|
||||
}
|
||||
|
||||
export interface IBowserGrade {
|
||||
@ -90,7 +94,7 @@ declare namespace bowser {
|
||||
osversion: string|number;
|
||||
}
|
||||
|
||||
export interface IBowserDetection extends IBowserGrade, IBowserEngines, IBowserOS, IBowserVersions { }
|
||||
export interface IBowserDetection extends IBowserGrade, IBowserEngines, IBowserOS, IBowserVersions, IBowserPlatform { }
|
||||
|
||||
export interface IBowserMinVersions {
|
||||
// { msie: "11", "firefox": "4" }
|
||||
|
Loading…
Reference in New Issue
Block a user