mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Merge pull request #17735 from Kovensky/patch-6
Correct ua-parser-js's export
This commit is contained in:
Vendored
+3
-2
@@ -139,7 +139,7 @@ declare namespace IUAParser {
|
||||
}
|
||||
|
||||
declare module "ua-parser-js" {
|
||||
export class UAParser {
|
||||
class UAParser {
|
||||
static VERSION: string;
|
||||
static BROWSER: IUAParser.BROWSER;
|
||||
static CPU: IUAParser.CPU;
|
||||
@@ -192,5 +192,6 @@ declare module "ua-parser-js" {
|
||||
*/
|
||||
getResult(): IUAParser.IResult;
|
||||
}
|
||||
const exported: typeof UAParser & { UAParser: typeof UAParser };
|
||||
export = exported
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {UAParser} from 'ua-parser-js';
|
||||
import UAParser = require('ua-parser-js');
|
||||
|
||||
function test_parser() {
|
||||
var ua = 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6';
|
||||
|
||||
Reference in New Issue
Block a user