Skip to content

Commit eb045bf

Browse files
authoredMar 22, 2022
fix: allow other json values (#2015)
1 parent f582a09 commit eb045bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎source/core/options.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1349,13 +1349,11 @@ export default class Options {
13491349
13501350
__Note #2__: This option is not enumerable and will not be merged with the instance defaults.
13511351
*/
1352-
get json(): Record<string, any> | undefined {
1352+
get json(): any {
13531353
return this._internals.json;
13541354
}
13551355

1356-
set json(value: Record<string, any> | undefined) {
1357-
assert.any([is.object, is.undefined], value);
1358-
1356+
set json(value: any) {
13591357
if (value !== undefined) {
13601358
assert.undefined(this._internals.body);
13611359
assert.undefined(this._internals.form);

0 commit comments

Comments
 (0)
Please sign in to comment.