title: Typescript & React | Setting class property with an Enum is throwing error TS2349
body: <p>I need some help on this one.</p>
  <p>My goal is to create a <strong>class C_GenericTask</strong> for which I can change its properties. One of those properties is an <strong>enum E_TaskState</strong> with the following properties: TODO, DOING and DONE.</p>
  <p>But when I try to use the setter of the C_GenericTask, typescript is throwing this error :</p>
  <p><strong>TS2349: This expression is not callable. No constituent of type 'E_TaskState' is callable.</strong></p>
  <p>I've done the typechecking and I don't see anything wrong.
  Do you guys have an explanation ?
  Here's my code :</p>
  <p>C_GenericTask.ts</p>
  <pre><code>
  export default class C_GenericTask {
    protected _status: E_TaskState;
  
    constructor(title: string) {
      this._status = E_TaskState.TODO;
    }
  
    public get status(): E_TaskState {
      return this._status;
    }
    public set setStatus(value: E_TaskState) {
      this._status = value;
    }
  }```
  
  
  
  E_TaskState.ts
  
  ```enum E_TaskState {
    TODO,
    DOING,
    DONE,
  }
  
  export default E_TaskState;```
  
  
  
  database.ts
  
  ```import C_GenericTask from &quot;./classes/C_GenericTask&quot;;
  import E_TaskState from &quot;./Enum/E_TaskState&quot;;
  
  let C_buildFirst = new C_GenericTask(&quot;Build First&quot;);
  
  C_buildFirst.setStatus(E_TaskState.DONE);```
  
  
  </code></pre>