Replace function with call signatures for 'chance'.

This commit is contained in:
Daniel Rosenwasser
2015-10-30 13:34:33 -07:00
parent eb59a40d3c
commit ba2f198059
+9 -1
View File
@@ -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;
}