0👍
Figured it out.
The problem was that the object { user }
is actually shorthand for { user: USER-KEY-VALUE-HERE }
. Which in my case was { user: Ref<User | null> }
.
Therefore the final return Type becomes:
const getUser = (): { user: Ref<User | null> } => {
return { user };
};
- [Vuejs]-JHipster Vue: Where to modify the base URL for calling the backend
- [Vuejs]-Using ES6 in Vue.js
Source:stackexchange.com