Simple TypeScript Class gives TypeError

There is two solutions:

  1. adding setter
  2. change declaration to getter (from abstract str: string; to abstract get str(): string;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top