diff --git a/source/core/options.ts b/source/core/options.ts index ef158ec83..18e496d34 100644 --- a/source/core/options.ts +++ b/source/core/options.ts @@ -1349,13 +1349,11 @@ export default class Options { __Note #2__: This option is not enumerable and will not be merged with the instance defaults. */ - get json(): Record | undefined { + get json(): any { return this._internals.json; } - set json(value: Record | undefined) { - assert.any([is.object, is.undefined], value); - + set json(value: any) { if (value !== undefined) { assert.undefined(this._internals.body); assert.undefined(this._internals.form);