File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/content-helper/common/providers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export abstract class BaseProvider {
148148 options . signal = abortController . signal ;
149149
150150 try {
151- const response = await apiFetch < ContentHelperAPIResponse < T > > ( options ) ;
151+ const response = await apiFetch < ContentHelperAPIResponse < T > > ( options as APIFetchOptions < true > ) ;
152152
153153 // Validate API side errors.
154154 if ( response . error ) {
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export abstract class BaseWordPressProvider extends BaseProvider {
151151
152152 try {
153153 // Fetch the raw Response object.
154- const response = ( await apiFetch ( options ) ) as Response ;
154+ const response = await apiFetch ( options as APIFetchOptions < false > ) as Response ;
155155
156156 // Access headers from the response.
157157 const totalItemsHeader = response . headers . get ( 'X-WP-Total' ) ;
You can’t perform that action at this time.
0 commit comments