TYPO3-Headless / nuxt-typo3

TYPO3 Frontend rendered in Vue.js and Nuxt (frontend for EXT:headless)
https://t3headless.macopedia.io/nuxt-typo3/
89 stars 35 forks source link

Incorrect return types in the API interface #313

Closed KrohnMi closed 10 months ago

KrohnMi commented 1 year ago

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.