mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
Merge pull request #13427 from LKay/lkay/browser-fingerprint
Add definitions for browser-fingerprint
This commit is contained in:
5
browser-fingerprint/browser-fingerprint-tests.ts
Normal file
5
browser-fingerprint/browser-fingerprint-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import browserFingerprint = require("browser-fingerprint");
|
||||
import browserFingerprintES6 from "browser-fingerprint";
|
||||
|
||||
const fingerprint1: string = browserFingerprint();
|
||||
const fingerprint2: string = browserFingerprintES6();
|
||||
12
browser-fingerprint/index.d.ts
vendored
Normal file
12
browser-fingerprint/index.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// Type definitions for browser-fingerprint 0.1
|
||||
// Project: https://www.npmjs.com/package/browser-fingerprint
|
||||
// Definitions by: Karol Janyst <https://github.com/LKay>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface browserFingerprint {
|
||||
(): string;
|
||||
default: browserFingerprint;
|
||||
}
|
||||
|
||||
declare const browserFingerprint: browserFingerprint;
|
||||
export = browserFingerprint;
|
||||
20
browser-fingerprint/tsconfig.json
Normal file
20
browser-fingerprint/tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"browser-fingerprint-tests.ts"
|
||||
]
|
||||
}
|
||||
1
browser-fingerprint/tslint.json
Normal file
1
browser-fingerprint/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user