\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript lang=\"ts\" setup>\r\n type Conversation = {\r\n id: string\r\n roomId: string\r\n state: 'read' | 'unread'\r\n user?: User | null\r\n message?: string\r\n messages?: Message[]\r\n role: 'client' | 'admin'\r\n createdAt: string\r\n updatedAt?: string\r\n }\r\n\r\n const conversations = useState\u003CConversation[]>('conversations', () => [])\r\n\u003C/script>\r\n```\r\n\r\n`tsconfig.json`\r\n\r\n```json\r\n{\r\n \"extends\": \"./.nuxt/tsconfig.json\"\r\n}\r\n```\n\n### Describe the bug\n\nThe type of this `useState` is not good interpreted in the template block: \r\n\r\n\r\n\r\n\r\n\r\nThe bug is not present if I use a `ref` instead of `useState`.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2969,2972,2975,2977],{"name":2970,"color":2971},"types","2875C3",{"name":2973,"color":2974},"3.x","29bc7f",{"name":2910,"color":2976},"E99695",{"name":2978,"color":2979},"needs reproduction","FBCA04",24591,"Typescript error: useState have the wrong type in \u003Ctemplate /> block in VsCode.","2023-12-14T20:18:32Z","https://github.com/nuxt/nuxt/issues/24591",0.7203476,["Reactive",2986],{},["Set"],["ShallowReactive",2989],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fPXjeUkPUbAW9jllk3Ief3ImfhUZGT1J4D4ognSrHJTM":-1},"/nuxt/nuxt.com/1121"]