Skip to content

type system is implemented backwards #700

@factoidforrest

Description

@factoidforrest

Instead of making the user define the types that the store will implement, why don't you just have the compiler figure out the typing from the implimentation itself? That would greatly reduce boilerplate, which is a goal of this library.

createStore<StoreModel>({ doesn't need to take a generic, it can figure it out itself if you write the typescript definition right.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions