Merge pull request #13427 from LKay/lkay/browser-fingerprint

Add definitions for browser-fingerprint
This commit is contained in:
Daniel Rosenwasser
2016-12-21 23:24:36 -08:00
committed by GitHub
4 changed files with 38 additions and 0 deletions

View 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
View 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;

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "../tslint.json" }