vobyjs / voby

A high-performance framework with fine-grained observable/signal-based reactivity for building rich applications.
https://voby.dev
MIT License
891 stars 22 forks source link

`store.unwrap(...)` is not appropriately typed #29

Closed theSherwood closed 1 year ago

theSherwood commented 1 year ago

I like to unwrap stores for logging to the console as the Proxies require a couple extra clicks to see the value. So I'm using store.unwrap but doesn't appear to be part present on the store type. Are you planning on a different unwrap function or do you not want to publicly expose it?

fabiospampinato commented 1 year ago

I can't reproduce the issue, it's picked up by TS for me.

Screen Shot 2023-09-30 at 11 43 35

I guess potentially it could be renamed in the future, but something like this is necessary.

theSherwood commented 1 year ago

Ah. Okay. Apologies. I'm not able to reproduce the issue now. It's possible I was on a previous version or something. Feel free to close.