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

Types of accessors are not resolved propery #246

@devversion

Description

@devversion

Hey there,

With the recent changes to more object orientated documents, the types for accessors are no longer resolved properly.

class MdButton {

  get checked(): boolean { return this._checked;  }
  set checked(value) {
    this._checked = value;
  }
}

Also those getters and setters are being treated as functions, while they theoretically can be considered as properties of the class.

This means that right now we need to manually determine the types of the accessors in our Dgeni package.

The issue here is, that the members of the class may exist twice and the type of the "property" can be defined in two different places. Either in the getter or in the setter as a first parameter.

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