Skip to content

Is it possible to update partial values? #22

Open
@mironal

Description

Hi! Thank you for a wonderfully simple and type-safe library. 😄

I thought about this kind of things.
Currently, it seems that I can not set without passing all the properties to set, but I'd like to update the value for partially.

For example, I would like to write the following code.

interface Some {
    one: string
    two: string
}

interface AppStore {
     some: Some
     other: string
}

store.set("some")({one: "hoge"}) // <- Is this possible? Do you have plans to make it possible if you can not? 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions