From ba2f19805971959a85f9d0d1489f3f20ab2ad8ed Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Fri, 30 Oct 2015 13:34:33 -0700 Subject: [PATCH] Replace function with call signatures for 'chance'. --- chance/chance.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/chance/chance.d.ts b/chance/chance.d.ts index e79304c8d..c77be4d28 100644 --- a/chance/chance.d.ts +++ b/chance/chance.d.ts @@ -5,7 +5,10 @@ declare module Chance { interface ChanceStatic { - Chance(): Chance; + (): Chance + (seed: number): Chance + (generator: () => any): Chance + new(): Chance; new(seed: number): Chance; new(generator: () => any): Chance; @@ -209,5 +212,10 @@ declare var Chance: Chance.ChanceStatic; // import Chance = require('chance'); declare module 'chance' { + interface ExportedChance extends Chance.ChanceStatic { + Chance: ExportedChance; + } + var Chance: ExportedChance; + export = Chance; }