mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Replace function with call signatures for 'chance'.
This commit is contained in:
Vendored
+9
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user