mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Add typings for detect-browser (#11776)
* Add typings for detect-browser * process review comment
This commit is contained in:
committed by
Mohamed Hegazy
parent
85348cdf99
commit
9fbb6f6df0
@@ -0,0 +1,5 @@
|
||||
|
||||
import detectBrowser = require("detect-browser");
|
||||
|
||||
const n: string = detectBrowser.name;
|
||||
const v: string = detectBrowser.version;
|
||||
Vendored
+14
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user