mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-13 12:22:02 +08:00
Fix contructor
This commit is contained in:
1 parent
9fffdcf779
commit
3aee09a07c
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/// <reference path="mobile-detect.d.ts" />
|
||||
|
||||
var md: MobileDetect;
|
||||
var md: MobileDetect = new MobileDetect(window.navigator.userAgent);
|
||||
|
||||
var mobie: string = md.mobile()
|
||||
var phone: string = md.phone()
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
declare class MobileDetect {
|
||||
|
||||
contructor(userAgent: string, maxPhoneWidth?: number): MobileDetect;
|
||||
constructor(userAgent: string, maxPhoneWidth?: number);
|
||||
|
||||
is(key: string): boolean;
|
||||
match(pattern: string|RegExp): boolean
|
||||
|
||||
Reference in new issue
Block a user