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