From eb045bfc324de39301fc497ccaeac2f51586b102 Mon Sep 17 00:00:00 2001 From: Sam Zilverberg Date: Tue, 22 Mar 2022 22:01:44 +0200 Subject: [PATCH] fix: allow other json values (#2015) --- source/core/options.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);