-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the problem
Inside my library, I am currently trying to align the return types of my (user-facing) functions that return reactive values.
I adopted the standard set by svelte/reactivity of returning { current: value }. I see that internally this is achieved through ReactiveValue which also results in the return type ReactiveValue<T>.
Describe the proposed solution
Instead of me creating a very similar type - would it make sense to just export a ReactiveValue type? Maybe this would also promote some consistency across projects, as of today there is no standard on this topic. (you are free to use .current, .value, .ref...)
Importance
nice to have
Metadata
Metadata
Assignees
Labels
No labels