title: How Can I call correctly addAttribute method?
body: <p>I have made a method what I call addAttribute with 2 arguments what are strings.I want to create a new element with this method.I want to use this method to add attributes to the new class.
  I have created another method with other arguments.</p>
  
  <pre><code>public addAttribute(key: string, value: string): void {
      this.AdditionalAttributes.set(key, value);
  };
  </code></pre>
  
  <pre><code>const tag2 = new ClassName(
  
      this.addAttribute("Type", "Test"),
  
      this.addAttribute("V", "1"),
  
      this.addAttribute("U", "1"),
  
  );
  </code></pre>
  
  <p>I got this error log:
      TypeError: this.addAttribute is not a function</p>