Changes needed for exports

This commit is contained in:
Antonio Pavlinovic
2019-02-11 12:25:54 +01:00
parent 353f6026f1
commit aefa57eaf8
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { EloRank } from "elo-rank";
import EloRank from "elo-rank";
const test = new EloRank();
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Antonio Pavlinovic <https://github.com/apavlinovic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
class EloRank {
declare class EloRank {
constructor(kFactor?: number);
setKFactor(kFactor: number): void;
getKFactor(): number;
+2 -1
View File
@@ -14,7 +14,8 @@
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true
},
"files": [
"index.d.ts",