File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/content-helper/common/providers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,17 +138,17 @@ export abstract class BaseProvider {
138138 *
139139 * @since 3.15.0
140140 *
141- * @param {APIFetchOptions } options The options to pass to apiFetch.
142- * @param {string? } id The (optional) ID of the request.
141+ * @param {APIFetchOptions<true> } options The options to pass to apiFetch.
142+ * @param {string? } id The (optional) ID of the request.
143143 *
144144 * @return {Promise<ContentHelperAPIResponse<any>> } The fetched data.
145145 */
146- protected async fetch < T > ( options : APIFetchOptions , id ?: string ) : Promise < T > {
146+ protected async fetch < T > ( options : APIFetchOptions < true > , id ?: string ) : Promise < T > {
147147 const { abortController, abortId } = this . getOrCreateController ( id ) ;
148148 options . signal = abortController . signal ;
149149
150150 try {
151- const response = await apiFetch < ContentHelperAPIResponse < T > > ( options as APIFetchOptions < true > ) ;
151+ const response = await apiFetch < ContentHelperAPIResponse < T > > ( options ) ;
152152
153153 // Validate API side errors.
154154 if ( response . error ) {
You can’t perform that action at this time.
0 commit comments