diff --git a/types/elo-rank/elo-rank-tests.ts b/types/elo-rank/elo-rank-tests.ts index 2e53764042..4032d46f0a 100644 --- a/types/elo-rank/elo-rank-tests.ts +++ b/types/elo-rank/elo-rank-tests.ts @@ -1,4 +1,4 @@ -import { EloRank } from "elo-rank"; +import EloRank from "elo-rank"; const test = new EloRank(); diff --git a/types/elo-rank/index.d.ts b/types/elo-rank/index.d.ts index 541d070394..df0cd09c9e 100644 --- a/types/elo-rank/index.d.ts +++ b/types/elo-rank/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Antonio Pavlinovic // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -class EloRank { +declare class EloRank { constructor(kFactor?: number); setKFactor(kFactor: number): void; getKFactor(): number; diff --git a/types/elo-rank/tsconfig.json b/types/elo-rank/tsconfig.json index 2ebd08f352..21cf1d2f88 100644 --- a/types/elo-rank/tsconfig.json +++ b/types/elo-rank/tsconfig.json @@ -14,7 +14,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts",