The current return types of the getInitialData and getPage methods in the Api interface appear to be incorrect. Both methods are defined as Promise<void>, which suggests that they do not return any values.
I suggest changing the return types from Promise<void> to Promise<any>to ensure that the expected data is returned. Please review and correct the return types in the Api interface to ensure they are correct.
The current return types of the getInitialData and getPage methods in the Api interface appear to be incorrect. Both methods are defined as
Promise<void>
, which suggests that they do not return any values.I suggest changing the return types from
Promise<void>
toPromise<any>
to ensure that the expected data is returned. Please review and correct the return types in the Api interface to ensure they are correct.