diff --git a/browser-fingerprint/browser-fingerprint-tests.ts b/browser-fingerprint/browser-fingerprint-tests.ts new file mode 100644 index 0000000000..c088b8e097 --- /dev/null +++ b/browser-fingerprint/browser-fingerprint-tests.ts @@ -0,0 +1,3 @@ +import browserFingerprint = require("browser-fingerprint"); + +const fingerprint: string = browserFingerprint(); diff --git a/browser-fingerprint/index.d.ts b/browser-fingerprint/index.d.ts new file mode 100644 index 0000000000..50904525cd --- /dev/null +++ b/browser-fingerprint/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for browser-fingerprint 0.1 +// Project: https://www.npmjs.com/package/browser-fingerprint +// Definitions by: Karol Janyst +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function browserFingerprint (): string; +export = browserFingerprint; diff --git a/browser-fingerprint/tsconfig.json b/browser-fingerprint/tsconfig.json new file mode 100644 index 0000000000..84a88a562c --- /dev/null +++ b/browser-fingerprint/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "browser-fingerprint-tests.ts" + ] +}