Add typings for detect-browser (#11776)

* Add typings for detect-browser

* process review comment
This commit is contained in:
Rogier Schouten
2016-10-08 10:32:59 -07:00
committed by Mohamed Hegazy
parent 85348cdf99
commit 9fbb6f6df0
3 changed files with 38 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
import detectBrowser = require("detect-browser");
const n: string = detectBrowser.name;
const v: string = detectBrowser.version;
+14
View File
@@ -0,0 +1,14 @@
// Type definitions for detect-browser v1.3.3
// Project: https://github.com/DamonOehlman/detect-browser
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
* Browser name
*/
export const name: string;
/**
* Browser version
*/
export const version: string;
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"detect-browser-tests.ts"
]
}