TS4058 Return type of exported function has or is using name DraftedObject from external module
zustand with mutative
<img width="684" height="113" alt="Image" src="https://github.com/user-attachments/assets/295b62cd-7041-4272-9322-f5f642b7f2e1" />
I don't know how to workaround this, mutative only export Draft type, the DraftedObject is internal type. using TS 5.9.2, WebStorm
3 条评论