You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy to VSCode and enable Volar (or regular TypeScript file)
What is expected?
the error is fixed
What is actually happening?
import{ref}from'vue';letmsg=$(ref<string|null>(null));msg='hello world';msg=null;// error TS2322: Type 'null' is not assignable to type 'string & { [RefMarker]?: any; }'.// Type 'null' is not assignable to type 'string'.
Version
Vue 3.2.8
TypeScript 4.4.2
vue-tsc 0.3.0
Reproduction link
SFC Playground
Steps to reproduce
Copy to VSCode and enable Volar (or regular TypeScript file)
What is expected?
the error is fixed
What is actually happening?
Related issue:
#4433 (comment)
#4433 (comment)
The text was updated successfully, but these errors were encountered: