diff --git a/types/elo-rank/index.d.ts b/types/elo-rank/index.d.ts index c9e6178750..2a1f63c7ff 100644 --- a/types/elo-rank/index.d.ts +++ b/types/elo-rank/index.d.ts @@ -3,10 +3,12 @@ // Definitions by: Antonio Pavlinovic // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export class EloRank { +declare class EloRank { constructor(kFactor?: number); setKFactor(kFactor: number): void; getKFactor(): number; getExpected(a: number, b: number): number; updateRating(expected: number, actual: number, current: number): number; } + +export = EloRank; \ No newline at end of file