I have this simple game.ts file:
import {reactive} from "vue";
interface GameState {
login: {
loggedIn: boolean;
accountName?: string;
}
}
export const state : GameState = reactive({
login: "Hello"
});
I expect TypeScript to yell at me, because login should be an object, not a string. But it doesn't. Any clue why?