Skip to content

bug: computed properties expect to be invoked #232

Open
@anthony9187

Description

@anthony9187

According to the documentation (and functionally in practice), computed properties should be accessed as similarly to a getter when used outside of the template:

this.computedProperty.value

however typescript throws an error:

Property 'value' does not exist on type '() =>...

which looks like it's expecting computedProperty to be invoked:

this.computedProperty().value

it's more of an annoying type issue than anything else, everything seems to function as expected

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