Skip to content

Export ReactiveValue type #15075

@peterkogo

Description

@peterkogo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions