Skip to content

Propigate class constraints for Query handlers from Application #257

@UnitylChaos

Description

@UnitylChaos

General case of #256

It would be better to enforce these constraints when the Module or Query handler is built, rather than just when makeApp is called.

Based on my very light reading, it looks like at a minimum:

  • A StoreLeaf query of type Map requires QueryData on the Key type.
  • A general Leaf query requires HasCodec on the type being returned. (perhaps this could be enforced through a constraint in the QueryResult type?)

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