Losing types when returning data from server API handler - Nuxt