title: TypeScript: access static method of a class
body: <p>Still new at TypeScript so this question may sound dumb to some of you. I have a ToolTip class like this:</p>
  
  <pre><code>class ToolTip{
      public static show (str:string):void{
          console.log ("ToolTip show():" + str);
      }
      public static hide():void{
          console.log ("ToolTip hide()");
      }
  }
  export = ToolTip;
  </code></pre>
  
  <p>And I want to call it from another class </p>
  
  <pre><code>import ToolTip = require ("app/view/common/Tooltip");
  
  class Button  {
  ......
      private handleMouseEvent(event:MouseEvent):void {
          switch (event.type) {
              case "mouseover":
                  ToolTip.show("tool tip string");
                  break;
              case "mouseout":
                  ToolTip.hide();
                  break;            
          }
      }
  ......
  }
  
  export = MenuItem;
  </code></pre>
  
  <p>But it gives me this error:</p>
  
  <pre><code>Uncaught TypeError: Object app/view/common/Tooltip has no method 'show'
  </code></pre>
  
  <p>Any idea how to fix this?</p>