Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Is it possible to make Provider and @inject type safe? #143

@mohsen1

Description

@mohsen1

Currently Provider and @inject are using strings for providing stores and injecting them in components. Is it possible to use TypeScript generics to make sure that those strings are type checked by TypeScript compiler? Since strings can be their own types in TypeScript it should be possible to take advantage of that feature.

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