File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ export function getJson<
8989 typeof args [ 1 ] === "object"
9090 ) {
9191 const [ engine , parameters , callback ] = args ;
92- return _getJson ( { ...parameters , engine : engine as E } , callback ) ;
92+ const newParameters = { engine, ...parameters } as P1 ;
93+ return _getJson ( newParameters , callback ) ;
9394 } else if (
9495 typeof args [ 0 ] === "object" &&
9596 ( typeof args [ 1 ] === "undefined" || typeof args [ 1 ] === "function" )
@@ -173,7 +174,8 @@ export function getHtml<
173174 typeof args [ 1 ] === "object"
174175 ) {
175176 const [ engine , parameters , callback ] = args ;
176- return _getHtml ( { ...parameters , engine : engine as E } , callback ) ;
177+ const newParameters = { engine, ...parameters } as P1 ;
178+ return _getHtml ( newParameters , callback ) ;
177179 } else if (
178180 typeof args [ 0 ] === "object" &&
179181 ( typeof args [ 1 ] === "undefined" || typeof args [ 1 ] === "function" )
You can’t perform that action at this time.
0 commit comments