mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
@@ -19,7 +19,7 @@ var firstCurrency = currencyPair[0];
|
||||
var secondCurrency = currencyPair[1];
|
||||
|
||||
// Mixins can be used with on-the-fly type declaration
|
||||
declare module Chance {
|
||||
declare namespace Chance {
|
||||
interface Chance {
|
||||
time(): string;
|
||||
}
|
||||
@@ -36,4 +36,4 @@ chance.mixin({
|
||||
var timeString: string = chance.time();
|
||||
|
||||
var chanceConstructedWithSeed100 = new Chance(100);
|
||||
var chanceCalledWithSeed100 = Chance()
|
||||
var chanceCalledWithSeed100 = Chance()
|
||||
|
||||
Vendored
+2
-1
@@ -2,7 +2,8 @@
|
||||
// Project: http://chancejs.com
|
||||
// Definitions by: Chris Bowdon <https://github.com/cbowdon/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
declare module Chance {
|
||||
|
||||
declare namespace Chance {
|
||||
|
||||
interface ChanceStatic {
|
||||
(): Chance
|
||||
|
||||
Reference in New Issue
Block a user