Skip to content

Add a Computed type decorator #72

@ecordell

Description

@ecordell

We often have the case where we have some object from the cache/cluster and some "computed" form of that same object (for the sake of comparing and determining whether changes need to be applied to the cluster).

In a few places we've made type aliases i.e. type ComputedFoo Foo so that it's clear at the type level where a given object is coming from. It might be nice to have a generic annotation, i.e foo = Computed[Foo] that we can use. We may be able to use this to enforce good practice (i.e. anything passed to a write should be a Computed type, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions