vuejs / pinia

🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
https://pinia.vuejs.org
MIT License
12.91k stars 1.02k forks source link

Issue with typescript #2539

Closed NarHakobyan closed 8 months ago

NarHakobyan commented 8 months ago

Steps to reproduce the bug

Hey, just noticed that storeToRefs returns incorrect types when using ref's inside the store. it wraps 2 Refs

image

Expected behavior

it should not wrap ref 2 times

Actual behavior

it wraps twice

Additional information

No response