Fix the constructor
This commit is contained in:
parent
1109f671da
commit
0e4162af2a
|
@ -17,7 +17,7 @@ module.exports = function (Types) {
|
||||||
return this.value;
|
return this.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
Types.JSON = function JSON() {
|
Types.JSON = function JSON(value) {
|
||||||
if (!(this instanceof JSON)) {
|
if (!(this instanceof JSON)) {
|
||||||
return new JSON(value);
|
return new JSON(value);
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ module.exports = function (Types) {
|
||||||
return this.value;
|
return this.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
Types.Any = function Any() {
|
Types.Any = function Any(value) {
|
||||||
if (!(this instanceof Any)) {
|
if (!(this instanceof Any)) {
|
||||||
return new Any(value);
|
return new Any(value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue